[other_task #1679246] Fix CLL Variable tests
Change-Id: I51df3c95ab5dc9ced299832c3defb26c1100b91b
Signed-off-by: József Gyürüsi <jozsef.gyurusi@ericsson.com>
diff --git a/test/DsRestAPI/JSON_reqResp/test49.request b/test/DsRestAPI/JSON_reqResp/test49.request
index ba878e3..f267948 100644
--- a/test/DsRestAPI/JSON_reqResp/test49.request
+++ b/test/DsRestAPI/JSON_reqResp/test49.request
@@ -18,8 +18,44 @@
"content": "11.0",
"tp": 2
}
+ },
+ {
+ "getData" : {
+ "source" : "DsRestAPI_Test_DataSource",
+ "element" : "TcCPS",
+ "params" : [{
+ "paramName" : "EntityGroup",
+ "paramValue" : "EntityGroup_0"
+ }, {
+ "paramName" : "Scenario",
+ "paramValue" : "Scenario_0"
+ }, {
+ "paramName" : "TrafficCase",
+ "paramValue" : "TrafficCase_0"
+ }
+ ]
+ }
+ },
+ {
+ "setData" : {
+ "source" : "DsRestAPI_Test_DataSource",
+ "element" : "TcCPS",
+ "params" : [{
+ "paramName" : "EntityGroup",
+ "paramValue" : "EntityGroup_0"
+ }, {
+ "paramName" : "Scenario",
+ "paramValue" : "Scenario_0"
+ }, {
+ "paramName" : "TrafficCase",
+ "paramValue" : "TrafficCase_0"
+ }
+ ],
+ "content": "10.0",
+ "tp": 2
+ }
}
]
}
-descriptions.test48 = "Set data for getData handler"
+descriptions.test49 = "Set data for getData handler"
diff --git a/test/DsRestAPI/JSON_reqResp/test49.response b/test/DsRestAPI/JSON_reqResp/test49.response
index 8de4bf7..3946a1d 100644
--- a/test/DsRestAPI/JSON_reqResp/test49.response
+++ b/test/DsRestAPI/JSON_reqResp/test49.response
@@ -5,6 +5,18 @@
"val": "11.000000",
"tp": 2
}
+ },
+ {
+ "node": {
+ "val": "11.000000",
+ "tp": 2
+ }
+ },
+ {
+ "node": {
+ "val": "10.000000",
+ "tp": 2
+ }
}
]
}
diff --git a/test/DsRestAPI/JSON_reqResp/test50.request b/test/DsRestAPI/JSON_reqResp/test50.request
index d022bcb..93bc88d 100644
--- a/test/DsRestAPI/JSON_reqResp/test50.request
+++ b/test/DsRestAPI/JSON_reqResp/test50.request
@@ -18,8 +18,25 @@
"content": "12",
"tp": 1
}
+ },
+ {
+ "getData" : {
+ "source" : "DsRestAPI_Test_DataSource",
+ "element" : "TcCPS",
+ "params" : [{
+ "paramName" : "EntityGroup",
+ "paramValue" : "EntityGroup_0"
+ }, {
+ "paramName" : "Scenario",
+ "paramValue" : "Scenario_0"
+ }, {
+ "paramName" : "TrafficCase",
+ "paramValue" : "TrafficCase_0"
+ }
+ ]
+ }
}
]
}
-descriptions.test48 = "Invalid Set data for getData handler: variable type is not correct"
+descriptions.test50 = "Invalid Set data for getData handler: variable type is not correct"
diff --git a/test/DsRestAPI/JSON_reqResp/test50.response b/test/DsRestAPI/JSON_reqResp/test50.response
index 70036a5..5365d1a 100644
--- a/test/DsRestAPI/JSON_reqResp/test50.response
+++ b/test/DsRestAPI/JSON_reqResp/test50.response
@@ -5,6 +5,12 @@
"val": "f_EPTF_DataSourceClient_handleSetDataValue: Invalid iterator or externalData or parameter: \nSource: \"DsRestAPI_Test_DataSource\"\nPTC : \"tc_EPTF_DsRestAPI_Test_DSServer_JSON\"\nElement Name : \"TcCPS\"\nParams: { { paramName := \"EntityGroup\", paramValue := \"EntityGroup_0\" }, { paramName := \"Scenario\", paramValue := \"Scenario_0\" }, { paramName := \"TrafficCase\", paramValue := \"TrafficCase_0\" } }\nValue to Set: { intVal := 12 }\nIndex List: { }\nReason: Source Variable \"TcCPS\" is read-only or value is not allowed",
"tp": 4
}
+ },
+ {
+ "node": {
+ "val": "10.000000",
+ "tp": 2
+ }
}
]
}