Commit e5492487 authored by Muhammad Hamza's avatar Muhammad Hamza
Browse files

Add New API VNFLCM Coordination

parent d1151367
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -182,6 +182,7 @@ Create new VNF indicator Subscription - NO-DUPLICATION
    Check Operation Occurrence Id
 
*** Keywords *** 

Get VNF Indicators Subscriptions
    Log    Trying to get the list of subscriptions
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
+132 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource    VNFLCMCoordinationKeywords.robot 
Library    String
Library    REST    ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT}    ssl_verify=false
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    OperatingSystem
Library    DependencyLibrary

*** Test Cases ***
POST API Version - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.1
    ...    Test title: POST API version - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none    
    POST API Version
	Check HTTP Response Status Code Is    405
    
GET API Version
    [Documentation]    Test ID: 6.3.6.1.2
    ...    Test title: GET API Version
    ...    Test objective: The objective is to test that GET method successfully return ApiVersionInformation
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    GET API Version
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    ApiVersionInformation

PUT API Version - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.3
    ...    Test title: PUT API Version - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    PUT API Version
	Check HTTP Response Status Code Is    405

PATCH API Version - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.4
    ...    Test title: PATCH API Version - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    PATCH API Version
	Check HTTP Response Status Code Is    405
    
DELETE API Version - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.5
    ...    Test title: DELETE API Version - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    DELETE API Version
	Check HTTP Response Status Code Is    405
	
POST API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.6
    ...    Test title: POST API version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none    
    POST API Version
	Check HTTP Response Status Code Is    405
    
GET API Version with apiMajorVerion
    [Documentation]    Test ID: 6.3.6.1.7
    ...    Test title: GET API Version with apiMajorVerion
    ...    Test objective: The objective is to test that GET method successfully return ApiVersionInformation
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    GET API Version
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    ApiVersionInformation

PUT API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.8
    ...    Test title: PUT API Version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    PUT API Version
	Check HTTP Response Status Code Is    405

PATCH API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.9
    ...    Test title: PATCH API Version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    PATCH API Version
	Check HTTP Response Status Code Is    405
    
DELETE API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 6.3.6.1.10
    ...    Test title: DELETE API Version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none 
    DELETE API Version
	Check HTTP Response Status Code Is    405
 No newline at end of file
+85 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt
Resource    VNFLCMCoordinationKeywords.robot  
Library    String
Library    REST    ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT}    ssl_verify=false
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    OperatingSystem
Library    DependencyLibrary

*** Test Cases ***

POST Cancellation of an Ongoing Individual Coordination Action
    [Documentation]    Test ID: 6.3.6.4.1
    ...    Test title: POST Cancellation of an Ongoing Individual Coordination Action
    ...    Test Objective: The objective is to test that POST request for cancellation of an ongoing individual coordination Action has accepted for processing.
    ...    pre-condition: The status of the related LCM operation occurance is "PROCESSING"
    ...    Reference: Clause 10.4.4.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: When there is an Ongoing individual LCM operation coordination action.
    ...    Post-Condition: none
    POST Cancellation of an Ongoing Individual Coordination Action
    Check HTTP Response Status Code Is    202
    Check HTTP Response Body Should be Empty

POST Cancellation of an Ongoing Individual Coordination Action - Conflict
    [Documentation]    Test ID: 6.3.6.4.2
    ...    Test title: POST Cancellation of an Ongoing Individual Coordination Action - Conflict
    ...    Test Objective: The objective is to test that POST request for cancellation of an ongoing individual coordination Action is not successfull due to a conflict with the state of the "Individual coordination action" resource. 
    ...    pre-condition: none
    ...    Reference: Clause 10.4.4.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: Processing of Individual Coordination Action has 'Finished'.
    ...    Post-Condition: none
    POST Cancellation of an Ongoing Individual Coordination Action not Applicable
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails

GET Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.3
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: ongoing individual coordination
    ...    Post-Condition: none
    GET Cancellation of an Ongoing Individual Coordination Action
    Check HTTP Response Status Code Is    405

PUT Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.4
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.4.3.3 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    PUT Cancellation of an Ongoing Individual Coordination Action
    Check HTTP Response Status Code Is    405

PATCH Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.5
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.4.3.4 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    PATCH Cancellation of an Ongoing Individual Coordination Action
    Check HTTP Response Status Code Is    405

DELETE Cancellation of an Ongoing Individual Coordination Action - Method not Implemented
    [Documentation]    Test ID: 6.3.6.4.6
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.4.3.5 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    DELETE Cancellation of an Ongoing Individual Coordination Action
    Check HTTP Response Status Code Is    405
 No newline at end of file
+127 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource    VNFLCMCoordinationKeywords.robot 
Library    String
Library    REST    ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT}    ssl_verify=false
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    OperatingSystem
Library    DependencyLibrary

*** Test Cases ***

POST Coordination of LCM Operation Occurance and API Producer has Chosen the Synchronous Mode
    [Documentation]    Test ID: 6.3.6.2.1
    ...    Test title: Post Coordination of an LCM operation occurrence
    ...    Test Objective: The objective is to test the creation of new Individual Coordination Action, and perform a JSON schema validation of the returned LCM coordination data structure.
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: API producer has chosen the synchronous mode   
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
    Check HTTP Response Status Code Is    201
    Check HTTP Location Header Contains URI of Created Resource
    Check HTTP Response Body Json Schema Is    LcmCoords

POST Coordination of LCM Operation Occurance and API Producer has Chosen the Asynchronous Mode
    [Documentation]    Test ID: 6.3.6.2.2
    ...    Test title: Post Coordination of an LCM operation occurrence
    ...    Test Objective: The objective is to test that the coordination of a LCM operation occurance request has been accepted for processing, and perform a JSON schema validation of the returned LCM coordination data structure.
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: API producer has chosen the asynchronous mode   
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance and API Producer has Chosen Asynchronous Mode
    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

