${LccnSubscriptions}=Check subscriptions about one VNFInstance and operation type${vnfInstanceId}VnfLcmOperationOccurrenceNotificationoperationType=SCALE
Set Suite Variable${LccnSubscriptions}
${scaleInfo}=Get Vnf Scale Info${vnfInstanceId}
POST Scale Out a vnfInstance
[Documentation]Test ID: 5.x.y.x
...Test title: Scale out VNF operation
...Test objective: The objective is to test a scale out of an existing VNF instance
...Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
...Reference: section 5.4.5 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: Scale operation is supported for the VNF (as capability in the VNFD)
...NFVO is not subscribed for
...Post-Conditions: VNF instance still in INSTANTIATED state and VNF was scaled
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Run Keyword If${notificationType}=="VnfIdentifierCreationNotification" or ${notificationType}=="VnfIdentifierDeletionNotification"GET${apiRoot}/${apiName}/${apiVersion}/subscriptions?vnfInstanceIds=${vnfInstanceId}¬ificationTypes=${notificationType}
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vnfInstanceId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vnfLcmOpOccId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimConnections":{
"description":"Provides information regarding VIM connections that are approved to be used by the VNFM to allocate resources, and provides parameters of these VIM connections. The VNFM shall update the \" vimConnectionInfo\" attribute of the \"VnfInstance\" structure by adding unknown entries received in this attribute. This attribute is not intended for the modification of VimConnection entries passed earlier; for that, the VnfInfoModificationRequest structure shall be used. This attribute shall only be supported when VNF-related Resource Management in direct mode is applicable. In direct mode, this parameter shall be absent if the VIM information was configured to the VNFM in another way, present otherwise. This interface allows to signal the use of multiple VIMs per VNF. However, due to the partial support of this feature in the present release, it is recommended in the present document that the number of entries in the \"vims\" attribute in the Grant is not greater than 1.\n",
"type":"array",
"items":{
"description":"This type represents parameters to connect to a VIM for managing the resources of a VNF instance. This structure is used to convey VIM-related parameters over the Or-Vnfm interface. Additional parameters for a VIM may be configured into the VNFM by means outside the scope of the present document, and bound to the identifier of that VIM.\n",
"type":"object",
"required":[
"id",
"vimType"
],
"properties":{
"id":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimType":{
"description":"Discriminator for the different types of the VIM information. The value of this attribute determines the structure of the \"interfaceInfo\" and \"accessInfo\" attributes, based on the type of the VIM. The set of permitted values is expected to change over time as new types or versions of VIMs become available. The ETSI NFV registry of VIM-related information provides access to information about VimConnectionInfo definitions for various VIM types. The structure of the registry is defined in Annex C of SOL003.\n",
"type":"string"
},
"interfaceInfo":{
"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 key- value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 7159.\n",
"type":"object"
},
"accessInfo":{
"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 key- value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 7159.\n",
"type":"object"
},
"extra":{
"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 key- value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 7159.\n",
"type":"object"
}
}
}
},
"zones":{
"description":"Identifies resource zones where the resources are approved to be allocated by the VNFM.\n",
"type":"array",
"items":{
"description":"This type provides information regarding a resource zone.\n",
"type":"object",
"required":[
"id",
"zoneId"
],
"properties":{
"id":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"zoneId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
}
}
}
},
"zoneGroups":{
"description":"Information about groups of resource zones that are related and that the NFVO has chosen to fulfil a zoneGroup constraint in the GrantVnfLifecycleOperation request. This information confirms that the NFVO has honoured the zoneGroup constraints that were passed as part of \"placementConstraints\" in the GrantRequest.\n",
"type":"array",
"items":{
"description":"This type provides information regarding a resource zone group. A resource zone group is a group of one or more related resource zones which can be used in resource placement constraints. To fulfil such constraint, the NFVO may decide to place a resource into any zone that belongs to a particular group. NOTE: A resource zone group can be used to support overflow from one resource zone into another, in case a particular deployment supports only non-elastic resource zones.\n",
"type":"object",
"required":[
"zoneId"
],
"properties":{
"zoneId":{
"description":"References of identifiers of \"ZoneInfo\" structures, each of which provides information about a resource zone that belongs to this group.\n",
"type":"array",
"items":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
}
}
}
}
},
"computeReservationId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
},
"networkReservationId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
},
"storageReservationId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
},
"addResources":{
"description":"List of resources that are approved to be added, with one entry per resource.\n",
"type":"array",
"items":{
"description":"This type contains information about a Compute, storage or network resource whose addition/update/deletion was granted.\n",
"type":"object",
"required":[
"resourceDefinitionId"
],
"properties":{
"resourceDefinitionId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"reservationId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"zoneId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"resourceGroupId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
}
}
}
},
"tempResources":{
"description":"List of resources that are approved to be temporarily instantiated during the runtime of the lifecycle operation, with one entry per resource.\n",
"type":"array",
"items":{
"description":"This type contains information about a Compute, storage or network resource whose addition/update/deletion was granted.\n",
"type":"object",
"required":[
"resourceDefinitionId"
],
"properties":{
"resourceDefinitionId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"reservationId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"zoneId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"resourceGroupId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
}
}
}
},
"removeResources":{
"description":"List of resources that are approved to be removed, with one entry per resource.\n",
"type":"array",
"items":{
"description":"This type contains information about a Compute, storage or network resource whose addition/update/deletion was granted.\n",
"type":"object",
"required":[
"resourceDefinitionId"
],
"properties":{
"resourceDefinitionId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"reservationId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"zoneId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"resourceGroupId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
}
}
}
},
"updateResources":{
"description":"List of resources that are approved to be modified, with one entry per resource.\n",
"type":"array",
"items":{
"description":"This type contains information about a Compute, storage or network resource whose addition/update/deletion was granted.\n",
"type":"object",
"required":[
"resourceDefinitionId"
],
"properties":{
"resourceDefinitionId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"reservationId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"zoneId":{
"description":"An identifier that is unique within a limited local scope other than above listed identifiers, such as within a complex data structure or within a request-response pair. Representation: string of variable length.\n",
"type":"string"
},
"resourceGroupId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
}
}
}
},
"vimAssets":{
"description":"Information about assets for the VNF that are managed by the NFVO in the VIM, such as software images and virtualised compute resource flavours. This attribute is not intended for the modification of vimAssets entries passed earlier. Modification of VIM assets during the lifetime of a VNF instance is not necessary, since it is expected that all applicable assets have been on boarded into the VIM before the VNF is instantiated.\n",
"type":"object",
"properties":{
"computeResourceFlavours":{
"description":"Mappings between virtual compute descriptors defined in the VNFD and compute resource flavours managed in the VIM.\n",
"type":"array",
"items":{
"description":"If the VIM requires the use of virtual compute resource flavours during compute resource instantiation, it is assumed that such flavours are selected or created by the NFVO based on the information in the virtual compute descriptor defined in the VNFD. This type defines the mapping between a virtual compute descriptor in the VNFD and the corresponding compute resource flavour managed by the NFVO in the VIM.\n",
"type":"object",
"required":[
"vnfdVirtualComputeDescId",
"vimFlavourId"
],
"properties":{
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vnfdVirtualComputeDescId":{
"description":"An identifier that is unique within a VNF descriptor.\n",
"type":"string"
},
"vimFlavourId":{
"description":"An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n",
"type":"string"
}
}
}
},
"softwareImages":{
"description":"Mappings between software images defined in the VNFD and software images managed in the VIM.\n",
"type":"array",
"items":{
"description":"This type contains a mapping between a software image definition the VNFD and the corresponding software image managed by the NFVO in the VIM which is needed during compute resource instantiation.\n",
"type":"object",
"required":[
"vnfdSoftwareImageId",
"vimSoftwareImageId"
],
"properties":{
"vimConnectionId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"resourceProviderId":{
"description":"An identifier with the intention of being globally unique.\n",
"type":"string"
},
"vnfdSoftwareImageId":{
"description":"An identifier that is unique within a VNF descriptor.\n",