summaryrefslogtreecommitdiffstats
path: root/vnftest/onap/lifecycle
diff options
context:
space:
mode:
Diffstat (limited to 'vnftest/onap/lifecycle')
-rw-r--r--vnftest/onap/lifecycle/create_customer.yaml51
-rw-r--r--vnftest/onap/lifecycle/create_region.yaml40
-rw-r--r--vnftest/onap/lifecycle/create_service.yaml25
-rw-r--r--vnftest/onap/lifecycle/create_service_instance.yaml52
-rw-r--r--vnftest/onap/lifecycle/create_vf_module.yaml78
-rw-r--r--vnftest/onap/lifecycle/create_vnf_instance.yaml67
-rw-r--r--vnftest/onap/lifecycle/monitor_request.yaml24
-rw-r--r--vnftest/onap/lifecycle/preload_sdnc.yaml54
8 files changed, 391 insertions, 0 deletions
diff --git a/vnftest/onap/lifecycle/create_customer.yaml b/vnftest/onap/lifecycle/create_customer.yaml
new file mode 100644
index 0000000..97327ba
--- /dev/null
+++ b/vnftest/onap/lifecycle/create_customer.yaml
@@ -0,0 +1,51 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "PUT"
+url: "http://{aai_ip}:30232/aai/v8/business/customers/customer/{customer_name}"
+headers: {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+ "Authorization": "Basic QUFJOkFBSQ==",
+ "X-FromAppId": "AAI",
+ "X-TransactionId": "get_aai_subscr"
+ }
+body: {
+ "global-customer-id": "{customer_name}",
+ "service-subscriptions": {
+ "service-subscription": [{
+ "relationship-list": {
+ "relationship": [{
+ "related-to": "tenant",
+ "relationship-data": [{
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "{cloud_owner}"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "RegionOne"
+ },
+ {
+ "relationship-key": "tenant.tenant-id",
+ "relationship-value": "{tenant_id}"
+ }]
+ }]
+ },
+ "service-type": "vFW"
+ }]
+ },
+ "subscriber-name": "{customer_name}",
+ "subscriber-type": "INFRA"
+ }
diff --git a/vnftest/onap/lifecycle/create_region.yaml b/vnftest/onap/lifecycle/create_region.yaml
new file mode 100644
index 0000000..1a67f41
--- /dev/null
+++ b/vnftest/onap/lifecycle/create_region.yaml
@@ -0,0 +1,40 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "PUT"
+url: "http://{aai_ip}:30232/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud_owner}/RegionOne"
+headers: {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+ "Authorization": "Basic QUFJOkFBSQ==",
+ "X-FromAppId": "AAI",
+ "X-TransactionId": "get_aai_subscr"
+ }
+body: {
+ "cloud-owner": "{cloud_owner}",
+ "cloud-region-id": "RegionOne",
+ "cloud-region-version": "v1",
+ "cloud-type": "SharedNode",
+ "cloud-zone": "CloudZone",
+ "owner-defined-type": "OwnerType",
+ "tenants": {
+ "tenant": [
+ {
+ "tenant-id": "{tenant_id}",
+ "tenant-name": "{tenant_name}"
+ }
+ ]
+ }
+ }
diff --git a/vnftest/onap/lifecycle/create_service.yaml b/vnftest/onap/lifecycle/create_service.yaml
new file mode 100644
index 0000000..7b8c107
--- /dev/null
+++ b/vnftest/onap/lifecycle/create_service.yaml
@@ -0,0 +1,25 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "PUT"
+url: "http://{aai_ip}:30232/aai/v8/service-design-and-creation/services/service/vFW"
+headers: {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+ "Authorization": "Basic QUFJOkFBSQ==",
+ "X-FromAppId": "AAI",
+ "X-TransactionId": "get_aai_subscr"
+ }
+body: {"service-description":"vFW","service-id":"vFW"}
diff --git a/vnftest/onap/lifecycle/create_service_instance.yaml b/vnftest/onap/lifecycle/create_service_instance.yaml
new file mode 100644
index 0000000..93850b7
--- /dev/null
+++ b/vnftest/onap/lifecycle/create_service_instance.yaml
@@ -0,0 +1,52 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "POST"
+url: "http://{mso_ip}/ecomp/mso/infra/serviceInstances/v5"
+headers: {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+ "Authorization": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+ "X-FromAppId": "MSO",
+ "X-TransactionId": "demo"
+ }
+body: {
+ "requestDetails": {
+ "requestInfo": {
+ "source": "VID",
+ "requestorId": "vid1",
+ "suppressRollback": "true",
+ "instanceName": "{service_instance_name}"
+ },
+ "modelInfo": {
+ "modelVersionId": "{service_model_version_id}",
+ "modelVersion": "{service_model_version}",
+ "modelName": "{service_model_normalized_name}",
+ "modelInvariantId": "{service_model_invariant_id}",
+ "modelType": "service"
+ },
+ "requestParameters": {
+ "userParams": [
+
+ ],
+ "aLaCarte": "true",
+ "subscriptionServiceType": "vFW"
+ },
+ "subscriberInfo": {
+ "globalSubscriberId": "{customer_name}"
+ }
+ }
+ }
+
diff --git a/vnftest/onap/lifecycle/create_vf_module.yaml b/vnftest/onap/lifecycle/create_vf_module.yaml
new file mode 100644
index 0000000..ed46c7d
--- /dev/null
+++ b/vnftest/onap/lifecycle/create_vf_module.yaml
@@ -0,0 +1,78 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "POST"
+url: "http://{mso_ip}/ecomp/mso/infra/serviceInstances/v5/{service_instance_id}/vnfs/{vnf_instance_id}/vfModules"
+headers: {
+ "Content-Type": "application/json",
+ "Authorization": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+ "X-FromAppId": "MSO",
+ "X-TransactionId": "demo",
+ "Accept": "application/json"
+ }
+body: {
+ "requestDetails": {
+ "requestInfo": {
+ "instanceName": "{vnf_name}",
+ "source": "VID",
+ "suppressRollback": "true",
+ "requestorId": "vid1"
+ },
+ "modelInfo": {
+ "modelType": "vfModule",
+ "modelInvariantId": "{module_model_invariant_id}",
+ "modelVersionId": "{module_model_version_id}",
+ "modelName": "{vnf_type}",
+ "modelVersion": "{module_model_version}",
+ "modelCustomizationId": "{service_model_customization_id}",
+ "modelCustomizationName": "{vnf_type}"
+ },
+ "requestParameters": {
+ "usePreload": "true"
+ },
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "RegionOne",
+ "tenantId": "{tenant_id}"
+ },
+ "relatedInstanceList": [
+ {
+ "relatedInstance": {
+ "instanceId": "{service_instance_id}",
+ "modelInfo": {
+ "modelType": "service",
+ "modelName": "{service_model_name}",
+ "modelInvariantId": "{service_model_invariant_id}",
+ "modelVersion": "{service_model_version}",
+ "modelVersionId": "{distributed_service_id}"
+ }
+ }
+ },
+ {
+ "relatedInstance": {
+ "instanceId": "{vnf_instance_id}",
+ "modelInfo": {
+ "modelType": "vnf",
+ "modelName": "{resource_model_name}",
+ "modelInvariantId": "{resource_model_invariant_id}",
+ "modelVersion": "{resource_model_version}",
+ "modelVersionId": "{resource_model_version_id}",
+ "modelCustomizationId": "{resource_model_customization_id}",
+ "modelCustomizationName": "{resource_model_customization_name}"
+ }
+ }
+ }
+ ]
+ }
+ }
diff --git a/vnftest/onap/lifecycle/create_vnf_instance.yaml b/vnftest/onap/lifecycle/create_vnf_instance.yaml
new file mode 100644
index 0000000..653b97d
--- /dev/null
+++ b/vnftest/onap/lifecycle/create_vnf_instance.yaml
@@ -0,0 +1,67 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "POST"
+url: "http://{mso_ip}/ecomp/mso/infra/serviceInstances/v5/{service_instance_id}/vnfs/"
+headers: {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+ "Authorization": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+ "X-FromAppId": "MSO",
+ "X-TransactionId": "demo"
+ }
+body: {
+ "requestDetails": {
+ "requestInfo": {
+ "instanceName":"{vnf_instance_name}",
+ "source": "VID",
+ "suppressRollback": "true",
+ "requestorId": "vid1",
+ "productFamilyId": "vFW"
+ },
+ "modelInfo": {
+ "modelType": "vnf",
+ "modelInvariantId": "{resource_model_invariant_id}",
+ "modelVersionId": "{resource_model_version_id}",
+ "modelName": "{resource_model_name}",
+ "modelVersion": "{resource_model_version}",
+ "modelCustomizationId": "{resource_model_customization_id}",
+ "modelCustomizationName": "{resource_model_customization_name}"
+ },
+ "requestParameters": {
+ "userParams": []
+ },
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "RegionOne",
+ "tenantId": "{tenant_id}"
+ },
+ "relatedInstanceList": [
+ {
+ "relatedInstance": {
+ "instanceId": "{service_instance_id}",
+ "modelInfo": {
+ "modelType": "service",
+ "modelName": "{service_model_name}",
+ "modelInvariantId": "{service_model_invariant_id}",
+ "modelVersion": "{service_model_version}",
+ "modelVersionId": "{distributed_service_id}"
+ }
+ }
+ }
+ ]
+ }
+ }
+
+
diff --git a/vnftest/onap/lifecycle/monitor_request.yaml b/vnftest/onap/lifecycle/monitor_request.yaml
new file mode 100644
index 0000000..4304f0e
--- /dev/null
+++ b/vnftest/onap/lifecycle/monitor_request.yaml
@@ -0,0 +1,24 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "GET"
+url: "http://{mso_ip}/ecomp/mso/infra/orchestrationRequests/v2/{request_id}"
+headers: {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+ "Authorization": "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+ "X-FromAppId": "AAI",
+ "X-TransactionId": "get_aai_subscr"
+ }
diff --git a/vnftest/onap/lifecycle/preload_sdnc.yaml b/vnftest/onap/lifecycle/preload_sdnc.yaml
new file mode 100644
index 0000000..4053dd0
--- /dev/null
+++ b/vnftest/onap/lifecycle/preload_sdnc.yaml
@@ -0,0 +1,54 @@
+##############################################################################
+# Copyright 2018 EuropeanSoftwareMarketingLtd.
+# ===================================================================
+# Licensed under the ApacheLicense, Version2.0 (the"License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# software distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and limitations under
+# the License
+##############################################################################
+
+---
+method: "POST"
+url: "http://{aai_ip}:30202/restconf/operations/VNF-API:preload-vnf-topology-operation"
+headers: {
+ "Content-Type": "application/json",
+ "Authorization": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==",
+ "X-FromAppId": "AAI",
+ "X-TransactionId": "0a3f6713-ba96-4971-a6f8-c2da85a3176e",
+ "Accept": "application/json"
+ }
+body: {
+ "input": {
+ "request-information": {
+ "notification-url": "openecomp.org",
+ "order-number": "1",
+ "order-version": "1",
+ "request-action": "PreloadVNFRequest",
+ "request-id": "test"
+ },
+ "sdnc-request-header": {
+ "svc-action": "reserve",
+ "svc-notification-url": "http:openecomp.org:8080",
+ "svc-request-id": "test"
+ },
+ "vnf-topology-information": {
+ "vnf-assignments": {
+ "availability-zones": [],
+ "vnf-networks": [],
+ "vnf-vms": []
+ },
+ "vnf-topology-identifier": {
+ "generic-vnf-name": "{vnf_instance_name}",
+ "generic-vnf-type": "{service_model_name}/{resource_instance_model_name} 0",
+ "service-type": "{service_instance_id}",
+ "vnf-name": "{vnf_name}",
+ "vnf-type": "{vnf_type}"
+ }
+ }
+ }
+ }