Commit 7ba2403b authored by Elian Kraja's avatar Elian Kraja
Browse files

Bug fix on schemas and typos

parent 4f93bbcd
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -11,7 +11,7 @@ Library DependencyLibrary
${Etag}=    an etag
${Etag}=    an etag
${Etag_modified}=    a modified etag
${Etag_modified}=    a modified etag


*** Test cases ***
*** Test Cases ***
POST Configuration - Method not implemented
POST Configuration - Method not implemented
    log    Trying to perform a POST. This method should not be implemented
    log    Trying to perform a POST. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -66,7 +66,7 @@ PATCH Config - Precondition failed
    [Documentation]    Precondition Failed
    [Documentation]    Precondition Failed
    ...    Precondition Failed A precondition given in an HTTP request header is not fulfilled. 
    ...    Precondition Failed A precondition given in an HTTP request header is not fulfilled. 
    ...    Typically, this is due to an ETag mismatch, indicating that the resource was modified by another entity. 
    ...    Typically, this is due to an ETag mismatch, indicating that the resource was modified by another entity. 
    ...    The response body should contain a ProblemDetails structure, in which the detail attribute should convey more information about the error.
    ...    The response body should contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
    Depends On Test    PATCH Alarm    # If the previous test scceeded, it means that Etag has been modified
    Depends On Test    PATCH Alarm    # If the previous test scceeded, it means that Etag has been modified
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Accept":"${ACCEPT}"} 
+3 −3
Original line number Original line Diff line number Diff line
@@ -7,7 +7,7 @@ Library JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Library    OperatingSystem
Library    OperatingSystem


*** Test cases ***
*** Test Cases ***
POST Alarms - Method not implemented
POST Alarms - 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
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -28,7 +28,7 @@ Get information about multiple alarms
    Should Contain    ${contentType}    ${CONTENT_TYPE}
    Should Contain    ${contentType}    ${CONTENT_TYPE}
    ${result}=    Output    response body
    ${result}=    Output    response body
    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
    Validate Json    alarm.schema.json    ${json}
    Validate Json    alarms.schema.json    ${json}
    Log    Validation OK
    Log    Validation OK


Get information about multiple alarms with filters 
Get information about multiple alarms with filters 
@@ -43,7 +43,7 @@ Get information about multiple alarms with filters
    Should Contain    ${contentType}    ${CONTENT_TYPE}
    Should Contain    ${contentType}    ${CONTENT_TYPE}
    ${result}=    Output    response body
    ${result}=    Output    response body
    ${json}=    evaluate    json.loads('''${result}''')    json
    ${json}=    evaluate    json.loads('''${result}''')    json
    Validate Json    alarm.schema.json    ${json}
    Validate Json    alarms.schema.json    ${json}
    Log    Validation OK
    Log    Validation OK


Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters
Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters
+2 −2
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
Resource    environment/variables.txt 
Resource    environment/variables.txt 
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} 
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} 
...        spec=SOL002-VNFFaultManagement-API.yaml
...        spec=SOL002-VNFFaultManagement-API.yaml
Suite setup    Check resource existance
Suite Setup    Check resource existance


*** Test Cases ***
*** Test Cases ***
Escalate the perceived severity 
Escalate the perceived severity 
+4 −4
Original line number Original line Diff line number Diff line
@@ -12,7 +12,7 @@ Library DependencyLibrary
${Etag}=    an etag
${Etag}=    an etag
${Etag_modified}=    a modified etag
${Etag_modified}=    a modified etag


*** Test cases ***
*** Test Cases ***
POST Alarm - Method not implemented
POST Alarm - Method not implemented
    log    Trying to perform a POST. This method should not be implemented
    log    Trying to perform a POST. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -66,9 +66,9 @@ PATCH Alarm


PATCH Alarm - Conflict
PATCH Alarm - Conflict
    [Documentation]    Conflict
    [Documentation]    Conflict
    ...    The operation cannot be executed currently, due to a conflict with the state of the Individual alarm resource. 
    ...    The operation cannot be executed currently, due to a conflict with the state of the �Individual alarm� resource. 
    ...    Typically, this is due to the fact that the alarm is already in the state that is requested to be set (such as trying to acknowledge an already-acknowledged alarm). 
    ...    Typically, this is due to the fact that the alarm is already in the state that is requested to be set (such as trying to acknowledge an already-acknowledged alarm). 
    ...    The response body shall contain a ProblemDetails structure, in which the detail attribute should convey more information about the error.
    ...    The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
    Depends On Test    PATCH Alarm    # If the previous test scceeded, it means that the alarm is in ackownledged state
    Depends On Test    PATCH Alarm    # If the previous test scceeded, it means that the alarm is in ackownledged state
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Accept":"${ACCEPT}"} 
@@ -87,7 +87,7 @@ PATCH Alarm - Precondition failed
    [Documentation]    Precondition Failed
    [Documentation]    Precondition Failed
    ...    A precondition given in an HTTP request header is not fulfilled. Typically, this is due to an ETag mismatch, 
    ...    A precondition given in an HTTP request header is not fulfilled. Typically, this is due to an ETag mismatch, 
    ...    indicating that the resource was modified by another entity. The response body should contain a ProblemDetails structure, 
    ...    indicating that the resource was modified by another entity. The response body should contain a ProblemDetails structure, 
    ...    in which the detail attribute should convey more information about the error.
    ...    in which the �detail� attribute should convey more information about the error.
    Depends On Test    PATCH Alarm    # If the previous test scceeded, it means that Etag has been modified
    Depends On Test    PATCH Alarm    # If the previous test scceeded, it means that Etag has been modified
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Accept":"${ACCEPT}"} 
Loading