Commit 3c97e28d authored by Najam UI Hassan's avatar Najam UI Hassan Committed by Giacomo Bernini
Browse files

minor bugs fixed and redundant post-conditions removed

parent fea6a576
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -66,10 +66,9 @@ POST Individual Subscription - Method not implemented
    ...    Reference: clause 5.5.5.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Reference: clause 5.5.5.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The VNF Performance Subscription is not created on the NFV-MANO
    ...    Post-Conditions: none
    Send Post request for individual Subscription
    Send Post request for individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Check Postcondition Subscription is not Created


PUT Individual Subscription - Method not implemented
PUT Individual Subscription - Method not implemented
    [Documentation]    Test ID: 8.3.1.11.6
    [Documentation]    Test ID: 8.3.1.11.6
@@ -79,10 +78,9 @@ PUT Individual Subscription - Method not implemented
    ...    Reference: clause 5.5.5.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Reference: clause 5.5.5.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The subscription is not modified by the operation
    ...    Post-Conditions: none
    Send Put request for individual Subscription
    Send Put request for individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Check Postcondition Subscription is Unmodified (Implicit)


PATCH Individual Subscription - Method not implemented
PATCH Individual Subscription - Method not implemented
    [Documentation]    Test ID: 8.3.1.11.7
    [Documentation]    Test ID: 8.3.1.11.7
@@ -92,7 +90,6 @@ PATCH Individual Subscription - Method not implemented
    ...    Reference: clause 5.5.5.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Reference: clause 5.5.5.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The subscription is not modified by the operation
    ...    Post-Conditions: none
    Send Patch request for individual Subscription
    Send Patch request for individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Check Postcondition Subscription is Unmodified (Implicit)
+0 −22
Original line number Original line Diff line number Diff line
@@ -714,11 +714,6 @@ Send Delete Request for Subscriptions
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}
    
    
Check Postcondition Subscriptions Exists
    Log    Checking that subscriptions exists
    Get all Subscriptions
    Check HTTP Response Status Code Is    200
    
Get Individual Subscription
Get Individual Subscription
    Set headers    {"Accept": "${ACCEPT_JSON}"}
    Set headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -781,23 +776,6 @@ Send Patch request for individual Subscription
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    @{response}    ${output}
    Set Suite Variable    @{response}    ${output}
    
    
Check Postcondition Subscription is Unmodified (Implicit)
    Log    Check postconidtion subscription not modified
    GET individual Subscription
    Log    Check Response matches original Subscription
    ${subscription}=    evaluate    json.loads('''${response['body']}''')    json
    Should Be Equal As Strings    ${origResponse['body']['id']}    ${subscription.id}
    Should Be Equal As Strings    ${origResponse['body']['callbackUri']}    ${subscription.callbackUri}

Check Postcondition Subscription is not Created
    Log    Trying to get a new subscription
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${newSubscriptionId}
    ${output}=    Output    response
    Set Suite Variable    @{response}    ${output}
    Check HTTP Response Status Code Is    404 
    
Check Postcondition Peer Entity Resource is created
Check Postcondition Peer Entity Resource is created
    Log    Check Postcondition Peer Entity resource
    Log    Check Postcondition Peer Entity resource
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
+1 −1
Original line number Original line Diff line number Diff line
@@ -176,7 +176,7 @@ Get Peer Entity with malformed authorization token
    ...    Applicability: The Peer Entity requires the usage of access tokens for authorizing the API requests.
    ...    Applicability: The Peer Entity requires the usage of access tokens for authorizing the API requests.
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET Peer Entity with malformed authorization token
    GET Peer Entity with malformed authorization token
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    401


Get Peer Entity without authorization token
Get Peer Entity without authorization token
    [Documentation]    Test ID: 8.3.1.8.14
    [Documentation]    Test ID: 8.3.1.8.14
+1 −2
Original line number Original line Diff line number Diff line
@@ -169,7 +169,6 @@ DELETE Subscriptions - Method not implemented
    ...    Reference: clause 5.5.4.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Reference: clause 5.5.4.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The subscriptions are not deleted by the failed operation   
    ...    Post-Conditions: none   
    Send Delete Request for Subscriptions
    Send Delete Request for Subscriptions
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Check Postcondition Subscriptions Exists
+1 −1
Original line number Original line Diff line number Diff line
{
{
  "name": "NFV-MANO Entity"
  "name": "NFV-MANO_Entity"
}
}
 No newline at end of file