diff options
author | Leonardo Bellini <leonardo.bellini@att.com> | 2018-03-01 08:48:10 -0600 |
---|---|---|
committer | Leonardo Bellini <leonardo.bellini@att.com> | 2018-03-01 08:52:57 -0600 |
commit | d452192f36bb2df0bf70b78b482aa8f5814885e3 (patch) | |
tree | e253847416c66ea0e8ba802d6b24642d0dcca383 /test/csit/tests/optf/has/optf_has_test.robot | |
parent | da6600cf47f3eeec0cc55c115949f10ec066440a (diff) |
Add CSIT files for optf/has for integration
Issue-ID: OPTFRA-158
Change-Id: Idc7827cf82e21bdddea4293c94516bdc0bfa2b6e
Signed-off-by: Leonardo Bellini <leonardo.bellini@att.com>
Diffstat (limited to 'test/csit/tests/optf/has/optf_has_test.robot')
-rw-r--r-- | test/csit/tests/optf/has/optf_has_test.robot | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/csit/tests/optf/has/optf_has_test.robot b/test/csit/tests/optf/has/optf_has_test.robot new file mode 100644 index 000000000..183cb6859 --- /dev/null +++ b/test/csit/tests/optf/has/optf_has_test.robot @@ -0,0 +1,29 @@ +*** Settings *** +Library OperatingSystem +Library RequestsLibrary +Library json + +*** Variables *** +${MESSAGE} {"ping": "ok"} +${RESP_STATUS} "error" +${RESP_MESSAGE_WRONG_VERSION} "conductor_template_version must be one of: 2016-11-01" +${RESP_MESSAGE_WITHOUT_DEMANDS} Undefined Demand + +#global variables +${generatedPlanId} + +*** Test Cases *** +Get Root Url + [Documentation] It sends a REST GET request to root url + Create Session optf-cond ${COND_HOSTNAME}:${COND_PORT} + &{headers}= Create Dictionary Content-Type=application/json Accept=application/json + ${resp}= Get Request optf-cond /v1/plans/ headers=${headers} + Log To Console ********************* + Log To Console response = ${resp} + Log To Console body = ${resp.text} + Should Be Equal As Integers ${resp.status_code} 200 + + +*** Keywords *** + + |