Commit 43117b74 authored by Muhammad Hamza's avatar Muhammad Hamza
Browse files

Update robot, keyords, variable.txt Files

parent a38f6089
Loading
Loading
Loading
Loading
+16 −4
Original line number Original line Diff line number Diff line
@@ -36,8 +36,20 @@ POST Cancellation of an Ongoing Individual Coordination Action - Conflict
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails


GET Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
Request a cancellation of an ongoing coordination action without authentication
    [Documentation]    Test ID: 6.3.6.4.3
    [Documentation]    Test ID: 6.3.6.4.3
    ...    Test title: Request a cancellation of an ongoing coordination action without authentication
    ...    Test objective: The objective is to test the failure of the request for a cancellation of a coordination task when no authentication is used
    ...    Pre-conditions: none
    ...    Reference: Clause Clause 10.4.4.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Cancellation of an Ongoing Individual Coordination Action without authorization token
    Check HTTP Response Status Code Is    401

GET Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.4
    ...    Test title: GET Cancellation of an Ongoing Individual Coordination Action
    ...    Test title: GET Cancellation of an Ongoing Individual Coordination Action
    ...    Test Objective: The objective is to test that GET method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    Test Objective: The objective is to test that GET method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
@@ -49,7 +61,7 @@ GET Cancellation of an Ongoing Individual Coordination Action - Method not Imple
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PUT Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
PUT Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.4
    [Documentation]    Test ID: 6.3.6.4.5
    ...    Test title: PUT Cancellation of an Ongoing Individual Coordination Action
    ...    Test title: PUT Cancellation of an Ongoing Individual Coordination Action
    ...    Test Objective: The objective is to test that PUT method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    Test Objective: The objective is to test that PUT method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
@@ -61,7 +73,7 @@ PUT Cancellation of an Ongoing Individual Coordination Action - Method not Imple
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
PATCH Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.5
    [Documentation]    Test ID: 6.3.6.4.6
    ...    Test title: PATCH Cancellation of an Ongoing Individual Coordination Action
    ...    Test title: PATCH Cancellation of an Ongoing Individual Coordination Action
    ...    Test Objective: The objective is to test that PATCH method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    Test Objective: The objective is to test that PATCH method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
@@ -73,7 +85,7 @@ PATCH Cancellation of an Ongoing Individual Coordination Action - Method not Imp
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


DELETE Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
DELETE Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.6
    [Documentation]    Test ID: 6.3.6.4.7
    ...    Test title: DELETE Cancellation of an Ongoing Individual Coordination Action
    ...    Test title: DELETE Cancellation of an Ongoing Individual Coordination Action
    ...    Test Objective: The objective is to test that DELETE method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    Test Objective: The objective is to test that DELETE method for cancellation of an ongoing individual coordination Action is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
+7 −6
Original line number Original line Diff line number Diff line
@@ -21,8 +21,9 @@ POST Coordination of LCM Operation Occurance and API Producer has Chosen the Syn
    ...    Post-Condition: none
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
    Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Location Header Contains URI of Created Resource
    Check HTTP Response Body Json Schema Is    LcmCoord
    Check HTTP Response Body Json Schema Is    LcmCoords
    Check HTTP Response Header Contains    Location
    Check Postcondition LcmCoord Exists


POST Coordination of LCM Operation Occurance and API Producer has Chosen the Asynchronous Mode
POST Coordination of LCM Operation Occurance and API Producer has Chosen the Asynchronous Mode
    [Documentation]    Test ID: 6.3.6.2.2
    [Documentation]    Test ID: 6.3.6.2.2
@@ -35,8 +36,8 @@ POST Coordination of LCM Operation Occurance and API Producer has Chosen the Asy
    ...    Post-Condition: none
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance and API Producer has Chosen Asynchronous Mode
    Post coordination of LCM operation Occurance and API Producer has Chosen Asynchronous Mode
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check HTTP Location Header Contains URI of Resource That Will be Created
    Check HTTP Response Body Should be Empty
    Check HTTP Response Body Should be Empty
    Check HTTP Response Header Contains    Location


POST Coordination of a LCM Operation Occurance Forbidden
POST Coordination of a LCM Operation Occurance Forbidden
    [Documentation]    Test ID: 6.3.6.2.3
    [Documentation]    Test ID: 6.3.6.2.3
@@ -60,7 +61,7 @@ POST Coordination of LCM Operation Occurance Conflict
    ...    Config ID: Config_prod_VE
    ...    Config ID: Config_prod_VE
    ...    Applicability: When there are many coordination actions exist, or conflicting ones, are in progress.
    ...    Applicability: When there are many coordination actions exist, or conflicting ones, are in progress.
    ...    Post-Condition: none
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance - Conflict
    Post coordination of LCM operation Occurance - conflict
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails 
    Check HTTP Response Body Json Schema Is    ProblemDetails 


