Replace Bierman02 URLs in the JSON-RPC tests with RFC8040 URLs.
Change-Id: I72c2fc2c5964c745239c9098dd0562cd52b26658
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
[Documentation] This keyword mounts an endpoint after starting service
${JSON1} OperatingSystem.Get File ${file}
Log ${JSON1}
- ${response_json} ClusterManagement.Put_As_Json_To_Member ${READ_SERVICE_PEER_PUT_URL}${endpoint} ${JSON1} ${controller_index}
+ ${response_json} ClusterManagement.Put_As_Json_To_Member ${READ_SERVICE_PEER_URL}=${endpoint} ${JSON1} ${controller_index}
Builtin.Log ${response_json}
Verify Data On Mounted Endpoint
[Arguments] ${controller_index}=${FIRST_CONTROLLER_INDEX} ${endpoint}=${DEFAULT_ENDPOINT}
[Documentation] This keyword verifies if the data we get on the mount point is same as what we put
- ${resp} ClusterManagement.Get_From_Member ${READ_SERVICE_PEER_GET_1}${endpoint}${READ_SERVICE_PEER_GET_2} ${controller_index}
+ ${resp} ClusterManagement.Get_From_Member ${READ_SERVICE_PEER_URL}=${endpoint}${READ_SERVICE_PEER_MOUNT_PATH}?content=config ${controller_index}
${response_json} Builtin.Convert To String ${resp}
Log ${response_json}
Verify Restconf Get On Mounted Endpoint ${response_json} ${READSERVICE_NAME}
*** Variables ***
${JSONRPCCONFIG_MODULE_JSON} ${CURDIR}/jsonrpcconfig_module.json
${JSONRPCCONFIG_DATA_JSON} ${CURDIR}/jsonrpcconfig_data.json
-${READ_SERVICE_PEER_PUT_URL} /restconf/config/jsonrpc:config/configured-endpoints/
+${READ_SERVICE_PEER_URL} /rests/data/jsonrpc:config/configured-endpoints
${READ_SERVICE_PEER_PAYLOAD} ${CURDIR}/readservice_peer_payload.json
-${READ_SERVICE_PEER_GET_1} /restconf/config/jsonrpc:config/configured-endpoints/
-${READ_SERVICE_PEER_GET_2} /yang-ext:mount/jsonrpc:config/
+${READ_SERVICE_PEER_MOUNT_PATH} /yang-ext:mount/jsonrpc:config
${DEFAULT_ENDPOINT} foo
${DEFAULT_PORT} 4444
${FIRST_CONTROLLER_INDEX} 1
{
- "configured-endpoints": {
- "name": "foo",
- "modules": ["jsonrpc"],
- "data-config-endpoints": [{
- "path": "{}",
- "endpoint-uri": "zmq://127.0.0.1:4444"
- }],
- "data-operational-endpoints": [{
- "path": "{}",
- "endpoint-uri": "zmq://127.0.0.1:4444"
- }]
- }
+ "configured-endpoints": [
+ {
+ "name": "foo",
+ "modules": [
+ "jsonrpc"
+ ],
+ "data-config-endpoints": [
+ {
+ "path": "{}",
+ "endpoint-uri": "zmq://127.0.0.1:4444"
+ }
+ ],
+ "data-operational-endpoints": [
+ {
+ "path": "{}",
+ "endpoint-uri": "zmq://127.0.0.1:4444"
+ }
+ ]
+ }
+ ]
}