Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/NotificationEndpoint.robot: 112 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
*** Setting ***
Resourceenvironment/variables.txt
Suite SetupCreate Sessions
Suite TeardownTerminate All Processeskill=true
LibraryMockServerLibrary
LibraryProcess
LibraryOperatingSystem
LibraryBuiltIn
LibraryCollections
LibraryString
*** Test Cases ***
Information Changed Notification
[Documentation]Test ID: 8.3.1.12.1
...Test title: Information Changed Notification
...Test objective: The objective is to test the dispatch of Information Changed Notification when configuration or information is changed in the NFV-MANO, 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 subscription for information availability notifications is available in the NFV-MANO.
...Reference: clause 5.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Trigger the availability of Information Changed Notification (external action)
Check Information Changed Notification Available Http POST Request Body Json Schema IsInformationChangedNotification
Check Information Changed Notification Available Http POST Request Body notificationType attribute IsInformationChangedNotification
Change State Notification
[Documentation]Test ID: 8.3.1.12.2
...Test title: Change State Notification
...Test objective: The objective is to test the dispatch of Change State Notification when state changes of the NFV-MANO functional entity and its managed objects, 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 performance job is created, and a state change subscription is available in the NFV-MANO.
...Reference: clause 5.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANOz
...Applicability: none
...Post-Conditions: none
Trigger the cross of Change State (external action)
Check Change State Notification Http POST Request Body Json Schema IsChangeStateNotification
Check Change State Notification Http POST Request Body notificationType attribute IsChangeStateNotification
*** Keywords ***
Trigger the availability of Information Changed Notification (external action)
#do nothing
Logdo nothing
Trigger the cross of Change State (external action)
#do nothing
Logdo nothing
Check Information Changed Notification Available Http POST Request Body Json Schema Is
Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/schemas/ChangeStateNotification.json: 151 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
{
"description":"This type represents a Change state operation occurrence.\n",
"type":"object",
"properties":{
"id":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"notificationType":{
"description":"Discriminator for the different notification types. Shall be set to \"ChangeStateNotification\" for this notification type.\n",
"type":"string"
},
"subscriptionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"timestamp":{
"description":"Date-time stamp. Representation: String formatted according to IETF RFC 3339.\n",
"type":"string",
"format":"date-time"
},
"changeStateOpOccId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"stateChangedTime":{
"description":"Date-time stamp. Representation: String formatted according to IETF RFC 3339.\n",
"type":"string",
"format":"date-time"
},
"changeStateOperationState":{
"description":"The enumeration ChangeStateOpOccStateEnumType defines permitted values for the change state operation. It shall comply with the provisions :\n - PROCESSING\tThe change state operation is currently in execution.\n - COMPLETED\tThe change state operation has been completed successfully.\n - FAILED\tThe change state operation has failed.\n",
"type":"string",
"enum":[
"PROCESSING",
"COMPLETED",
"FAILED"
]
},
"managedObjectRef":{
"description":"This type represents the identifier to reference a managed object of a particular type. \n",
"type":"object",
"properties":{
"type":{
"description":"Indicates the type of managed object. Permitted values:\n - MANO_ENTITY\n - MANO_SERVICE\n - MANO_SERVICE_IF\n - CONSUMED_MANO_IF\n - MANO_ENTITY_COMPONENT\n\nThe \"MANO_ENTITY COMPONENT\" is only applicable if attribute \"manoEntityComponents\" in \"ManoEntity\" is supported by the API producer.\n",
"type":"string",
"enum":[
"MANO_ENTITY",
"MANO_SERVICE",
"MANO_SERVICE_IF",
"CONSUMED_MANO_IF",
"MANO_ENTITY_COMPONENT"
]
},
"objectId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"subObjectId":{
"description":"An identifier that is unique for the respective type within a NFV-MANO functional entity, but that need not be globally unique. Representation: string of variable length..\n",
"type":"string"
}
},
"required":[
"type",
"objectId"
]
},
"operationalState":{
"description":"The enumeration OperationalStateEnumType defines values representing the operational state of an NFV-MANO functional application type of managed entity. The OperationalStateEnumType shall comply with the provisions:\n - STARTED\tThe managed entity is operational.\n - STOPPED\tThe managed entity is not operational.\n - STOPPING\tThe managed entity is in the transition to stop.\n - STARTING\tThe managed entity is in the transition to start and become operational.\n - RESTARTING\tThe managed entity is in the transition to stop and start again.\n",
"type":"string",
"enum":[
"STARTED",
"STOPPED",
"STOPPING",
"STARTING",
"RESTARTING"
]
},
"administrativeState":{
"description":"The enumeration AdministrativeStateEnumType defines values representing the administrative state of a managed entity. The AdministrativeStateEnumType shall comply with the provisions:\n - LOCKED\tThe managed entity is administratively prohibited to be used.\n - UNLOCKED\tThe managed entity is administratively allowed to be used.\n - LOCKING\tThe managed entity is in the transition to be locked.\n",
"type":"string",
"enum":[
"LOCKED",
"UNLOCKED",
"LOCKING"
]
},
"_links":{
"description":"Links to resources related to this notification.\n",
"type":"object",
"properties":{
"subscription":{
"description":"This type represents a link to a resource in a notification, using an absolute or relative URI.\n",
"type":"object",
"required":[
"href"
],
"properties":{
"href":{
"description":"String formatted according to IETF RFC 3986.\n",
"type":"string"
}
}
},
"objectInstance":{
"description":"This type represents a link to a resource in a notification, using an absolute or relative URI.\n",
"type":"object",
"required":[
"href"
],
"properties":{
"href":{
"description":"String formatted according to IETF RFC 3986.\n",
"type":"string"
}
}
},
"changeStateOpOcc":{
"description":"This type represents a link to a resource in a notification, using an absolute or relative URI.\n",
"type":"object",
"required":[
"href"
],
"properties":{
"href":{
"description":"String formatted according to IETF RFC 3986.\n",
Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/schemas/InformationChangedNotification.json: 81 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
{
"description":"This type represents a notification that is sent when data about configuration and information of the NFV-MANO functional entity have been changed.\n",
"type":"object",
"properties":{
"id":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"notificationType":{
"description":"Discriminator for the different notification types. Shall be set to \"InformationChangedNotification\" for this notification type.\n",
"type":"string"
},
"subscriptionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"timeStamp":{
"description":"Date-time stamp. Representation: String formatted according to IETF RFC 3339.\n",
"type":"string",
"format":"date-time"
},
"informationChangedTime":{
"description":"Date-time stamp. Representation: String formatted according to IETF RFC 3339.\n",
"type":"string",
"format":"date-time"
},
"manoEntityId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"changedInfo":{
"description":"This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of keyvalue pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 8259. In the following example, a list of key-value pairs with four keys (\"aString\", \"aNumber\", \"anArray\" and \"anObject\") is provided to illustrate that the values associated with different keys can be of different type.\n",
"type":"object"
},
"_links":{
"description":"Links to resources related to this notification.\n",
"type":"object",
"properties":{
"self":{
"description":"This type represents a link to a resource in a notification, using an absolute or relative URI.\n",
"type":"object",
"required":[
"href"
],
"properties":{
"href":{
"description":"String formatted according to IETF RFC 3986.\n",
"type":"string"
}
}
},
"subscription":{
"description":"This type represents a link to a resource in a notification, using an absolute or relative URI.\n",
"type":"object",
"required":[
"href"
],
"properties":{
"href":{
"description":"String formatted according to IETF RFC 3986.\n",