Loading SOL005/NFVICapacityInformation-API/CapacityThresholds.robot +25 −0 Original line number Diff line number Diff line Loading @@ -129,3 +129,28 @@ DELETE Capacity Thresholds - Method not implemented ... Post-Conditions: none DELETE Capacity Thresholds Check HTTP Response Status Code Is 405 GET Capacity Thresholds with permitted authorization scope [Documentation] Test ID: 5.3.6.5.11 ... Test title: GET Capacity Thresholds with permitted authorization scope ... Test objective: The objective is to GET Capacity Thresholds objects with permitted authorization scope ... Pre-conditions: none ... Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none GET Capacity Thresholds with permitted authorization scope Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is CapacityThresholds GET Capacity Thresholds with not permitted authorization scope [Documentation] Test ID: 5.3.6.5.12 ... Test title: GET Capacity Thresholds with not permitted authorization scope ... Test objective: The objective is to test that GET Capacity Thresholds objects fails when using not permitted authorization scope ... Pre-conditions: none ... Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none GET Capacity Thresholds with not permitted authorization scope Check HTTP Response Status Code Is 401 No newline at end of file SOL005/NFVICapacityInformation-API/NFVICapacityInformationKeywords.robot +24 −0 Original line number Diff line number Diff line Loading @@ -357,6 +357,30 @@ GET Capacity Thresholds ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET Capacity Thresholds with permitted authorization scope log Trying to get information about multiple Capacity Thresholds Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} ${scopeValue}= Create Dictionary scope=${THRESHOLDS_PERMITTED_SCOPE} ${authorizationToken}= JWT Encode payload=${scopeValue} key='' algorithm=${OAUTH_ENCRIPTION_ALGORITHM} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${authorizationToken}"} Log Authorization Token: ${authorizationToken} Get ${apiRoot}/${apiName}/${apiMajorVersion}/capacity_thresholds ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET Capacity Thresholds with not permitted authorization scope log Trying to get information about multiple Capacity Thresholds Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} ${scopeValue}= Create Dictionary scope=${NOT_PERMITTED_SCOPE} ${authorizationToken}= JWT Encode payload=${scopeValue} key='' algorithm=${OAUTH_ENCRIPTION_ALGORITHM} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${authorizationToken}"} Log Authorization Token: ${authorizationToken} Get ${apiRoot}/${apiName}/${apiMajorVersion}/capacity_thresholds ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET Capacity Thresholds using filter log Trying to get information about multiple Capacity Thresholds using filtering parameters Set Headers {"Accept":"${ACCEPT_JSON}"} Loading Loading
SOL005/NFVICapacityInformation-API/CapacityThresholds.robot +25 −0 Original line number Diff line number Diff line Loading @@ -129,3 +129,28 @@ DELETE Capacity Thresholds - Method not implemented ... Post-Conditions: none DELETE Capacity Thresholds Check HTTP Response Status Code Is 405 GET Capacity Thresholds with permitted authorization scope [Documentation] Test ID: 5.3.6.5.11 ... Test title: GET Capacity Thresholds with permitted authorization scope ... Test objective: The objective is to GET Capacity Thresholds objects with permitted authorization scope ... Pre-conditions: none ... Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none GET Capacity Thresholds with permitted authorization scope Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is CapacityThresholds GET Capacity Thresholds with not permitted authorization scope [Documentation] Test ID: 5.3.6.5.12 ... Test title: GET Capacity Thresholds with not permitted authorization scope ... Test objective: The objective is to test that GET Capacity Thresholds objects fails when using not permitted authorization scope ... Pre-conditions: none ... Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none GET Capacity Thresholds with not permitted authorization scope Check HTTP Response Status Code Is 401 No newline at end of file
SOL005/NFVICapacityInformation-API/NFVICapacityInformationKeywords.robot +24 −0 Original line number Diff line number Diff line Loading @@ -357,6 +357,30 @@ GET Capacity Thresholds ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET Capacity Thresholds with permitted authorization scope log Trying to get information about multiple Capacity Thresholds Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} ${scopeValue}= Create Dictionary scope=${THRESHOLDS_PERMITTED_SCOPE} ${authorizationToken}= JWT Encode payload=${scopeValue} key='' algorithm=${OAUTH_ENCRIPTION_ALGORITHM} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${authorizationToken}"} Log Authorization Token: ${authorizationToken} Get ${apiRoot}/${apiName}/${apiMajorVersion}/capacity_thresholds ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET Capacity Thresholds with not permitted authorization scope log Trying to get information about multiple Capacity Thresholds Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} ${scopeValue}= Create Dictionary scope=${NOT_PERMITTED_SCOPE} ${authorizationToken}= JWT Encode payload=${scopeValue} key='' algorithm=${OAUTH_ENCRIPTION_ALGORITHM} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${authorizationToken}"} Log Authorization Token: ${authorizationToken} Get ${apiRoot}/${apiName}/${apiMajorVersion}/capacity_thresholds ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} GET Capacity Thresholds using filter log Trying to get information about multiple Capacity Thresholds using filtering parameters Set Headers {"Accept":"${ACCEPT_JSON}"} Loading