Commit 274d8316 authored by Najam UI Hassan's avatar Najam UI Hassan Committed by Giacomo Bernini
Browse files

fixed issues

parent c4acca6e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ Library OperatingSystem
POST Alarms - Method not implemented
     [Documentation]    Test ID: 8.3.3.1.1
    ...    Test title: POST Alarms - Method not implemented 
    ...    Test objective: The objective is to test that Post method is not allowed to create Fault management alarms on NFV-MANO
    ...    Test objective: The objective is to test that Post method is not allowed to create fault management alarms on NFV-MANO
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.3.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -63,7 +63,7 @@ Get information about multiple alarms Bad Request Invalid attribute-based filter
Get information about multiple alarms as a Paged Response
    [Documentation]    Test ID: 8.3.3.1.5
    ...    Test title: Get information about multiple alarms as a Paged Response
    ...    Test objective: The objective is to retrieve information about the alarm list as a Paged Response
    ...    Test objective: The objective is to retrieve information about the alarm list as a Paged Response.
    ...    Pre-conditions: none
    ...    Reference: Clause 7.5.3.3.2 - ETSI GS NFV-SOL 009 [5] v3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -89,7 +89,7 @@ Get information about multiple alarms - Bad Request Response too Big
PUT Alarms - Method not implemented
    [Documentation]    Test ID: 8.3.3.1.7
    ...    Test title: PUT Alarms - Method not implemented 
    ...    Test objective: The objective is to test that PUT method is not allowed to for Fault management alarms on NFV-MANO
    ...    Test objective: The objective is to test that PUT method is not allowed to modify fault management alarms on NFV-MANO.
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.3.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -101,7 +101,7 @@ PUT Alarms - Method not implemented
PATCH Alarms - Method not implemented
     [Documentation]    Test ID: 8.3.3.1.8
    ...    Test title: PATCH Alarms - Method not implemented 
    ...    Test objective: The objective is to test that PATCH method is not allowed to for Fault management alarms on NFV-MANO 
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify fault management alarms on NFV-MANO.
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.3.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -113,7 +113,7 @@ PATCH Alarms - Method not implemented
DELETE Alarms - Method not implemented
     [Documentation]    Test ID: 8.3.3.1.9
    ...    Test title: POST Alarms - Method not implemented 
    ...    Test objective: The objective is to test that DELETE method is not allowed for Fault management alarms on NFV-MANO
    ...    Test objective: The objective is to test that DELETE method is not allowed for fault management alarms on NFV-MANO
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.3.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
+15 −7
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ Check HTTP Response Status Code Is
    Log    Status code validated
    
GET Fault Management Alarms
    Log    Query NFVO The GET method queries information about multiple alarms.
    Log    Query NFV-MANO The GET method queries information about multiple alarms.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Log    Execute Query
@@ -43,7 +43,7 @@ Check HTTP Response Body Json Schema Is
    Log    Json Schema Validation OK
    
GET Fault Management Alarms With Filters
	Log    Query NFVO The GET method queries information about multiple alarms with filters.
	Log    Query NFV-MANO The GET method queries information about multiple alarms with filters.
	Set Headers  {"Accept":"${ACCEPT}"}  
	Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
	Log    Execute Query
@@ -52,7 +52,7 @@ GET Fault Management Alarms With Filters
	Set Global Variable    @{response}    ${outputResponse}
	
GET Fault Management Alarms With Invalid Filters
	Log    Query NFVO The GET method queries information about multiple alarms with filters.
	Log    Query NFV-MANO The GET method queries information about multiple alarms with filters.
	Set Headers  {"Accept":"${ACCEPT}"}  
	Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
	Log    Execute Query
@@ -103,7 +103,7 @@ Send POST request for fault management Individual Alarm
    Set Global Variable    @{response}    ${outputResponse}
    
GET Fault Management Individual Alarm
    Log    Query VNF The GET method queries information about an alarm.
    Log    Query NFV-MANO The GET method queries information about an alarm.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -122,7 +122,7 @@ PUT Fault Management Individual Alarm
    ${outputResponse}=    Output    response
    Set Global Variable    @{response}    ${outputResponse}
    
Check Postcondition fault management individual alarm Exists
Check Postcondition fault management individual alarm exists
    Log    Checking that individual alarm exists
    GET Fault Management Individual Alarm
    Check HTTP Response Status Code Is    200
