MANAGEMENT_URL
http://${DMI_HOST}:${DMI_MANAGEMENT_PORT}/manage
Create Session: create a HTTP session to a server
Creating Session using : alias=MANAGEMENT_URL, url=http://172.19.171.246:8787/manage, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
${response}
MANAGEMENT_URL
health
expected_status=200
Sends a GET request on a previously created HTTP Session.
GET Request : url=http://172.19.171.246:8787/manage/health
path_url=/manage/health
headers={'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}
body=None
GET Response : url=http://172.19.171.246:8787/manage/health
status=200, reason=
headers={'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Content-Type': 'application/vnd.spring-boot.actuator.v3+json', 'Transfer-Encoding': 'chunked', 'Date': 'Thu, 03 Nov 2022 15:04:24 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}
body={"status":"UP","components":{"diskSpace":{"status":"UP","details":{"total":269490393088,"free":250509692928,"threshold":10485760,"exists":true}},"livenessState":{"status":"UP"},"ping":{"status":"UP"},"readinessState":{"status":"UP"}},"groups":["liveness","readiness"]}
${response} = <Response [200]>
${resp_body}
${response.text}
Converts the given item to a Unicode string.
${resp_body} = {"status":"UP","components":{"diskSpace":{"status":"UP","details":{"total":269490393088,"free":250509692928,"threshold":10485760,"exists":true}},"livenessState":{"status":"UP"},"ping":{"status":"UP"},...
${resp_body}
UP
Fails if ``container`` does not contain ``item`` one or more times.
${resp_body}
DOWN
Fails if ``container`` contains ``item`` one or more times.
Runs DMI Health Check. It will check for overall status update of DMI component like, Database and diskspace status along with liveliness and readiness check
DMI - Actuator endpoints
DMI_URL
http://${DMI_HOST}:${DMI_PORT}
Create Session: create a HTTP session to a server
Creating Session using : alias=DMI_URL, url=http://172.19.171.246:8783, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
${uri}
${dmiBasePath}/v1/inventory/cmHandles
Returns the given values which can then be assigned to a variables.
${uri} = /dmi/v1/inventory/cmHandles
${headers}
Content-Type=application/json
Authorization=${auth}
Creates and returns a dictionary based on the given ``items``.
${headers} = {'Content-Type': 'application/json', 'Authorization': 'Basic Y3BzdXNlcjpjcHNyMGNrcyE='}
${jsonData}
${DATADIR}${/}cmHandleRegistration.json
Returns the contents of a specified file.
Getting file '<a href="file:///mnt/c/CPS/CSIT/ncmp-dmi-plugin/csit/data/cmHandleRegistration.json">/mnt/c/CPS/CSIT/ncmp-dmi-plugin/csit/data/cmHandleRegistration.json</a>'.
${jsonData} = {
"cmHandles": [
"PNFDemo"
]
}
${response}
DMI_URL
${uri}
headers=${headers}
data=${jsonData}
Sends a POST request on a previously created HTTP Session.
POST Request : url=http://172.19.171.246:8783/dmi/v1/inventory/cmHandles
path_url=/dmi/v1/inventory/cmHandles
headers={'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic Y3BzdXNlcjpjcHNyMGNrcyE=', 'Content-Length': '46'}
body=b'{\n "cmHandles": [\n "PNFDemo"\n ]\n}'
POST Response : url=http://172.19.171.246:8783/dmi/v1/inventory/cmHandles
status=201, reason=
headers={'Set-Cookie': 'JSESSIONID=93901F49A6D328DE0CFC714DF71D8740; Path=/; HttpOnly', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Content-Type': 'text/plain;charset=UTF-8', 'Content-Length': '34', 'Date': 'Thu, 03 Nov 2022 15:04:25 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}
body=cm-handle registered successfully.
${response} = <Response [201]>
${response.status_code}
201
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'int'>
<class 'str'>
NCMP
DMI_URL
http://${DMI_HOST}:${DMI_PORT}
Create Session: create a HTTP session to a server
Creating Session using : alias=DMI_URL, url=http://172.19.171.246:8783, headers={}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
${uri}
${dmiBasePath}/v1/ch/PNFDemo/modules
Returns the given values which can then be assigned to a variables.
${uri} = /dmi/v1/ch/PNFDemo/modules
${headers}
Content-Type=application/json
Authorization=${auth}
Creates and returns a dictionary based on the given ``items``.
${headers} = {'Content-Type': 'application/json', 'Authorization': 'Basic Y3BzdXNlcjpjcHNyMGNrcyE='}
${response}
DMI_URL
${uri}
headers=${headers}
data={}
expected_status=200
Sends a POST request on a previously created HTTP Session.
POST Request : url=http://172.19.171.246:8783/dmi/v1/ch/PNFDemo/modules
path_url=/dmi/v1/ch/PNFDemo/modules
headers={'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic Y3BzdXNlcjpjcHNyMGNrcyE=', 'Content-Length': '2'}
body={}
POST Response : url=http://172.19.171.246:8783/dmi/v1/ch/PNFDemo/modules
status=200, reason=
headers={'Set-Cookie': 'JSESSIONID=6CB2E302B2E57BF480CFB7D4A7B2A366; Path=/; HttpOnly', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Thu, 03 Nov 2022 15:04:25 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}
body={"schemas":[{"moduleName":"ietf-tls-server","revision":"2016-11-02","namespace":"urn:ietf:params:xml:ns:yang:ietf-tls-server"},{"moduleName":"nc-notifications","revision":"2008-07-14","namespace":"urn:ietf:params:xml:ns:netmod:notification"},{"moduleName":"ietf-ssh-server","revision":"2016-11-02","namespace":"urn:ietf:params:xml:ns:yang:ietf-ssh-server"},{"moduleName":"turing-machine","revision":"2013-12-27","namespace":"http://example.net/turing-machine"},{"moduleName":"ietf-yang-metadata","revision":"2016-08-05","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-metadata"},{"moduleName":"iana-crypt-hash","revision":"2014-08-06","namespace":"urn:ietf:params:xml:ns:yang:iana-crypt-hash"},{"moduleName":"ietf-datastores","revision":"2017-08-17","namespace":"urn:ietf:params:xml:ns:yang:ietf-datastores"},{"moduleName":"ietf-netconf-with-defaults","revision":"2011-06-01","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults"},{"moduleName":"ietf-x509-cert-to-name","revision":"2014-12-10","namespace":"urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name"},{"moduleName":"ietf-netconf","revision":"2011-06-01","namespace":"urn:ietf:params:xml:ns:netconf:base:1.0"},{"moduleName":"ietf-keystore","revision":"2016-10-31","namespace":"urn:ietf:params:xml:ns:yang:ietf-keystore"},{"moduleName":"ietf-netconf-with-defaults","revision":"2011-06-01","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults"},{"moduleName":"ietf-inet-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-inet-types"},{"moduleName":"ietf-keystore","revision":"2016-10-31","namespace":"urn:ietf:params:xml:ns:yang:ietf-keystore"},{"moduleName":"turing-machine","revision":"2013-12-27","namespace":"http://example.net/turing-machine"},{"moduleName":"ietf-netconf-acm","revision":"2018-02-14","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-acm"},{"moduleName":"yang","revision":"2017-02-20","namespace":"urn:ietf:params:xml:ns:yang:1"},{"moduleName":"ietf-yang-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-types"},{"moduleName":"ietf-system","revision":"2014-08-06","namespace":"urn:ietf:params:xml:ns:yang:ietf-system"},{"moduleName":"nc-notifications","revision":"2008-07-14","namespace":"urn:ietf:params:xml:ns:netmod:notification"},{"moduleName":"stores","revision":"2020-09-15","namespace":"org:onap:ccsdk:sample"},{"moduleName":"ietf-yang-metadata","revision":"2016-08-05","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-metadata"},{"moduleName":"ietf-netconf-notifications","revision":"2012-02-06","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-notifications"},{"moduleName":"ietf-netconf-monitoring","revision":"2010-10-04","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"},{"moduleName":"ietf-netconf-server","revision":"2016-11-02","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-server"},{"moduleName":"stores","revision":"2020-09-15","namespace":"org:onap:ccsdk:sample"},{"moduleName":"ietf-yang-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-types"},{"moduleName":"ietf-yang-library","revision":"2019-01-04","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-library"},{"moduleName":"ietf-netconf-notifications","revision":"2012-02-06","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-notifications"},{"moduleName":"ietf-yang-library","revision":"2019-01-04","namespace":"urn:ietf:params:xml:ns:yang:ietf-yang-library"},{"moduleName":"notifications","revision":"2008-07-14","namespace":"urn:ietf:params:xml:ns:netconf:notification:1.0"},{"moduleName":"ietf-tls-server","revision":"2016-11-02","namespace":"urn:ietf:params:xml:ns:yang:ietf-tls-server"},{"moduleName":"iana-crypt-hash","revision":"2014-08-06","namespace":"urn:ietf:params:xml:ns:yang:iana-crypt-hash"},{"moduleName":"ietf-netconf","revision":"2011-06-01","namespace":"urn:ietf:params:xml:ns:netconf:base:1.0"},{"moduleName":"notifications","revision":"2008-07-14","namespace":"urn:ietf:params:xml:ns:netconf:notification:1.0"},{"moduleName":"ietf-netconf-monitoring","revision":"2010-10-04","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"},{"moduleName":"yang","revision":"2017-02-20","namespace":"urn:ietf:params:xml:ns:yang:1"},{"moduleName":"ietf-x509-cert-to-name","revision":"2014-12-10","namespace":"urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name"},{"moduleName":"ietf-inet-types","revision":"2013-07-15","namespace":"urn:ietf:params:xml:ns:yang:ietf-inet-types"},{"moduleName":"ietf-ssh-server","revision":"2016-11-02","namespace":"urn:ietf:params:xml:ns:yang:ietf-ssh-server"},{"moduleName":"ietf-datastores","revision":"2017-08-17","namespace":"urn:ietf:params:xml:ns:yang:ietf-datastores"},{"moduleName":"ietf-netconf-server","revision":"2016-11-02","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-server"},{"moduleName":"ietf-netconf-acm","revision":"2018-02-14","namespace":"urn:ietf:params:xml:ns:yang:ietf-netconf-acm"},{"moduleName":"ietf-system","revision":"2014-08-06","namespace":"urn:ietf:params:xml:ns:yang:ietf-system"}]}
${response} = <Response [200]>
NCMP
All Tests
plans/dmi
plans/dmi.Actuator
plans/dmi.Actuator.Actuator
plans/dmi.Dmi-Integration
plans/dmi.Dmi-Integration.Dmi-Ncmp
plans/dmi.Dmi-Integration.Dmi-Sdnc