Loading SOL009/NFVMANOPerformanceManagement-API/ApiVersion.robot 0 → 100644 +211 −0 Original line number Diff line number Diff line *** Settings *** Resource environment/variables.txt Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT} ssl_verify=false Library DependencyLibrary Library JSONLibrary Library JSONSchemaLibrary schemas/ *** Test Cases *** POST API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.1 ... Test title: POST API version - Method not implemented ... Test objective: The objective is to test that POST method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none POST API Version Check HTTP Response Status Code Is 405 GET API Version [Documentation] Test ID: 8.3.2.9.2 ... Test title: GET API Version ... Test objective: The objective is to test that GET method successfully return ApiVersionInformation ... Pre-conditions: none ... Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none GET API Version Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ApiVersionInformation PUT API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.3 ... Test title: PUT API Version - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PUT API Version Check HTTP Response Status Code Is 405 PATCH API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.4 ... Test title: PATCH API Version - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PATCH API Version Check HTTP Response Status Code Is 405 DELETE API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.5 ... Test title: DELETE API Version - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none DELETE API Version Check HTTP Response Status Code Is 405 POST API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.6 ... Test title: POST API version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that POST method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none POST API Version Check HTTP Response Status Code Is 405 GET API Version with apiMajorVerion [Documentation] Test ID: 8.3.2.9.7 ... Test title: GET API Version with apiMajorVerion ... Test objective: The objective is to test that GET method successfully return ApiVersionInformation ... Pre-conditions: none ... Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none GET API Version Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ApiVersionInformation PUT API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.8 ... Test title: PUT API Version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PUT API Version Check HTTP Response Status Code Is 405 PATCH API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.9 ... Test title: PATCH API Version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PATCH API Version Check HTTP Response Status Code Is 405 DELETE API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.10 ... Test title: DELETE API Version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none DELETE API Version Check HTTP Response Status Code Is 405 *** Keywords *** POST API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PUT API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PATCH API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} DELETE API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PUT API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PATCH API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} DELETE API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Check HTTP Response Status Code Is [Arguments] ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status} Log Status code validated Check HTTP Response Body Json Schema Is [Arguments] ${input} ${schema} = Catenate ${input} .schema.json Validate Json ${schema} ${response['body']} Log Json Schema Validation OK SOL009/NFVMANOPerformanceManagement-API/environment/variables.txt +3 −1 Original line number Diff line number Diff line Loading @@ -31,3 +31,5 @@ ${polling_interval} 10 sec ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar ${subscriptionId} 17563e75-0e14-4bd7-94b4-6bbb869c79aa ${response} No newline at end of file libspecs/Easter.libspec +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <keywordspec name="Easter" type="library" format="ROBOT" generated="20200810 09:44:27"> <keywordspec name="Easter" type="library" format="ROBOT" generated="20200817 12:25:57"> <version></version> <scope>global</scope> <namedargs>yes</namedargs> Loading libspecs/Reserved.libspec +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <keywordspec name="Reserved" type="library" format="ROBOT" generated="20200810 09:44:27"> <keywordspec name="Reserved" type="library" format="ROBOT" generated="20200817 12:25:57"> <version></version> <scope>global</scope> <namedargs>yes</namedargs> Loading Loading
SOL009/NFVMANOPerformanceManagement-API/ApiVersion.robot 0 → 100644 +211 −0 Original line number Diff line number Diff line *** Settings *** Resource environment/variables.txt Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT} ssl_verify=false Library DependencyLibrary Library JSONLibrary Library JSONSchemaLibrary schemas/ *** Test Cases *** POST API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.1 ... Test title: POST API version - Method not implemented ... Test objective: The objective is to test that POST method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none POST API Version Check HTTP Response Status Code Is 405 GET API Version [Documentation] Test ID: 8.3.2.9.2 ... Test title: GET API Version ... Test objective: The objective is to test that GET method successfully return ApiVersionInformation ... Pre-conditions: none ... Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none GET API Version Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ApiVersionInformation PUT API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.3 ... Test title: PUT API Version - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PUT API Version Check HTTP Response Status Code Is 405 PATCH API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.4 ... Test title: PATCH API Version - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PATCH API Version Check HTTP Response Status Code Is 405 DELETE API Version - Method not implemented [Documentation] Test ID: 8.3.2.9.5 ... Test title: DELETE API Version - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none DELETE API Version Check HTTP Response Status Code Is 405 POST API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.6 ... Test title: POST API version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that POST method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none POST API Version Check HTTP Response Status Code Is 405 GET API Version with apiMajorVerion [Documentation] Test ID: 8.3.2.9.7 ... Test title: GET API Version with apiMajorVerion ... Test objective: The objective is to test that GET method successfully return ApiVersionInformation ... Pre-conditions: none ... Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none GET API Version Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ApiVersionInformation PUT API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.8 ... Test title: PUT API Version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PUT API Version Check HTTP Response Status Code Is 405 PATCH API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.9 ... Test title: PATCH API Version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none PATCH API Version Check HTTP Response Status Code Is 405 DELETE API Version with apiMajorVerion - Method not implemented [Documentation] Test ID: 8.3.2.9.10 ... Test title: DELETE API Version with apiMajorVerion - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none ... Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v2.7.1 ... Config ID: Config_prod_NFV-MANO ... Applicability: none ... Post-Conditions: none DELETE API Version Check HTTP Response Status Code Is 405 *** Keywords *** POST API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PUT API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PATCH API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} DELETE API Version Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PUT API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} PATCH API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} DELETE API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiMajorVersion} /api_version ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Check HTTP Response Status Code Is [Arguments] ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status} Log Status code validated Check HTTP Response Body Json Schema Is [Arguments] ${input} ${schema} = Catenate ${input} .schema.json Validate Json ${schema} ${response['body']} Log Json Schema Validation OK
SOL009/NFVMANOPerformanceManagement-API/environment/variables.txt +3 −1 Original line number Diff line number Diff line Loading @@ -31,3 +31,5 @@ ${polling_interval} 10 sec ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar ${subscriptionId} 17563e75-0e14-4bd7-94b4-6bbb869c79aa ${response} No newline at end of file
libspecs/Easter.libspec +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <keywordspec name="Easter" type="library" format="ROBOT" generated="20200810 09:44:27"> <keywordspec name="Easter" type="library" format="ROBOT" generated="20200817 12:25:57"> <version></version> <scope>global</scope> <namedargs>yes</namedargs> Loading
libspecs/Reserved.libspec +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <keywordspec name="Reserved" type="library" format="ROBOT" generated="20200810 09:44:27"> <keywordspec name="Reserved" type="library" format="ROBOT" generated="20200817 12:25:57"> <version></version> <scope>global</scope> <namedargs>yes</namedargs> Loading