@@ -139,7 +139,7 @@ PATCH Fault Management Individual Alarm
    Set Global Variable    @{response}    ${outputResponse}
    
PATCH Fault Management Individual Alarm - precondition failed
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    log    Trying to perform a PATCH. This method fail to modifies an individual alarm resource
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"} 
    Set Headers    {"If-Match": "${original_etag[0]}"}
@@ -150,7 +150,7 @@ PATCH Fault Management Individual Alarm - precondition failed
    Set Global Variable    @{response}    ${outputResponse}
   
PATCH Fault Management Individual Alarm Conflict
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    log    Trying to perform a PATCH. This method fail to modifies an individual alarm resource
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"} 
    Set Headers    {"If-Match": "${Etag}"} 
@@ -182,6 +182,14 @@ Check Operation Occurrence Id
    ${opOccId}=    Get Value From Json    ${response['headers']}    $..Location
    Should Not Be Empty    ${opOccId}
    
Check PostCondition Subscription is created
    log    Trying to get information about an individual subscription
    Set Headers    {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"} 
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${response['body']['id']}
    ${outputResponse}=    Output    response
    Set Global Variable    @{response}    ${outputResponse} 
    
POST Subscription Duplication permitted
    Log    Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
    Pass Execution If    ${NFVMANO_DUPLICATION}  == 0    NVFO is not permitting duplication. Skipping the test
+10 −12
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ Library DependencyLibrary
POST Alarm - Method not implemented
     [Documentation]    Test ID: 8.3.3.2.1
    ...    Test title: POST Alarm - Method not implemented
    ...    Test objective: The objective is to test that Post method is not allowed to create Fault management individual alarm on NFV-MANO 
    ...    Test objective: The objective is to test that Post method is not allowed to create fault management individual alarm on NFV-MANO 
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.4.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -38,7 +38,7 @@ Get information about an fault management individual alarm
PUT Alarm - Method not implemented
    [Documentation]    Test ID: 8.3.3.2.3
    ...    Test title: PUT Alarm - Method not implemented
    ...    Test objective: he objective is to test that PUT method is not allowed to for Fault management individual alarm on NFV-MANO 
    ...    Test objective: he objective is to test that PUT method is not allowed to for fault management individual alarm on NFV-MANO 
    ...    Pre-conditions: The related alarm exists
    ...    Reference: clause 7.5.4.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -55,8 +55,7 @@ PATCH Fault Management Individual Alarm
    ...    Reference: clause 7.5.4.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Check Postcondition fault management individual alarm Exists
    ...    Post-Conditions: Alarm is modified.
    PATCH Fault Management Individual Alarm
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is  AlarmModification
@@ -69,11 +68,11 @@ Modify an individual alarm resource - Precondition failed
    ...    Reference: clause 7.5.4.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Check Postcondition fault management individual alarm Exists  
    ...    Post-Conditions: Alarm is not modified.
    PATCH Fault Management Individual Alarm - precondition failed
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is  ProblemDetails
    Check Postcondition fault management individual alarm exists  

Modify an individual alarm resource - Conflict
    [Documentation]    Test ID: 8.3.3.2.6
@@ -83,22 +82,21 @@ Modify an individual alarm resource - Conflict
    ...    Reference: clause 7.5.4.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Depends On Test    PATCH Fault Management Individual Alarm
    Check Postcondition fault management individual alarm Exists
    ...    Post-Conditions: Alarm is not modified.
    PATCH Fault Management Individual Alarm Conflict
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is     ProblemDetails
    Check Postcondition fault management individual alarm exists

DELETE Alarm - Method not implemented
     [Documentation]    Test ID: 8.3.3.2.7
    ...    Test title: DELETE Alarm - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not allowed to for Fault management individual alarm on NFV-MANO
    ...    Pre-conditions: nona
    ...    Test objective: The objective is to test that DELETE method is not allowed to delete fault management individual alarm on NFV-MANO.
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.4.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions:  The individual alarm still exists 
    DELETE Fault Management Individual Alarm
    Check HTTP Response Status Code Is    405
    Check Postcondition fault management individual alarm Exists
 No newline at end of file
    Check Postcondition fault management individual alarm exists
 No newline at end of file
+4 −4
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT}
Post Individual Subscription - Method not implemented
    [Documentation]    Test ID: 8.3.3.4.1
    ...    Test title: Post Individual Subscription - Method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed for Fault management subscription on NFV-MANO  
    ...    Test objective: The objective is to test that POST method is not allowed for fault management subscription on NFV-MANO  
    ...    Pre-conditions: none
    ...    Reference: clause 7.5.6.3.1 - ETSI GS NFV-SOL 009 [5] v3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -21,7 +21,7 @@ Post Individual Subscription - Method not implemented
