From 2bc8788a7e8ad807d27f2db2b898af66bf4df74f Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 18 Apr 2017 01:36:29 +0200 Subject: [PATCH] fix invalid request format in api integration tests --- tests/integration/api-config.sh | 2 +- tests/integration/api-nodes.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/api-config.sh b/tests/integration/api-config.sh index f18ed1e97..6f93cfe60 100755 --- a/tests/integration/api-config.sh +++ b/tests/integration/api-config.sh @@ -15,7 +15,7 @@ villas-node file://${LOCAL_CONF} & sleep 1 # Fetch config via API -curl -sX POST --data '{ "request" : "config", "id" : "5a786626-fbc6-4c04-98c2-48027e68c2fa" }' http://localhost/api/v1 > ${FETCHED_CONF} +curl -sX POST --data '{ "action" : "config", "id" : "5a786626-fbc6-4c04-98c2-48027e68c2fa" }' http://localhost/api/v1 > ${FETCHED_CONF} # Shutdown VILLASnode kill $! diff --git a/tests/integration/api-nodes.sh b/tests/integration/api-nodes.sh index 5cc36931f..eade97f29 100755 --- a/tests/integration/api-nodes.sh +++ b/tests/integration/api-nodes.sh @@ -28,7 +28,7 @@ villas-node ${CONFIG_FILE} & sleep 1 # Fetch config via API -curl -sX POST --data '{ "request" : "nodes", "id" : "5a786626-fbc6-4c04-98c2-48027e68c2fa" }' http://localhost/api/v1 > ${FETCHED_NODES} +curl -sX POST --data '{ "action" : "nodes", "id" : "5a786626-fbc6-4c04-98c2-48027e68c2fa" }' http://localhost/api/v1 > ${FETCHED_NODES} # Shutdown VILLASnode kill $!