Commit 9928753a authored by aureliano sinatra's avatar aureliano sinatra
Browse files

FaultManagementSOL003R1

parent cf363111
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@ Create a new subscription
    ...    Reference: section 7.4.5.3.1 - SOL002 v2.4.1
    ...    Reference: section 7.4.5.3.1 - SOL002 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: 
    ...    Post-Conditions: 
    ...    Post-Conditions: subscription is created
    Post Create subscription
    Post Create subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Body Json Schema Is    FmSubscription
@@ -27,7 +27,7 @@ Create a new Subscription - DUPLICATION
    ...    Reference: section 7.4.5.3.1 - SOL002 v2.4.1
    ...    Reference: section 7.4.5.3.1 - SOL002 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: the VNFM does not allow creation of a subscription resource if another subscription resource with the same filter and callbackUri already exists
    ...    Applicability: the VNFM does not allow creation of a subscription resource if another subscription resource with the same filter and callbackUri already exists
    ...    Post-Conditions: 
    ...    Post-Conditions: duplicated subscription is created
    Post Create subscription - DUPLICATION
    Post Create subscription - DUPLICATION
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Body Json Schema Is    FmSubscription
@@ -40,7 +40,7 @@ Create a new Subscription - NO-DUPLICATION
    ...    Reference: section 7.4.5.3.1 - SOL002 v2.4.1
    ...    Reference: section 7.4.5.3.1 - SOL002 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: the VNFM does not allow creation of a duplicate subscription resource 
    ...    Applicability: the VNFM does not allow creation of a duplicate subscription resource 
    ...    Post-Conditions:
    ...    Post-Conditions: duplicated subscription is not created
    Post Create subscription - DUPLICATION
    Post Create subscription - DUPLICATION
    Check HTTP Response Status Code Is    303
    Check HTTP Response Status Code Is    303


@@ -52,7 +52,7 @@ GET Subscriptions
    ...    Reference: section 7.4.5.3.2 - SOL002 v2.4.1
    ...    Reference: section 7.4.5.3.2 - SOL002 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability:  
    ...    Applicability:  
    ...    Post-Conditions: 
    ...    Post-Conditions: subscription is not deleted
    Get subscriptions
    Get subscriptions
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   FmSubscriptions 
    Check HTTP Response Body Json Schema Is   FmSubscriptions 
+3 −1
Original line number Original line Diff line number Diff line
@@ -12,7 +12,9 @@ Library Process
${original_etag}    1234
${original_etag}    1234


*** Keywords ***
*** Keywords ***

Check Operation Occurrence Id
    ${opOccId}=    Get Value From Json    ${response.headers}    $..Location
    Should Not Be Empty    ${opOccId}
Check Postcondition VNF fault management alarms Exists
Check Postcondition VNF fault management alarms Exists
    Log    Checking that alarms exists
    Log    Checking that alarms exists
    GET Fault Management Alarms
    GET Fault Management Alarms
+2 −5
Original line number Original line Diff line number Diff line
@@ -4,9 +4,6 @@ Resource FaultManagement-APIKeyword.robot
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
Documentation    This resource represents an individual subscription for VNF alarms. 
...    The client can use this resource to read and to terminate a subscription to notifications related to VNF fault management.
Suite Setup    Check Individual Subscription existance


*** Test Cases ***
*** Test Cases ***
Post Individual Subscription - Method not implemented
Post Individual Subscription - Method not implemented
@@ -17,7 +14,7 @@ Post Individual Subscription - Method not implemented
    ...    Reference: section 7.4.5.3.1 - SOL003 v2.4.1
    ...    Reference: section 7.4.5.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability:  none
    ...    Applicability:  none
    ...    Post-Conditions:  none
    ...    Post-Conditions:  subscription is not created
    POST Individual Subscription
    POST Individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


@@ -66,7 +63,7 @@ DELETE an individual subscription
    ...    Reference: section 7.4.5.3.5 - SOL003 v2.4.1
    ...    Reference: section 7.4.5.3.5 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability:  none
    ...    Applicability:  none
    ...    Post-Conditions:  none
    ...    Post-Conditions:  subscription is not deleted
    DELETE Individual Subscription
    DELETE Individual Subscription
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
    Check Individual Subscription deleted
    Check Individual Subscription deleted
+8 −10
Original line number Original line Diff line number Diff line
@@ -16,10 +16,10 @@ Create a new Fault Management alarm subscription
    ...    Reference: section 7.4.4.3.1 - SOL003 v2.4.1
    ...    Reference: section 7.4.4.3.1 - SOL003 v2.4.1
    ...    Config ID:   Config_prod_VNFM
    ...    Config ID:   Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: subscription is created
    POST Subscription
    POST Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check Operation Occurrence Id
    Check HTTP Response Body Json Schema Is  FmSubscription
    Check HTTP Response Body Json Schema Is  FmSubscription
  
  


@@ -31,11 +31,10 @@ Create a new alarm subscription - DUPLICATION
    ...    Reference: section 7.4.4.3.1 - SOL003 v2.4.1
    ...    Reference: section 7.4.4.3.1 - SOL003 v2.4.1
    ...    Config ID:   Config_prod_VNFM
    ...    Config ID:   Config_prod_VNFM
    ...    Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
    ...    Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
    ...    Post-Conditions: none
    ...    Post-Conditions: duplicated subscription is created
    Depends On Test    Create a new subscription
    POST Subscription Duplication permitted
    POST Subscription Duplication permitted
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check Operation Occurrence Id
    Check HTTP Response Body Json Schema Is  FmSubscription
    Check HTTP Response Body Json Schema Is  FmSubscription


Create a new alarm subscription - NO DUPLICATION
Create a new alarm subscription - NO DUPLICATION
@@ -46,11 +45,10 @@ Create a new alarm subscription - NO DUPLICATION
    ...    Reference: section 7.4.4.3.1 - SOL003 v2.4.1
    ...    Reference: section 7.4.4.3.1 - SOL003 v2.4.1
    ...    Config ID:   Config_prod_VNFM
    ...    Config ID:   Config_prod_VNFM
    ...    Applicability: the NFVO decides to not create a duplicate subscription resource 
    ...    Applicability: the NFVO decides to not create a duplicate subscription resource 
    ...    Post-Conditions: none
    ...    Post-Conditions: duplicated subscription is not created
    Depends On Test    Create a new subscription
    POST Subscription Duplication not permitted
    POST Subscription Duplication not permitted
    Check HTTP Response Status Code Is    303
    Check HTTP Response Status Code Is    303
    Check HTTP Response Header Contains    Location
    Check Operation Occurrence Id
    Check HTTP Response Body Json Schema Is  FmSubscription
    Check HTTP Response Body Json Schema Is  FmSubscription


Retrieve a list of alarm subscriptions
Retrieve a list of alarm subscriptions
@@ -124,6 +122,6 @@ DELETE subscriptions - Method not implemented
    ...    Reference: section 7.4.4.3.5 - SOL003 v2.4.1
    ...    Reference: section 7.4.4.3.5 - SOL003 v2.4.1
    ...    Config ID:  Config_prod_VNFM
    ...    Config ID:  Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: subscription is not deleted
    DELETE Subscriptions
    DELETE Subscriptions
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
 No newline at end of file