@@ -73,9 +74,9 @@ POST Coordination of LCM Operation Occurance Service Unavailable
    ...    Config ID: Config_prod_VE
    ...    Config ID: Config_prod_VE
    ...    Applicability: API producer has chosen the synchronous mode
    ...    Applicability: API producer has chosen the synchronous mode
    ...    Post-Condition: none
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
    Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode - Service Unavailable
    Check HTTP Response Status Code Is    503
    Check HTTP Response Status Code Is    503
    Check HTTP Retry-After Header Contains Delay After Which Corrdination Request Will be Repeated
    Check HTTP Response Header Contains    Retry-After
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails


GET Coordination of a LCM Operation Occurance - Method not implemented
GET Coordination of a LCM Operation Occurance - Method not implemented
+15 −3
Original line number Original line Diff line number Diff line
@@ -47,8 +47,20 @@ GET Individual LCM Operation Coordination Results - Coordination is Not Finished
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check HTTP Response Body Should be Empty
    Check HTTP Response Body Should be Empty


PUT Individual LCM Operation Coordination Results - Method not implemented
Get Individual LCM Operation Coordination Results without authentication
    [Documentation]    Test ID: 6.3.6.3.4
    [Documentation]    Test ID: 6.3.6.3.4
    ...    Test title:  Get information about a finished coordination task without authentication
    ...    Test objective: The objective is to try to read an individual coordination task without using authentication
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual LCM Operation Coordination Results - without authentication
    Check HTTP Response Status Code Is    401

PUT Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.5
    ...    Test title: PUT Individual LCM Operation Coordination Results - Method not implemented
    ...    Test title: PUT Individual LCM Operation Coordination Results - Method not implemented
    ...    Test Objective: The objective is to test that PUT method for individual LCM operation coordination results is not implemented.
    ...    Test Objective: The objective is to test that PUT method for individual LCM operation coordination results is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
@@ -60,7 +72,7 @@ PUT Individual LCM Operation Coordination Results - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Individual LCM Operation Coordination Results - Method not implemented
PATCH Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.5
    [Documentation]    Test ID: 6.3.6.3.6
    ...    Test title: PATCH Individual LCM Operation Coordination Results - Method not implemented
    ...    Test title: PATCH Individual LCM Operation Coordination Results - Method not implemented
    ...    Test Objective: The objective is to test that PATCH method for individual LCM operation coordination results is not implemented.
    ...    Test Objective: The objective is to test that PATCH method for individual LCM operation coordination results is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
@@ -72,7 +84,7 @@ PATCH Individual LCM Operation Coordination Results - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


DELETE Individual LCM Operation Coordination Results - Method not implemented
DELETE Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.6
    [Documentation]    Test ID: 6.3.6.3.7
    ...    Test title: PUT Individual LCM Operation Coordination Results - Method not implemented
    ...    Test title: PUT Individual LCM Operation Coordination Results - Method not implemented
    ...    Test Objective: The objective is to test that DELETE method for individual LCM operation coordination results is not implemented.
    ...    Test Objective: The objective is to test that DELETE method for individual LCM operation coordination results is not implemented.
    ...    pre-condition: none
    ...    pre-condition: none
+69 −34
Original line number Original line Diff line number Diff line
@@ -22,6 +22,16 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
    Log    Json Schema Validation OK


Check Postcondition LcmCoord Exists
    Log    Checking that individual lcm coordination exists
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/coordiations/${response['body']['id']}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    LcmCoord

Check HTTP Response Body Should be Empty
Check HTTP Response Body Should be Empty
    Should Be Empty    ${response['body']}
    Should Be Empty    ${response['body']}


@@ -32,19 +42,19 @@ POST Individual LCM Operation Coordination Results
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    POST    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    POST    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


GET Individual LCM Operation Coordination Results
GET Individual LCM Operation Coordination Results
    Log    Trying to perform a GET. This method should not be implemented
    Log    Requesting the retrieve of a finished coordination task 
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${Id_of_Finished_Coordination_Action}
    GET    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${Id_of_Finished_Coordination_Action}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


GET Individual LCM Operation Coordination Results of Ongoing Coordination Action
GET Individual LCM Operation Coordination Results of Ongoing Coordination Action
    Log    Trying to perform a POST. This method should not be implemented
    Log    Requesting the retrieve of an ongoing coordination task
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
@@ -52,6 +62,14 @@ GET Individual LCM Operation Coordination Results of Ongoing Coordination Action
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Global Variable    ${response}    ${outputResponse}


GET Individual LCM Operation Coordination Results - without authentication
    Log    Requesting to retrieve a finished coordination task without authentication
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    GET    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    ${outputResponse}=    Output    response
	Set Suite Variable    ${response}    ${outputResponse}

