Commit 4cbca6b1 authored by AHMADABB's avatar AHMADABB
Browse files

Advancement in SOL005 test for NS LCM

parent 77e40353
Loading
Loading
Loading
Loading
+46 −0
Original line number Original line Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
Post Cancel operation task
    Depends on test    Check resource FAILED_TEMP
	Do POST Cancel operation task
	Check HTTP Response Status Code Is    202
	
Post Cancel operation task Not Found
    [Setup]    Check Cancel not supported
	Do POST Cancel operation task
	Check HTTP Response Status Code Is    404
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
		
Post Cancel operation task Conflict
    Depends on test failure      Check resource FAILED_TEMP
	Do POST Cancel operation task
	Check HTTP Response Status Code Is    409
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
	
PUT Cancel operation task - Method not implemented
    Do PUT Cancel operation task
    Check HTTP Response Status Code Is    405

PATCH Cancel operation task - Method not implemented
    Do PATCH Cancel operation task
    Check HTTP Response Status Code Is    405

DELETE Cancel operation task - Method not implemented
    Do DELETE Cancel operation task
    Check HTTP Response Status Code Is    405
    
GET Cancel operation task - Method not implemented 
	Do GET Cancel operation task
	Check HTTP Response Status Code Is    405




	
 No newline at end of file
+44 −0
Original line number Original line Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
Post Continue operation task
    Depends on test    Check resource FAILED_TEMP
	Do POST Continue operation task
	Check HTTP Response Status Code Is    202
	
Post Continue operation task Not Found
    [Setup]    Check Continue not supported
	Do POST Continue operation task
	Check HTTP Response Status Code Is    404
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
		
Post Continue operation task Conflict
    Depends on test failure  Check resource FAILED_TEMP
	Do POST Continue operation task
	Check HTTP Response Status Code Is    409
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
	
PUT Continue operation task - Method not implemented
    Do PUT Continue operation task
    Check HTTP Response Status Code Is    405

PATCH Continue operation task - Method not implemented
    Do PATCH Continue operation task
    Check HTTP Response Status Code Is    405

DELETE Continue operation task - Method not implemented
    Do DELETE Continue operation task
    Check HTTP Response Status Code Is    405
    
GET Continue operation task - Method not implemented 
	Do GET Continue operation task
	Check HTTP Response Status Code Is    405


	
 No newline at end of file
+45 −0
Original line number Original line Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
Post Fail operation task
    Depends on test    Check resource FAILED_TEMP
	Do POST Fail operation task
	Check HTTP Response Status Code Is    202
	
Post Fail operation task Not Found
    [Setup]    Check Fail not supported
	Do POST Fail operation task
	Check HTTP Response Status Code Is    404
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
		
Post Fail operation task Conflict
    Depends on test failure      Check resource FAILED_TEMP
	Do POST Fail operation task
	Check HTTP Response Status Code Is    409
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
	
PUT Fail operation task - Method not implemented
    Do PUT Fail operation task
    Check HTTP Response Status Code Is    405

PATCH Fail operation task - Method not implemented
    Do PATCH Fail operation task
    Check HTTP Response Status Code Is    405

DELETE Fail operation task - Method not implemented
    Do DELETE Fail operation task
    Check HTTP Response Status Code Is    405
    
GET Fail operation task - Method not implemented 
	Do GET Fail operation task
	Check HTTP Response Status Code Is    405



	
 No newline at end of file
+33 −0
Original line number Original line Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
Post Individual NS LCM occurences - Method not implemented
	Do POST Individual NS LCM OP Occurence
	Check HTTP Response Status Code Is    405

PUT stauts information about Individual NS LCM OP OCC - Method not implemented
    Do PUT Individual NS LCM OP Occurence
    Check HTTP Response Status Code Is    405

PATCH stauts information about Individual NS LCM OP OCC - Method not implemented
    Do PATCH Individual NS LCM OP Occurence
    Check HTTP Response Status Code Is    405

DELETE stauts information about Individual NS LCM OP OCC - Method not implemented
    Do DELETE Individual NS LCM OP Occurence
    Check HTTP Response Status Code Is    405
    
Get stauts information about Individual NS LCM OP OCC   
	Do GET Individual NS LCN OP Occurence
	Check HTTP Response Status Code Is    200
	Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
	Check HTTP Response Body Json Schema Is    NsLcmOpOcc.schema.json


	
 No newline at end of file
+0 −2
Original line number Original line Diff line number Diff line
@@ -23,7 +23,6 @@ DELETE stauts information about multiple NS LCM OP OCC - Method not implemented
    Do DELETE NS LCM OP Occurences
    Do DELETE NS LCM OP Occurences
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
    
Get stauts information about multiple NS LCM OP OCC   
Get stauts information about multiple NS LCM OP OCC   
	Do GET NS LCN OP Occurences
	Do GET NS LCN OP Occurences
	Check HTTP Response Status Code Is    200
	Check HTTP Response Status Code Is    200
@@ -35,7 +34,6 @@ Get stauts information about multiple NS LCM OP OCC Bad Request Invalid attribut
	Check HTTP Response Status Code Is    400
	Check HTTP Response Status Code Is    400
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
	Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json



Get stauts information about multiple NS LCM OP OCC Bad Request Invalid attribute selector
Get stauts information about multiple NS LCM OP OCC Bad Request Invalid attribute selector
	Do GET NS LCN OP Occurences Invalid attribute selector
	Do GET NS LCN OP Occurences Invalid attribute selector
	Check HTTP Response Status Code Is    400
	Check HTTP Response Status Code Is    400
Loading