Commit 4d782d15 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[fix-test][SOL009][NFVMANO-PM][v5.2.1][8.3.2.x.y Test-IDs] fix - check...

[fix-test][SOL009][NFVMANO-PM][v5.2.1][8.3.2.x.y Test-IDs] fix - check Location Header and resource availability in SOL009 NFVMANO PM - item #8 in NFVSOL(25)000288
parent 26b9098a
Loading
Loading
Loading
Loading
+13 −2
Original line number Original line Diff line number Diff line
@@ -235,7 +235,7 @@ Check HTTP Response Header Contains
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Log    Header is present
    Log    Header is present


Check Postcondition Resource Returned in Location Header Is Available
Check Postcondition Threshold Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    Log    Going to check postcondition
    GET    ${response['headers']['Location']}
    GET    ${response['headers']['Location']}
    Integer    response status    200
    Integer    response status    200
@@ -243,7 +243,18 @@ Check Postcondition Resource Returned in Location Header Is Available
    ${contentType}=    Output    response headers Content-Type
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    ${result}=    Output    response body
    Validate Json    schemas/PmJobschema.json    ${result}
    Validate Json    schemas/Threshold.schema.json    ${result}
    Log    Validated Threshold schema

Check Postcondition Pm Job 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    schemas/PmJob.schema.json    ${result}
    Log    Validated PmJobschema schema
    Log    Validated PmJobschema schema


Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
+1 −1
Original line number Original line Diff line number Diff line
@@ -15,7 +15,7 @@ POST Create new NFV-MANO Performance Monitoring Job
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   PmJob
    Check HTTP Response Body Json Schema Is   PmJob
    Check HTTP Response Header Contains    Location
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available
    Check Postcondition Pm Job Resource Returned in Location Header Is Available
    Check Postcondition PmJob Exists
    Check Postcondition PmJob Exists
    
    
GET all NFV-MANO Performance Monitoring Jobs
GET all NFV-MANO Performance Monitoring Jobs
+1 −0
Original line number Original line Diff line number Diff line
@@ -15,6 +15,7 @@ POST Create new Performance Threshold
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   Threshold
    Check HTTP Response Body Json Schema Is   Threshold
    Check HTTP Response Header Contains    Location
    Check HTTP Response Header Contains    Location
    Check Postcondition Threshold Resource Returned in Location Header Is Available
    Check Postcondition Threshold Exists
    Check Postcondition Threshold Exists


GET All Performance Thresholds
GET All Performance Thresholds
+2196 −0

File added.

Preview size limit exceeded, changes collapsed.

+2945 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading