Commit f49b9e91 authored by Elian Kraja's avatar Elian Kraja
Browse files

NSDDescriptors

parent 7ba2403b
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -19,11 +19,11 @@ GET Single Network Service Descriptor
    ${contentType}=    Output    response headers Content-Type
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    Should Contain    ${contentType}    application/json
    Log  Validation of Content-Type : OK
    Log  Validation of Content-Type : OK
#    Log    Trying to validate response
    Log    Trying to validate response
#    ${result}=    Output    response body
    ${result}=    Output    response body
#    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
#    Validate Json    NsdInfo.schema.json    ${json}
    Validate Json    NsdInfo.schema.json    ${json}
#    Log    Validation OK
    Log    Validation OK




GET Single Network Service Descriptor (Negative: Not found)
GET Single Network Service Descriptor (Negative: Not found)
@@ -51,10 +51,10 @@ PATCH Single Network Service Descriptor - (Disabling a nsdInfo)
    PATCH    ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoId}    ${body}
    PATCH    ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoId}    ${body}
    Integer    response status    200
    Integer    response status    200
    Log    Received 200 OK as expected
    Log    Received 200 OK as expected
#    ${result}=    Output    response body
    ${result}=    Output    response body
#    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
#    Validate Json    NsdInfoModification.schema.json    ${json}
    Validate Json    NsdInfoModification.schema.json    ${json}
#    Log    Validation of NsdInfoModifications OK
    Log    Validation of NsdInfoModifications OK


PATCH Single Network Service Descriptor - (Enabling an previously disabled nsdInfo)
PATCH Single Network Service Descriptor - (Enabling an previously disabled nsdInfo)
    Log    Trying to perform a PATCH. As prerequisite the nsdInfo shall be in disabled operational state
    Log    Trying to perform a PATCH. As prerequisite the nsdInfo shall be in disabled operational state
+14 −14
Original line number Original line Diff line number Diff line
@@ -19,11 +19,11 @@ GET all Network Service Descriptors
    ${contentType}=    Output    response headers Content-Type
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    Should Contain    ${contentType}    application/json
    Log  Validation of Content-Type : OK
    Log  Validation of Content-Type : OK
#    Log    Trying to validate response
    Log    Trying to validate response
#    ${result}=    Output    response body
    ${result}=    Output    response body
#    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
#    Validate Json    NsdInfos.schema.json    ${json}
    Validate Json    NsdInfos.schema.json    ${json}
#    Log    Validation OK
    Log    Validation OK


GET all Network Service Descriptors - Filter
GET all Network Service Descriptors - Filter
    [Documentation]   The GET method queries information about multiple NS descriptor resources.
    [Documentation]   The GET method queries information about multiple NS descriptor resources.
@@ -36,11 +36,11 @@ GET all Network Service Descriptors - Filter
    Integer    response status    200
    Integer    response status    200
    ${contentType}=    Output    response headers Content-Type
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    Should Contain    ${contentType}    application/json
#    Log    Trying to validate response
    Log    Trying to validate response
#    ${result}=    Output    response body
    ${result}=    Output    response body
#    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
#    Validate Json    NsdInfos.schema.json    ${json}
    Validate Json    NsdInfos.schema.json    ${json}
#    Log    Validation OK
    Log    Validation OK


GET all Network Service Descriptors - Negative (wronge filter name)
GET all Network Service Descriptors - Negative (wronge filter name)
    Log    The GET method queries multiple NS descriptors using Attribute-based filtering parameters. Negative case, with erroneous attribute name
    Log    The GET method queries multiple NS descriptors using Attribute-based filtering parameters. Negative case, with erroneous attribute name
@@ -116,10 +116,10 @@ POST a new Network Service Descriptors
    ${headers}=    Output    response headers
    ${headers}=    Output    response headers
    Should Contain    ${headers}    Location
    Should Contain    ${headers}    Location
    Log    Response has header Location
    Log    Response has header Location
#    ${result}=    Output    response body
    ${result}=    Output    response body
#    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
#    Validate Json    NsdInfo.schema.json    ${json}
    Validate Json    NsdInfo.schema.json    ${json}
#    Log    Validation of NsdInfo OK
    Log    Validation of NsdInfo OK


PUT all Network Service Descriptors (Method not implemented)
PUT all Network Service Descriptors (Method not implemented)
    Log    Trying to perform a PUT. This method should not be implemented
    Log    Trying to perform a PUT. This method should not be implemented