SEBA-462 Add logging of responses
Change-Id: Ib09a34b17886d2f77c9e4ea071bc4d57d972c927
diff --git a/src/test/cord-api/Tests/XosScaleValidations/xos-remove-service.robot b/src/test/cord-api/Tests/XosScaleValidations/xos-remove-service.robot
index 62fcacc..82b4dd2 100644
--- a/src/test/cord-api/Tests/XosScaleValidations/xos-remove-service.robot
+++ b/src/test/cord-api/Tests/XosScaleValidations/xos-remove-service.robot
@@ -29,6 +29,7 @@
${output}= Run helm ls | grep simpleexampleservice | wc -l
Should Be Equal As Integers ${output} 0
${resp} = Get Request ${SERVER_IP} uri=/xosapi/v1/simpleexampleservice/simpleexampleservices
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Install SimpleExampleService
@@ -75,6 +76,7 @@
${data}= Create Dictionary name=simpleexampleservice version=1.1.7
${data}= Evaluate json.dumps(${data}) json
${resp}= Post Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/unload_models data=${data}
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 409
Unload Service Automatic Cleanup
@@ -84,9 +86,11 @@
${data}= Evaluate json.dumps(${data}) json
# The first time it should delete the model, and may return a TRYAGAIN
${resp}= Post Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/unload_models data=${data}
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
# Try it a second time, just in case deletion was in progress, should succeed this time
${resp}= Post Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/unload_models data=${data}
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify Service Stopped
@@ -160,6 +164,7 @@
Validate Service Not Served
# endpoint should not be served
${resp} = Get Request ${SERVER_IP} uri=/xosapi/v1/simpleexampleservice/simpleexampleservices
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
# wait for the core to be up
${resp} = CORD Get /xosapi/v1/core/users
@@ -178,6 +183,7 @@
[Documentation] Unload the service if it is loaded.
Wait Until Keyword Succeeds 200s 2s CORD Get /xosapi/v1/core/users
${resp}= Get Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/load_status
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${jsondata}= To Json ${resp.content}
${length}= Get Length ${jsondata['services']}
@@ -191,5 +197,6 @@
${data}= Create Dictionary name=simpleexampleservice version=1.1.7 cleanup_behavior=2
${data}= Evaluate json.dumps(${data}) json
${resp}= Post Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/unload_models data=${data}
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Log Successfully Unloaded
diff --git a/src/test/cord-api/Tests/XosScaleValidations/xos-service-migrations.robot b/src/test/cord-api/Tests/XosScaleValidations/xos-service-migrations.robot
index 010dec2..e2031df 100644
--- a/src/test/cord-api/Tests/XosScaleValidations/xos-service-migrations.robot
+++ b/src/test/cord-api/Tests/XosScaleValidations/xos-service-migrations.robot
@@ -28,6 +28,7 @@
${output}= Run helm ls | grep simpleexampleservice | wc -l
Should Be Equal As Integers ${output} 0
${resp} = Get Request ${SERVER_IP} uri=/xosapi/v1/simpleexampleservice/simpleexampleservices
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Install initial version
@@ -128,6 +129,7 @@
[Documentation] Unload the service if it is loaded.
Wait Until Keyword Succeeds 200s 2s CORD Get /xosapi/v1/core/users
${resp}= Get Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/load_status
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${jsondata}= To Json ${resp.content}
${length}= Get Length ${jsondata['services']}
@@ -140,6 +142,8 @@
Log Unloading Service, with table purge
${data}= Create Dictionary name=simpleexampleservice version=1.1.7 cleanup_behavior=2
${data}= Evaluate json.dumps(${data}) json
+ Log ${data}
${resp}= Post Request ${SERVER_IP} uri=/xosapi/v1/dynamicload/unload_models data=${data}
+ Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Log Successfully Unloaded