PUT Individual LCM Operation Coordination Results
PUT Individual LCM Operation Coordination Results
    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}"}  
@@ -59,7 +77,7 @@ PUT Individual LCM Operation Coordination Results
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    PUT    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    PUT    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


PATCH Individual LCM Operation Coordination Results
PATCH Individual LCM Operation Coordination Results
    Log    Trying to perform a PATCH. This method should not be implemented
    Log    Trying to perform a PATCH. This method should not be implemented
@@ -68,7 +86,7 @@ PATCH Individual LCM Operation Coordination Results
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    PATCH    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    PATCH    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


DELETE Individual LCM Operation Coordination Results
DELETE Individual LCM Operation Coordination Results
    Log    Trying to perform a DELETE. This method should not be implemented
    Log    Trying to perform a DELETE. This method should not be implemented
@@ -77,17 +95,16 @@ DELETE Individual LCM Operation Coordination Results
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    DELETE    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    DELETE    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse}



POST Cancellation of an Ongoing Individual Coordination Action
POST Cancellation of an Ongoing Individual Coordination Action
    Log    Trying to initiates the cancellation of an ongoing coordination action.
    Log    Trying to initiates the cancellation of an ongoing coordination action.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    POST    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    POST    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${Id_of_Ongoing_Coordination_Action}/cancel
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Suite Variable    ${response}    ${outputResponse}


POST Cancellation of an Ongoing Individual Coordination Action - Conflict
POST Cancellation of an Ongoing Individual Coordination Action - Conflict
    Log    Trying to initiates the cancellation of an ongoing coordination action.
    Log    Trying to initiates the cancellation of an ongoing coordination action.
@@ -96,7 +113,15 @@ POST Cancellation of an Ongoing Individual Coordination Action - Conflict
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    POST    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${Id_of_Finished_Coordination_Action}/cancel
    POST    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${Id_of_Finished_Coordination_Action}/cancel
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Suite Variable    ${response}    ${outputResponse}

POST Cancellation of an Ongoing Individual Coordination Action without authorization token
    Log    Requesting the cancellation of an ongoing coordination task without authorization
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    POST    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations/${Id_of_Ongoing_Coordination_Action}/cancel
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}


GET Cancellation of an Ongoing Individual Coordination Action
GET Cancellation of an Ongoing Individual Coordination Action
    Log    Trying to perform a GET. This method should not be implemented
    Log    Trying to perform a GET. This method should not be implemented
@@ -105,7 +130,7 @@ GET Cancellation of an Ongoing Individual Coordination Action
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    GET    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Suite Variable    ${response}    ${outputResponse}


PUT Cancellation of an Ongoing Individual Coordination Action
PUT Cancellation of an Ongoing Individual Coordination Action
    Log    Trying to perform a PUT. This method should not be implemented
    Log    Trying to perform a PUT. This method should not be implemented
@@ -114,7 +139,7 @@ PUT Cancellation of an Ongoing Individual Coordination Action
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    PUT    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    PUT    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


PATCH Cancellation of an Ongoing Individual Coordination Action
PATCH Cancellation of an Ongoing Individual Coordination Action
    Log    Trying to perform a PATCH. This method should not be implemented
    Log    Trying to perform a PATCH. This method should not be implemented
@@ -123,7 +148,7 @@ PATCH Cancellation of an Ongoing Individual Coordination Action
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    PATCH    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    PATCH    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


DELETE Cancellation of an Ongoing Individual Coordination Action
DELETE Cancellation of an Ongoing Individual Coordination Action
    Log    Trying to perform a DELETE. This method should not be implemented
    Log    Trying to perform a DELETE. This method should not be implemented
@@ -132,20 +157,17 @@ DELETE Cancellation of an Ongoing Individual Coordination Action
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    DELETE    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    DELETE    ${apiRoot}/lcmcoord/${apiMajorVersion}/coordinations/${coordinationId}/cancel
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}      
	Set Suite Variable    ${response}    ${outputResponse}      


Check HTTP Location Header Contains URI of Created Resource
Check HTTP Response Header Contains
    ${indiviCoordActionId}=    Get Value From Json    ${response['headers']}    $..Location
    [Arguments]    ${CONTENT_TYPE}
    Should Not Be Empty    ${indiviCoordActionId}
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Log    Header is present


Check HTTP Location Header Contains URI of Resource That Will be Created
Check HTTP Location Header Contains URI of Resource That Will be Created
    ${indiviCoordActionId}=    Get Value From Json    ${response['headers']}    $..Location
    ${indiviCoordActionId}=    Get Value From Json    ${response['headers']}    $..Location
    Should Not Be Empty    ${indiviCoordActionId}
    Should Not Be Empty    ${indiviCoordActionId}


