diff options
Diffstat (limited to 'tests/dcaegen2-services-pmsh/testcases/assets')
7 files changed, 142 insertions, 129 deletions
diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/aai-pnf-create.json b/tests/dcaegen2-services-pmsh/testcases/assets/aai-pnf-create.json new file mode 100644 index 00000000..534b7ce1 --- /dev/null +++ b/tests/dcaegen2-services-pmsh/testcases/assets/aai-pnf-create.json @@ -0,0 +1,63 @@ +{ + "cambria.partition":"AAI", + "event-header":{ + "severity":"NORMAL", + "entity-type":"pnf", + "top-entity-type":"pnf", + "entity-link":"/aai/v16/network/pnfs/pnf/pnf_newly_discovered", + "event-type":"AAI-EVENT", + "domain":"dev", + "action":"UPDATE", + "sequence-number":"0", + "id":"db09e090-196e-4f84-9645-e449b1cd3640", + "source-name":"dcae-curl", + "version":"v16", + "timestamp":"20200203-15:14:08:807" + }, + "entity":{ + "ipaddress-v4-oam":"10.10.10.37", + "nf-role":"gNB", + "equip-type":"val8", + "relationship-list":{ + "relationship":[ + { + "related-to":"service-instance", + "relationship-data":[ + { + "relationship-value":"Demonstration", + "relationship-key":"customer.global-customer-id" + }, + { + "relationship-value":"vCPE", + "relationship-key":"service-subscription.service-type" + }, + { + "relationship-value":"2c03b2a8-e31a-4749-9e99-3089ab441400", + "relationship-key":"service-instance.service-instance-id" + } + ], + "related-link":"/aai/v16/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vCPE/service-instances/service-instance/2c03b2a8-e31a-4749-9e99-3089ab441400", + "relationship-label":"org.onap.relationships.inventory.ComposedOf", + "related-to-property":[ + { + "property-key":"service-instance.service-instance-name", + "property-value":"Svc6_1" + } + ] + } + ] + }, + "equip-vendor":"Ericsson", + "serial-number":"6061ZW3", + "ipaddress-v6-oam":"2001:0db8:0:0:0:0:1428:57ab", + "equip-model":"val6", + "in-maint":false, + "resource-version":"1578668956804", + "sw-version":"val7", + "pnf-id":"eabcfaf7-b7f3-45fb-94e7-e6112fb3e8b8", + "pnf-name":"pnf_newly_discovered", + "model-invariant-id":"7129e420-d396-4efb-af02-6b83499b12f8", + "model-version-id":"e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration-status":"Active" + } +}
\ No newline at end of file diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/aai-pnf-delete.json b/tests/dcaegen2-services-pmsh/testcases/assets/aai-pnf-delete.json new file mode 100644 index 00000000..f2ffd050 --- /dev/null +++ b/tests/dcaegen2-services-pmsh/testcases/assets/aai-pnf-delete.json @@ -0,0 +1,63 @@ +{ + "cambria.partition":"AAI", + "event-header":{ + "severity":"NORMAL", + "entity-type":"pnf", + "top-entity-type":"pnf", + "entity-link":"/aai/v16/network/pnfs/pnf/pnf_newly_discovered", + "event-type":"AAI-EVENT", + "domain":"dev", + "action":"DELETE", + "sequence-number":"0", + "id":"db09e090-196e-4f84-9645-e449b1cd3640", + "source-name":"dcae-curl", + "version":"v16", + "timestamp":"20200203-15:14:08:807" + }, + "entity":{ + "ipaddress-v4-oam":"10.10.10.37", + "nf-role":"gNB", + "equip-type":"val8", + "relationship-list":{ + "relationship":[ + { + "related-to":"service-instance", + "relationship-data":[ + { + "relationship-value":"Demonstration", + "relationship-key":"customer.global-customer-id" + }, + { + "relationship-value":"vCPE", + "relationship-key":"service-subscription.service-type" + }, + { + "relationship-value":"2c03b2a8-e31a-4749-9e99-3089ab441400", + "relationship-key":"service-instance.service-instance-id" + } + ], + "related-link":"/aai/v16/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vCPE/service-instances/service-instance/2c03b2a8-e31a-4749-9e99-3089ab441400", + "relationship-label":"org.onap.relationships.inventory.ComposedOf", + "related-to-property":[ + { + "property-key":"service-instance.service-instance-name", + "property-value":"Svc6_1" + } + ] + } + ] + }, + "equip-vendor":"Ericsson", + "serial-number":"6061ZW3", + "ipaddress-v6-oam":"2001:0db8:0:0:0:0:1428:57ab", + "equip-model":"val6", + "in-maint":false, + "resource-version":"1578668956804", + "sw-version":"val7", + "pnf-id":"eabcfaf7-b7f3-45fb-94e7-e6112fb3e8b8", + "pnf-name":"pnf_newly_discovered", + "model-invariant-id":"7129e420-d396-4efb-af02-6b83499b12f8", + "model-version-id":"e80a6ae3-cafd-4d24-850d-e14c084a5ca9", + "orchestration-status":"Active" + } +}
\ No newline at end of file diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/cbs-expectation-unlocked-config.json b/tests/dcaegen2-services-pmsh/testcases/assets/cbs-expectation-unlocked-config.json index cd7aa28c..1e692d31 100644 --- a/tests/dcaegen2-services-pmsh/testcases/assets/cbs-expectation-unlocked-config.json +++ b/tests/dcaegen2-services-pmsh/testcases/assets/cbs-expectation-unlocked-config.json @@ -89,7 +89,7 @@ "dmaap_info": { "client_id": "1475976809466", "client_role": "org.onap.dcae.pmPublisher", - "topic_url": "https://mr-sim:3095/events/unauthenticated.DCAE_CL_OUTPUT", + "topic_url": "http://dmaap:3904/events/unauthenticated.DCAE_CL_OUTPUT", "location": "san-francisco" }, "type": "message_router" @@ -101,14 +101,14 @@ "dmaap_info": { "client_id": "1575976809466", "client_role": "org.onap.dcae.aaiSub", - "topic_url": "https://mr-sim:3095/events/AAI_EVENT", + "topic_url": "http://dmaap:3904/events/AAI_EVENT", "location": "san-francisco" } }, "policy_pm_subscriber": { "dmaap_info": { "location": "san-francisco", - "topic_url": "https://mr-sim:3095/events/unauthenticated.PMSH_CL_INPUT", + "topic_url": "http://dmaap:3904/events/unauthenticated.PMSH_CL_INPUT", "client_role": "org.onap.dcae.pmSubscriber", "client_id": "1575876809456" }, diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-aai-pnf-created.json b/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-aai-pnf-created.json deleted file mode 100644 index b433892a..00000000 --- a/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-aai-pnf-created.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "httpRequest": { - "path": "/events/AAI_EVENT/.*", - "queryStringParameters" : { - "timeout" : [ "1000" ] - } - }, - "httpResponse": { - "statusCode": 200, - "headers": { - "content-type": [ - "application/json" - ] - }, - "body": [ - "{\"cambria.partition\":\"AAI\",\"event-header\":{\"severity\":\"NORMAL\",\"entity-type\":\"pnf\",\"top-entity-type\":\"pnf\",\"entity-link\":\"/aai/v16/network/pnfs/pnf/pnf_newly_discovered\",\"event-type\":\"AAI-EVENT\",\"domain\":\"dev\",\"action\":\"UPDATE\",\"sequence-number\":\"0\",\"id\":\"db09e090-196e-4f84-9645-e449b1cd3640\",\"source-name\":\"dcae-curl\",\"version\":\"v16\",\"timestamp\":\"20200203-15:14:08:807\"},\"entity\":{\"ipaddress-v4-oam\":\"10.10.10.37\",\"nf-role\":\"gNB\",\"equip-type\":\"val8\",\"relationship-list\":{\"relationship\":[{\"related-to\":\"service-instance\",\"relationship-data\":[{\"relationship-value\":\"Demonstration\",\"relationship-key\":\"customer.global-customer-id\"},{\"relationship-value\":\"vCPE\",\"relationship-key\":\"service-subscription.service-type\"},{\"relationship-value\":\"2c03b2a8-e31a-4749-9e99-3089ab441400\",\"relationship-key\":\"service-instance.service-instance-id\"}],\"related-link\":\"/aai/v16/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vCPE/service-instances/service-instance/2c03b2a8-e31a-4749-9e99-3089ab441400\",\"relationship-label\":\"org.onap.relationships.inventory.ComposedOf\",\"related-to-property\":[{\"property-key\":\"service-instance.service-instance-name\",\"property-value\":\"Svc6_1\"}]}]},\"equip-vendor\":\"Ericsson\",\"serial-number\":\"6061ZW3\",\"ipaddress-v6-oam\":\"2001:0db8:0:0:0:0:1428:57ab\",\"equip-model\":\"val6\",\"in-maint\":false,\"resource-version\":\"1578668956804\",\"sw-version\":\"val7\",\"pnf-id\":\"eabcfaf7-b7f3-45fb-94e7-e6112fb3e8b8\",\"pnf-name\":\"pnf_newly_discovered\",\"model-invariant-id\":\"7129e420-d396-4efb-af02-6b83499b12f8\",\"model-version-id\":\"e80a6ae3-cafd-4d24-850d-e14c084a5ca9\",\"orchestration-status\":\"Active\"}}" - ] - }, - "times": { - "remainingTimes": 1, - "unlimited": false - } - }, - { - "httpRequest": { - "path": "/events/AAI_EVENT/.*", - "queryStringParameters" : { - "timeout" : [ "1000" ] - } - }, - "httpResponse": { - "statusCode": 200, - "headers": { - "content-type": [ - "application/json" - ] - }, - "body": [] - } - } -] diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-aai-pnf-deleted.json b/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-aai-pnf-deleted.json deleted file mode 100644 index 3df66a61..00000000 --- a/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-aai-pnf-deleted.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "httpRequest": { - "path": "/events/AAI_EVENT/.*", - "queryStringParameters" : { - "timeout" : [ "1000" ] - } - }, - "httpResponse": { - "statusCode": 200, - "headers": { - "content-type": [ - "application/json" - ] - }, - "body": [ - "{\"cambria.partition\":\"AAI\",\"event-header\":{\"severity\":\"NORMAL\",\"entity-type\":\"pnf\",\"top-entity-type\":\"pnf\",\"entity-link\":\"/aai/v16/network/pnfs/pnf/pnf_newly_discovered\",\"event-type\":\"AAI-EVENT\",\"domain\":\"dev\",\"action\":\"DELETE\",\"sequence-number\":\"0\",\"id\":\"db09e090-196e-4f84-9645-e449b1cd3640\",\"source-name\":\"dcae-curl\",\"version\":\"v16\",\"timestamp\":\"20200203-15:14:08:807\"},\"entity\":{\"ipaddress-v4-oam\":\"10.10.10.37\",\"nf-role\":\"gNB\",\"equip-type\":\"val8\",\"relationship-list\":{\"relationship\":[{\"related-to\":\"service-instance\",\"relationship-data\":[{\"relationship-value\":\"Demonstration\",\"relationship-key\":\"customer.global-customer-id\"},{\"relationship-value\":\"vCPE\",\"relationship-key\":\"service-subscription.service-type\"},{\"relationship-value\":\"2c03b2a8-e31a-4749-9e99-3089ab441400\",\"relationship-key\":\"service-instance.service-instance-id\"}],\"related-link\":\"/aai/v16/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vCPE/service-instances/service-instance/2c03b2a8-e31a-4749-9e99-3089ab441400\",\"relationship-label\":\"org.onap.relationships.inventory.ComposedOf\",\"related-to-property\":[{\"property-key\":\"service-instance.service-instance-name\",\"property-value\":\"Svc6_1\"}]}]},\"equip-vendor\":\"Ericsson\",\"serial-number\":\"6061ZW3\",\"ipaddress-v6-oam\":\"2001:0db8:0:0:0:0:1428:57ab\",\"equip-model\":\"val6\",\"in-maint\":false,\"resource-version\":\"1578668956804\",\"sw-version\":\"val7\",\"pnf-id\":\"eabcfaf7-b7f3-45fb-94e7-e6112fb3e8b8\",\"pnf-name\":\"pnf_newly_discovered\",\"model-invariant-id\":\"7129e420-d396-4efb-af02-6b83499b12f8\",\"model-version-id\":\"e80a6ae3-cafd-4d24-850d-e14c084a5ca9\",\"orchestration-status\":\"Active\"}}" - ] - }, - "times": { - "remainingTimes": 1, - "unlimited": false - } - }, - { - "httpRequest": { - "path": "/events/AAI_EVENT/.*", - "queryStringParameters" : { - "timeout" : [ "1000" ] - } - }, - "httpResponse": { - "statusCode": 200, - "headers": { - "content-type": [ - "application/json" - ] - }, - "body": [] - } - } -] diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-policy-subscription-created-pnf-existing.json b/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-policy-subscription-created-pnf-existing.json deleted file mode 100644 index cd75deb3..00000000 --- a/tests/dcaegen2-services-pmsh/testcases/assets/mr-expectation-policy-subscription-created-pnf-existing.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "httpRequest": { - "path": "/events/unauthenticated.PMSH_CL_INPUT/.*", - "queryStringParameters" : { - "timeout" : [ "1000" ] - } - }, - "httpResponse": { - "statusCode": 200, - "headers": { - "content-type": [ - "application/json" - ] - }, - "body": [ - "{\"name\": \"ResponseEvent\", \"nameSpace\": \"org.onap.policy.apex.onap.pmcontrol\", \"source\": \"APEX\", \"target\": \"DCAE\", \"version\": \"0.0.1\", \"status\": {\"subscriptionName\": \"ExtraPM-All-gNB-R2B\", \"nfName\": \"pnf-existing\", \"changeType\": \"CREATE\", \"message\": \"success\"}}" - ] - }, - "times": { - "remainingTimes": 1, - "unlimited": false - } - }, - { - "httpRequest": { - "path": "/events/unauthenticated.PMSH_CL_INPUT/.*", - "queryStringParameters" : { - "timeout" : [ "1000" ] - } - }, - "httpResponse": { - "statusCode": 200, - "headers": { - "content-type": [ - "application/json" - ] - }, - "body": [] - } - } -] diff --git a/tests/dcaegen2-services-pmsh/testcases/assets/policy-sub-created-pnf-existing.json b/tests/dcaegen2-services-pmsh/testcases/assets/policy-sub-created-pnf-existing.json new file mode 100644 index 00000000..0d1c9081 --- /dev/null +++ b/tests/dcaegen2-services-pmsh/testcases/assets/policy-sub-created-pnf-existing.json @@ -0,0 +1,13 @@ +{ + "name":"ResponseEvent", + "nameSpace":"org.onap.policy.apex.onap.pmcontrol", + "source":"APEX", + "target":"DCAE", + "version":"0.0.1", + "status":{ + "subscriptionName":"ExtraPM-All-gNB-R2B", + "nfName":"pnf-existing", + "changeType":"CREATE", + "message":"success" + } +}
\ No newline at end of file |