aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/mappings
diff options
context:
space:
mode:
authorromaingimbert <romain.gimbert@orange.com>2019-03-12 16:36:47 +0100
committerromaingimbert <romain.gimbert@orange.com>2019-03-12 16:36:47 +0100
commitfc19502598ae23128fdfe5262ebfec2b4b5c3a44 (patch)
tree1a7d5b26d10dbaa4e31c569daab150e6827dbbca /src/test/resources/mappings
parent66403a1729296f9d90ce61a4d4cb0d102e03cd1e (diff)
change url onap status
-change healtcheck of aai and sdc for nbi status -change test Change-Id: I38a962d3725f53458dd7b66af6a26d8f6efe745c Issue-ID: EXTAPI-212 Signed-off-by: romaingimbert <romain.gimbert@orange.com>
Diffstat (limited to 'src/test/resources/mappings')
-rw-r--r--src/test/resources/mappings/aai/aai_get_healtcheck.json30
-rw-r--r--src/test/resources/mappings/sdc/sdc_get_healthcheck.json92
2 files changed, 122 insertions, 0 deletions
diff --git a/src/test/resources/mappings/aai/aai_get_healtcheck.json b/src/test/resources/mappings/aai/aai_get_healtcheck.json
new file mode 100644
index 0000000..ed8939e
--- /dev/null
+++ b/src/test/resources/mappings/aai/aai_get_healtcheck.json
@@ -0,0 +1,30 @@
+{
+ "request": {
+ "method": "GET",
+ "url": "/aai/util/echo?action=long"
+ },
+ "response": {
+ "status": 200,
+ "jsonBody":{
+ "responseMessages": {
+ "responseMessage": [
+ {
+ "messageId": "INF0001",
+ "text": "Success X-FromAppId=%1 X-TransactionId=%2 (msg=%3) (rc=%4)",
+ "variables": {
+ "variable": [
+ "AAI",
+ "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
+ "Successful health check:OK",
+ "0.0.0002"
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "headers": {
+ "Content-Type": "application/xml"
+ }
+ }
+}
diff --git a/src/test/resources/mappings/sdc/sdc_get_healthcheck.json b/src/test/resources/mappings/sdc/sdc_get_healthcheck.json
new file mode 100644
index 0000000..787a33a
--- /dev/null
+++ b/src/test/resources/mappings/sdc/sdc_get_healthcheck.json
@@ -0,0 +1,92 @@
+{
+ "request": {
+ "method": "GET",
+ "url": "/sdc2/rest/healthCheck"
+ },
+ "response": {
+ "status": 200,
+ "jsonBody":
+ {
+ "sdcVersion": "1.3.6",
+ "siteMode": "unknown",
+ "componentsInfo": [
+ {
+ "healthCheckComponent": "BE",
+ "healthCheckStatus": "UP",
+ "version": "1.3.6",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "TITAN",
+ "healthCheckStatus": "UP",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "ES",
+ "healthCheckStatus": "UP",
+ "version": "1.3.6",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "DE",
+ "healthCheckStatus": "UP",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "CASSANDRA",
+ "healthCheckStatus": "UP",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "ON_BOARDING",
+ "healthCheckStatus": "UP",
+ "version": "1.3.6",
+ "description": "OK",
+ "componentsInfo": [
+ {
+ "healthCheckComponent": "ZU",
+ "healthCheckStatus": "UP",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "BE",
+ "healthCheckStatus": "UP",
+ "version": "1.3.6",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "CAS",
+ "healthCheckStatus": "UP",
+ "version": "2.1.17",
+ "description": "OK"
+ }
+ ]
+ },
+ {
+ "healthCheckComponent": "DCAE",
+ "healthCheckStatus": "UP",
+ "version": "1.3.0",
+ "description": "OK",
+ "componentsInfo": [
+ {
+ "healthCheckComponent": "BE",
+ "healthCheckStatus": "UP",
+ "version": "1.3.0",
+ "description": "OK"
+ },
+ {
+ "healthCheckComponent": "TOSCA_LAB",
+ "healthCheckStatus": "UP",
+ "version": "1.3.0",
+ "description": "OK"
+ }
+ ]
+ }
+ ]
+ }
+ ,
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ }
+} \ No newline at end of file