POST Coordination of a LCM Operation Occurance Forbidden
    [Documentation]    Test ID: 6.3.6.2.3
    ...    Test title: Post Coordination of an LCM operation occurrence Forbidden
    ...    Test Objective: The objective is to verify that the coordination of LCM operation occurance has been rejected.
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance is Forbidden
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails 

POST Coordination of LCM Operation Occurance Conflict
    [Documentation]    Test ID: 6.3.6.2.4
    ...    Test title: Post Coordination of an LCM operation occurrence Conflict
    ...    Test Objective: The objective is to verify that no coordination actions can be executed currently, due to a conflict with the state of the "Coordinations" resource.
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: When there are many coordination actions exist, or conflicting ones, are in progress.
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails 

POST Coordination of LCM Operation Occurance Service Unavailable 
    [Documentation]    Test ID: 6.3.6.2.5
    ...    Test title: Post Coordination of an LCM operation occurrence Service Unavailable 
    ...    Test Objective: The objective is to verify that requested coordination operation cannot be executed currently. 
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: API producer has chosen the synchronous mode
    ...    Post-Condition: none
    Post coordination of LCM operation Occurance and API Producer has Chosen Synchronous Mode
    Check HTTP Response Status Code Is    503
    Check HTTP Retry-After Header Contains Delay After Which Corrdination Request Will be Repeated
    Check HTTP Response Body Json Schema Is    ProblemDetails

GET Coordination of a LCM Operation Occurance - Method not implemented
    [Documentation]    Test ID: 6.3.6.2.6
    ...    Test title: GET Coordination of a LCM Operation Occurance - Method not implemented
    ...    Test Objective: The objective is to test that GET method for Resource Coordinations is not implemented.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    GET coordination of LCM operation Occurance
    Check HTTP Response Status Code Is    405

PUT Coordination of a LCM Operation Occurance - Method not implemented
    [Documentation]    Test ID: 6.3.6.2.7
    ...    Test title: PUT Coordination of a LCM Operation Occurance - Method not implemented
    ...    Test Objective: The objective is to test that PUT method for Resource Coordinations is not implemented.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    PUT coordination of LCM operation Occurance
    Check HTTP Response Status Code Is    405

PACTH Coordination of a LCM Operation Occurance - Method not implemented
    [Documentation]    Test ID: 6.3.6.2.8
    ...    Test title: PATCH Coordination of a LCM Operation Occurance - Method not implemented
    ...    Test Objective: The objective is to test that PATCH method for Resource Coordinations is not implemented.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    PATCH coordination of LCM operation Occurance
    Check HTTP Response Status Code Is    405

DELETE Coordination of a LCM Operation Occurance - Method not implemented
    [Documentation]    Test ID: 6.3.6.2.9
    ...    Test title: DELETE Coordination of a LCM Operation Occurance - Method not implemented
    ...    Test Objective: The objective is to test that DELETE method for Resource Coordinations is not implemented.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    DELETE coordination of LCM operation Occurance
    Check HTTP Response Status Code Is    405
 No newline at end of file
+84 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource    VNFLCMCoordinationKeywords.robot 
Library    String
Library    REST    ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT}    ssl_verify=false
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    OperatingSystem
Library    DependencyLibrary

*** Test Cases ***
POST Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.1
    ...    Test title: POST Individual LCM Operation Coordination Results - Method not implemented
    ...    Test Objective: The objective is to test that POST method for individual LCM operation coordination results is not implemented.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.3.3.1 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    POST Individual LCM Operation Coordination Results
    Check HTTP Response Status Code Is    405

GET Individual LCM Operation Coordination Results - Coordination is Finished
    [Documentation]    Test ID: 6.3.6.3.2
    ...    Test title: GET Individual LCM Operation Coordination Results
    ...    Test Objective: The objective is to test that coordination is finished and GET method reads individual LCM operation coordination results successfully, and perform a JSON schema validation of the returned LCM coordination data structure.
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: When the Individual LCM Operation Coordination is finished
    ...    Post-Condition: none
    GET Individual LCM Operation Coordination Results
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    LcmCoord

GET Individual LCM Operation Coordination Results - Coordination is Not Finished Yet
    [Documentation]    Test ID: 6.3.6.3.3
    ...    Test title: GET Individual LCM Operation Coordination Results
    ...    Test Objective: The objective is to test that GET method checks that whether Individual LCM Operation Coordination is still ongoing or in the process of being cancelled.
    ...    pre-condition: LCM operation occurrence resource is in Processing state
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: When the Individual LCM Operation Coordination is still ongoing or in the process of being cancelled.
    ...    Post-Condition: none
    GET Individual LCM Operation Coordination Results of Ongoing Coordination Action
    Check HTTP Response Status Code Is    202
    Check HTTP Response Body Should be Empty

PUT Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.4
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    PUT Individual LCM Operation Coordination Results
    Check HTTP Response Status Code Is    405

PATCH Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.5
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    PATCH Individual LCM Operation Coordination Results
    Check HTTP Response Status Code Is    405

DELETE Individual LCM Operation Coordination Results - Method not implemented
    [Documentation]    Test ID: 6.3.6.3.6
    ...    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.
    ...    pre-condition: none
    ...    Reference: Clause 10.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v3.5.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none  
    ...    Post-Condition: none
    DELETE Individual LCM Operation Coordination Results
    Check HTTP Response Status Code Is    405
 No newline at end of file
Loading