Commit f0ee8bc3 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[fix-test][SOL009][NFVMANO-CIM][v5.2.1][8.3.1.x.y Test-IDs] fix - check...

[fix-test][SOL009][NFVMANO-CIM][v5.2.1][8.3.1.x.y Test-IDs] fix - check Location Header and resource availability in SOL009 NFVMANO CIM - item #8 in NFVSOL(25)000288
parent a64110ad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ POST Change consumed NFV MANO interface state task
    Send Post request for Change consumed NFV MANO interface state task
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains Location
    Check Postcondition Change State Operation Occurrence Resource Returned in Location Header Is Available
    Check PostCondition NFV-MANO consumed service interface state matches the requested state
    
POST Change consumed NFV MANO interface state task - Conflict
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ POST Change interface state task
    Send Post request for Change interface state task
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains Location
    Check Postcondition Change State Operation Occurrence Resource Returned in Location Header Is Available
    Check PostCondition NFV-MANO service interface state matches the requested state
    
POST Change interface state task - Conflict
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ POST NFV-MANO functional entity application state change
    Send Post request for NFV-MANO functional entity application state change
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains Location
    Check Postcondition Change State Operation Occurrence Resource Returned in Location Header Is Available
    Wait for entity state change success notification and validate status
    
POST NFV-MANO functional entity application state change - Conflict
+22 −0
Original line number Diff line number Diff line
@@ -1081,6 +1081,28 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
    Validate Json    CimSubscription.schema.json    ${result}
    Log    Validated CimSubscription schema

Check Postcondition Change State Operation Occurrence Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    GET    ${response['headers']['Location']}
    Integer    response status    200
    Log    Received a 200 OK as expected
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    ChangeStateOpOcc.schema.json    ${result}
    Log    Validated ChangeStateOpOcc schema

Check Postcondition PeerEntity Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    GET    ${response['headers']['Location']}
    Integer    response status    200
    Log    Received a 200 OK as expected
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    PeerEntity.schema.json    ${result}
    Log    Validated PeerEntity schema
    
Send Put Request for Subscriptions
    [Documentation]    This method is not supported. When this method is requested on this resource, the NFV-MANO shall return a "405 Method
    ...    Not Allowed" response as defined in clause 4.3.5.4.
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ POST Peer Entity
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PeerEntity
    Check HTTP Response Header Contains Location
    Check Postcondition Peer Entity Resource is created
    Check Postcondition Peer Entity Resource Returned in Location Header Is Available
    
GET Peer Entities
    [Documentation]    Test ID: 8.3.1.8.2
Loading