Loading SOL005/VNFPackageManagement-API/IndividualSubscription.robot +28 −1 Original line number Diff line number Diff line Loading @@ -95,3 +95,30 @@ DELETE Individual VNF Package Subscription Send Delete request for individual VNF Package Subscription Check HTTP Response Status Code Is 204 Check Postcondition VNF Package Subscription is Deleted GET Individual VNF Package Subscription with permitted authorization scope [Documentation] Test ID: 5.3.5.8.8 ... Test title: GET Individual VNF Package Subscription with permitted authorization scope ... Test objective: The objective is to test the retrieval of individual VNF package subscription with permitted authorization scope ... Pre-conditions: At least one VNF package subscription is available in the NFVO. ... Reference: Clause 9.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none Get Individual VNF Package Subscription with permitted authorization scope Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is PkgmSubscription Check HTTP Response Body Subscription Identifier matches the requested Subscription Check HTTP Response Body PkgmSubscription content against VNF Descriptor GET Individual VNF Package Subscription with not permitted authorization scope [Documentation] Test ID: 5.3.5.8.8 ... Test title: GET Individual VNF Package Subscription with not permitted authorization scope ... Test objective: The objective is to test the retrieval of individual VNF package subscription fails when using not permitted authorization scope ... Pre-conditions: At least one VNF package subscription is available in the NFVO. ... Reference: Clause 9.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none Get Individual VNF Package Subscription with not permitted authorization scope Check HTTP Response Status Code Is 401 No newline at end of file SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot +22 −0 Original line number Diff line number Diff line Loading @@ -1108,6 +1108,28 @@ Get Individual VNF Package Subscription ${output}= Output response Set Suite Variable ${response} ${output} Get Individual VNF Package Subscription with permitted authorization scope Log Trying to get a single subscription identified by subscriptionId Set Headers {"Accept": "${ACCEPT_JSON}"} ${scopeValue}= Create Dictionary scope=${SUBSCRIPTIONS_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} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} ${output}= Output response Set Suite Variable ${response} ${output} Get Individual VNF Package Subscription with not permitted authorization scope Log Trying to get a single subscription identified by subscriptionId Set Headers {"Accept": "${ACCEPT_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} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} ${output}= Output response Set Suite Variable ${response} ${output} GET individual VNF Package Subscription with invalid resource identifier Log Trying to perform a request on a subscriptionID which doesn't exist Set Headers {"Accept": "${ACCEPT_JSON}"} Loading Loading
SOL005/VNFPackageManagement-API/IndividualSubscription.robot +28 −1 Original line number Diff line number Diff line Loading @@ -95,3 +95,30 @@ DELETE Individual VNF Package Subscription Send Delete request for individual VNF Package Subscription Check HTTP Response Status Code Is 204 Check Postcondition VNF Package Subscription is Deleted GET Individual VNF Package Subscription with permitted authorization scope [Documentation] Test ID: 5.3.5.8.8 ... Test title: GET Individual VNF Package Subscription with permitted authorization scope ... Test objective: The objective is to test the retrieval of individual VNF package subscription with permitted authorization scope ... Pre-conditions: At least one VNF package subscription is available in the NFVO. ... Reference: Clause 9.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none Get Individual VNF Package Subscription with permitted authorization scope Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is PkgmSubscription Check HTTP Response Body Subscription Identifier matches the requested Subscription Check HTTP Response Body PkgmSubscription content against VNF Descriptor GET Individual VNF Package Subscription with not permitted authorization scope [Documentation] Test ID: 5.3.5.8.8 ... Test title: GET Individual VNF Package Subscription with not permitted authorization scope ... Test objective: The objective is to test the retrieval of individual VNF package subscription fails when using not permitted authorization scope ... Pre-conditions: At least one VNF package subscription is available in the NFVO. ... Reference: Clause 9.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v4.5.1 ... Config ID: Config_prod_NFVO ... Applicability: none ... Post-Conditions: none Get Individual VNF Package Subscription with not permitted authorization scope Check HTTP Response Status Code Is 401 No newline at end of file
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot +22 −0 Original line number Diff line number Diff line Loading @@ -1108,6 +1108,28 @@ Get Individual VNF Package Subscription ${output}= Output response Set Suite Variable ${response} ${output} Get Individual VNF Package Subscription with permitted authorization scope Log Trying to get a single subscription identified by subscriptionId Set Headers {"Accept": "${ACCEPT_JSON}"} ${scopeValue}= Create Dictionary scope=${SUBSCRIPTIONS_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} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} ${output}= Output response Set Suite Variable ${response} ${output} Get Individual VNF Package Subscription with not permitted authorization scope Log Trying to get a single subscription identified by subscriptionId Set Headers {"Accept": "${ACCEPT_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} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} ${output}= Output response Set Suite Variable ${response} ${output} GET individual VNF Package Subscription with invalid resource identifier Log Trying to perform a request on a subscriptionID which doesn't exist Set Headers {"Accept": "${ACCEPT_JSON}"} Loading