diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2021-04-09 12:25:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-04-09 12:25:25 +0000 |
commit | 9f3406b93ef569d33958a006528bed52f0b4bb69 (patch) | |
tree | 092f5b1a8f6b832f83fe4c6bc2a64d4393321e4c /tests | |
parent | b7e9993ce237092ce54d0e753d5f7173a4976f37 (diff) | |
parent | 3fbb3ba0c6f6c9653059a9eed5ebfa5ecd33efa0 (diff) |
Merge "Add CSIT for Netconf Module Configuration Get"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/nfsimulator/netconf-server/netconf-server-rest-test.robot | 7 | ||||
-rw-r--r-- | tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot | 10 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/integration/nfsimulator/netconf-server/netconf-server-rest-test.robot b/tests/integration/nfsimulator/netconf-server/netconf-server-rest-test.robot index fea34b43..21001e5b 100644 --- a/tests/integration/nfsimulator/netconf-server/netconf-server-rest-test.robot +++ b/tests/integration/nfsimulator/netconf-server/netconf-server-rest-test.robot @@ -1,6 +1,7 @@ *** Settings *** Documentation Run healthcheck Library RequestsLibrary +Library Collections Resource ./resources/netconf-server-keywords.robot @@ -23,4 +24,8 @@ Netconf Module Configuration Update Sleep 20s Wait for message distribution in Kafka Verify That Change Is Available In NetConf Module Change Configuration History 200 - +Netconf Module Configuration History Get + [Tags] Netconf-Server + [Documentation] Configuration History should be returned + Update NetConf Module Configuration pnf-simulator ${PNF_SIMULATOR_DATA_XML} 202 + Verify That Configuration History Is Available 200
\ No newline at end of file diff --git a/tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot b/tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot index 9dccd048..43a02e67 100644 --- a/tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot +++ b/tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot @@ -37,3 +37,13 @@ Verify That Change Is Available In NetConf Module Change Configuration History Should Be Equal As Strings ${resp.status_code} ${resp_code} ${actual_data}= Convert To String ${resp.json()} Should Be Equal ${actual_data} [{u'new': {u'path': u'/pnf-simulator:config/itemValue1', u'value': 42}, u'type': u'ChangeCreated'}, {u'new': {u'path': u'/pnf-simulator:config/itemValue2', u'value': 35}, u'type': u'ChangeCreated'}] + +Verify That Configuration History Is Available + [Documentation] Verify that configuration is available + [Arguments] ${resp_code} + + Create Session netconf_server_session ${NETCONF_SERVER_URL} + ${resp}= GET On Session netconf_server_session /get_config/pnf-simulator + Should Be Equal As Strings ${resp.status_code} ${resp_code} + Dictionary Should Contain Item ${resp.json()['config']} itemValue1 ${42} + Dictionary Should Contain Item ${resp.json()['config']} itemValue2 ${35} |