Check HTTP Retry-After Header Contains Delay After Which Corrdination Request Will be Repeated
    ${delayTime}=    Get Value From Json    ${response['headers']}    $..Retry-After
    Should Not Be Empty    ${delayTime}

Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
    Pass Execution If    ${SYNCHRONOUS_MODE_SUPPORT} == 0    The API producer is in Asynchronous Mode. Skipping the test.
    Pass Execution If    ${SYNCHRONOUS_MODE_SUPPORT} == 0    The API producer is in Asynchronous Mode. Skipping the test.
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
@@ -153,10 +175,10 @@ Post coordination of LCM operation Occurance and API Producer has Chosen Synchro
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template} =    Get File    jsons/LcmCoordRequest.json
    ${template} =    Get File    jsons/LcmCoordRequest.json
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}    vnfLcmOpOccHref=${vnfLcmOpOccHref}    vnfInstanceHref=${vnfInstanceHref}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Suite Variable    ${response}    ${outputResponse}


Post coordination of LCM operation Occurance and API Producer has Chosen Asynchronous Mode
Post coordination of LCM operation Occurance and API Producer has Chosen Asynchronous Mode
    Pass Execution If    ${SYNCHRONOUS_MODE_SUPPORT} == 1    The API producer is in Synchronous Mode. Skipping the test.
    Pass Execution If    ${SYNCHRONOUS_MODE_SUPPORT} == 1    The API producer is in Synchronous Mode. Skipping the test.
@@ -168,18 +190,31 @@ Post coordination of LCM operation Occurance and API Producer has Chosen Asynchr
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Suite Variable    ${response}    ${outputResponse}


Post coordination of LCM operation Occurance - Conflict
Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode - Service Unavailable
    Pass Execution If    ${synchronous_mode} == 0    The API producer is in Asynchronous Mode. Skipping the test.
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template} =    Get File    jsons/LcmCoordRequest.json
    ${template} =    Get File    jsons/LcmCoordRequest.json
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccIdServiceUnavailable}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}    vnfLcmOpOccHref=${vnfLcmOpOccHrefServiceUnavailable}    vnfInstanceHref=${vnfInstanceHref}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Suite Variable    ${response}    ${outputResponse}

Post coordination of LCM operation Occurance - conflict
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    Log    Requesting a new coordination task for an LCM Operation occurrence not in PROCESSING state
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template} =    Get File    jsons/LcmCoordRequest.json
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccIdNotProcessing}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}    vnfLcmOpOccHref=${vnfLcmOpOccHrefNotProcessing}    vnfInstanceHref=${vnfInstanceHref}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    ${outputResponse}=    Output    response
	Set Suite Variable    ${response}    ${outputResponse}


Post coordination of LCM operation Occurance is Forbidden
Post coordination of LCM operation Occurance is Forbidden
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    Log    Create coordination action by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
@@ -191,7 +226,7 @@ Post coordination of LCM operation Occurance is Forbidden
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}
    ${body}=    Format String    ${template}    vnfInstanceId=${vnfInstanceId}    vnfLcmOpOccId=${vnfLcmOpOccId}    lcmOperationType=${lcmOperationType}    coordinationActionName=${coordinationActionName}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations    ${body}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


GET coordination of LCM operation Occurance	
GET coordination of LCM operation Occurance	
    Log    Trying to perform a GET. This method should not be implemented
    Log    Trying to perform a GET. This method should not be implemented
@@ -200,7 +235,7 @@ GET coordination of LCM operation Occurance
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


PUT coordination of LCM operation Occurance	
PUT coordination of LCM operation Occurance	
    Log    Trying to perform a PUT. This method should not be implemented
    Log    Trying to perform a PUT. This method should not be implemented
@@ -209,7 +244,7 @@ PUT coordination of LCM operation Occurance
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    PUT    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    PUT    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


PATCH coordination of LCM operation Occurance	
PATCH coordination of LCM operation Occurance	
    Log    Trying to perform a PATCH. This method should not be implemented
    Log    Trying to perform a PATCH. This method should not be implemented
@@ -218,7 +253,7 @@ PATCH coordination of LCM operation Occurance
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    PATCH    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    PATCH    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


DELETE coordination of LCM operation Occurance	
DELETE coordination of LCM operation Occurance	
    Log    Trying to perform a DELETE. This method should not be implemented
    Log    Trying to perform a DELETE. This method should not be implemented
@@ -227,7 +262,7 @@ DELETE coordination of LCM operation Occurance
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    DELETE    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    DELETE    ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 
	Set Suite Variable    ${response}    ${outputResponse} 


POST API Version
POST API Version
    Set Headers    {"Accept":"${ACCEPT}"} 
    Set Headers    {"Accept":"${ACCEPT}"} 
+24 −18

File changed.

Preview size limit exceeded, changes collapsed.

Loading