Get Information about an individual subscription
    [Documentation]    Test ID: 8.3.3.4.2
    ...    Test title: Get Information about an individual subscription
    ...    Test objective: The objective is to read an individual subscription for NFV-MANO alarms subscribed by the client and perform a JSON schema and content validation of the returned fault management individual subscription data structure
    ...    Test objective: The objective is to read an individual subscription from NFV-MANO alarms subscribed by the client and perform a JSON schema and content validation of the returned fault management individual subscription data structure
    ...    Pre-conditions: The subscription with the given id exists
    ...   Reference: clause 7.5.6.3.2 - ETSI GS NFV-SOL 009 [5] v3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -34,7 +34,7 @@ Get Information about an individual subscription
PUT an individual subscription - Method not implemented
    [Documentation]    Test ID: 8.3.3.4.3
    ...    Test title:PUT an individual subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed for Fault management individual subscription on VNF  
    ...    Test objective: The objective is to test that PUT method is not allowed for fault management individual subscription on VNF  
    ...    Pre-conditions:  none
    ...    Reference: clause 7.5.6.3.3 - ETSI GS NFV-SOL 009 [5] v3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -46,7 +46,7 @@ PUT an individual subscription - Method not implemented
PATCH an individual subscription - Method not implemented
    [Documentation]    Test ID: 8.3.3.4.4
    ...    Test title:PATCH an individual subscription - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed for Fault management individual subscription on VNF  
    ...    Test objective: The objective is to test that PATCH method is not allowed for fault management individual subscription on VNF  
    ...    Pre-conditions:  none
    ...    Reference: clause 7.5.6.3.4 - ETSI GS NFV-SOL 009 [5] v3.3.1
    ...    Config ID: Config_prod_NFV-MANO
+2 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ Suite Teardown Terminate All Processes kill=true
NFV-MANO Fault Alarm Notification
    [Documentation]    Test ID: 8.3.3.5.1
    ...    Test title: NFV-MANO Fault Alarm Notification
    ...    Test objective: The objective is to test the dispatch of NFV-MANO Fault Alarm Notification when a virtualised resource within an NFV-MANO instance fails, and perform a JSON schema and content validation of the delivered notification. The action that triggers the notification under test is an explicit test step, but it is not performed by the test system.
    ...    Test objective: The objective is to test the dispatch of NFV-MANO Fault Alarm Notification when a resource within an NFV-MANO instance fails, and perform a JSON schema and content validation of the delivered notification. The action that triggers the notification under test is an explicit test step, but it is not performed by the test system.
    ...    Pre-conditions: A NFV-MANO instance is instantiated, and a subscription for fault alarm notifications is available.
    ...    Reference: clause 7.5.7.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
@@ -25,7 +25,7 @@ NFV-MANO Fault Alarm Notification
NFV-MANO Fault Alarm Cleared Notification
    [Documentation]    Test ID: 8.3.3.5.2
    ...    Test title: NFV-MANO Fault Alarm Cleared Notification
    ...    Test objective: The objective is to test the dispatch of NFV-MANO Fault Alarm Cleared Notification when a faulty virtualised resource within an NFV-MANO instance is cleared, and perform a JSON schema and content validation of the delivered notification. The action that triggers the notification under test is an explicit test step, but it is not performed by the test system.
    ...    Test objective: The objective is to test the dispatch of NFV-MANO Fault Alarm Cleared Notification when a faulty resource within an NFV-MANO instance is cleared, and perform a JSON schema and content validation of the delivered notification. The action that triggers the notification under test is an explicit test step, but it is not performed by the test system.
    ...    Pre-conditions: A NFV-MANO instance is instantiated, a virtualised resource is in faulty state, and a subscription for fault alarm cleared notifications is available.
    ...    Reference: clause 7.5.7.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
Loading