aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-services-pmsh/testsuite/assets
diff options
context:
space:
mode:
Diffstat (limited to 'plans/dcaegen2-services-pmsh/testsuite/assets')
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/application_config.yaml41
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json124
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs_mockserver.properties31
3 files changed, 41 insertions, 155 deletions
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/application_config.yaml b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/application_config.yaml
new file mode 100644
index 00000000..84c6c74b
--- /dev/null
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/application_config.yaml
@@ -0,0 +1,41 @@
+{
+ "control_loop_name": "pmsh-control-loop",
+ "operational_policy_name": "pmsh-operational-policy",
+ "cert_path": "/opt/app/pmsh/etc/certs/cert.pem",
+ "enable_tls": true,
+ "ca_cert_path": "/opt/app/pmsh/etc/certs/cacert.pem",
+ "streams_publishes": {
+ "policy_pm_publisher": {
+ "dmaap_info": {
+ "client_id": "1475976809466",
+ "client_role": "org.onap.dcae.pmPublisher",
+ "topic_url": "http://mr-sim:3904/events/unauthenticated.DCAE_CL_OUTPUT",
+ "location": "san-francisco"
+ },
+ "type": "message_router"
+ }
+ },
+ "streams_subscribes": {
+ "aai_subscriber": {
+ "type": "message_router",
+ "dmaap_info": {
+ "client_id": "1575976809466",
+ "client_role": "org.onap.dcae.aaiSub",
+ "topic_url": "http://mr-sim:3904/events/AAI-EVENT",
+ "location": "san-francisco"
+ }
+ },
+ "policy_pm_subscriber": {
+ "dmaap_info": {
+ "location": "san-francisco",
+ "topic_url": "http://mr-sim:3904/events/unauthenticated.PMSH_CL_INPUT",
+ "client_role": "org.onap.dcae.pmSubscriber",
+ "client_id": "1575876809456"
+ },
+ "type": "message_router"
+ }
+ },
+ "key_path": "/opt/app/pmsh/etc/certs/key.pem",
+ "aaf_identity": "dcae@dcae.onap.org",
+ "aaf_password": "demo123456!"
+} \ No newline at end of file
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json
deleted file mode 100644
index 0c3592b4..00000000
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json
+++ /dev/null
@@ -1,124 +0,0 @@
-[
- {
- "httpRequest": {
- "path": "/service_component_all/.*"
- },
- "httpResponse": {
- "statusCode": 200,
- "headers": {
- "content-type": [
- "application/json"
- ]
- },
- "body": {
- "type": "JSON",
- "json": {
- "config": {
- "control_loop_name": "pmsh-control-loop",
- "operational_policy_name": "pmsh-operational-policy",
- "cert_path": "/opt/app/pmsh/etc/certs/cert.pem",
- "enable_tls": true,
- "ca_cert_path": "/opt/app/pmsh/etc/certs/cacert.pem",
- "pmsh_policy": {
- "subscription": {
- "subscriptionName": "ExtraPM-All-gNB-R2B",
- "administrativeState": "LOCKED",
- "fileBasedGP": 15,
- "fileLocation":"\/pm\/pm.xml",
- "nfFilter": {
- "nfNames": [
- "^pnf.*",
- "^vnf.*"
- ],
- "modelInvariantIDs": [
- "7129e420-d396-4efb-af02-6b83499b12f8"
- ],
- "modelVersionIDs": [
- ],
- "modelNames": [
- ]
- },
- "measurementGroups": [
- {
- "measurementGroup": {
- "measurementTypes": [
- {
- "measurementType": "countera"
- },
- {
- "measurementType": "counterb"
- }
- ],
- "managedObjectDNsBasic": [
- {
- "DN": "dna"
- },
- {
- "DN": "dnb"
- }
- ]
- }
- },
- {
- "measurementGroup": {
- "measurementTypes": [
- {
- "measurementType": "counterc"
- },
- {
- "measurementType": "counterd"
- }
- ],
- "managedObjectDNsBasic": [
- {
- "DN": "dnc"
- },
- {
- "DN": "dnd"
- }
- ]
- }
- }
- ]
- }
- },
- "streams_publishes": {
- "policy_pm_publisher": {
- "dmaap_info": {
- "client_id": "1475976809466",
- "client_role": "org.onap.dcae.pmPublisher",
- "topic_url": "http://mr-sim:3904/events/unauthenticated.DCAE_CL_OUTPUT",
- "location": "san-francisco"
- },
- "type": "message_router"
- }
- },
- "streams_subscribes": {
- "aai_subscriber": {
- "type": "message_router",
- "dmaap_info": {
- "client_id": "1575976809466",
- "client_role": "org.onap.dcae.aaiSub",
- "topic_url": "http://mr-sim:3904/events/AAI-EVENT",
- "location": "san-francisco"
- }
- },
- "policy_pm_subscriber": {
- "dmaap_info": {
- "location": "san-francisco",
- "topic_url": "http://mr-sim:3904/events/unauthenticated.PMSH_CL_INPUT",
- "client_role": "org.onap.dcae.pmSubscriber",
- "client_id": "1575876809456"
- },
- "type": "message_router"
- }
- },
- "key_path": "/opt/app/pmsh/etc/certs/key.pem",
- "aaf_identity": "dcae@dcae.onap.org",
- "aaf_password": "demo123456!"
- }
- }
- }
- }
- }
-]
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs_mockserver.properties b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs_mockserver.properties
deleted file mode 100644
index 0ef573f7..00000000
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs_mockserver.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-#######################################
-# MockServer & Proxy Example Settings #
-#######################################
-
-# Socket & Port Settings
-
-# socket timeout in milliseconds (default 120000)
-mockserver.maxSocketTimeout=120000
-
-# Certificate Generation
-
-# delete KeyStore file on JVM shutdown (default true)
-mockserver.deleteGeneratedKeyStoreOnExit=true
-# certificate domain name (default "localhost")
-mockserver.sslCertificateDomainName=localhost
-# comma separated list of domain names for Subject Alternative Name domain names (default empty list)
-mockserver.sslSubjectAlternativeNameDomains=cbs-sim,config-binding-service,config-binding-service.onap
-# comma separated list of ip addresses for Subject Alternative Name ips (default empty list)
-mockserver.sslSubjectAlternativeNameIps=127.0.0.1
-
-mockserver.certificateAuthorityPrivateKey=/var/tmp/mock_server_key.pem
-mockserver.certificateAuthorityCertificate=/var/tmp/mock_server_cacert.pem
-#mockserver.tlsMutualAuthenticationRequired=true
-#mockserver.tlsMutualAuthenticationCertificateChain=/var/tmp/cacert.pem
-
-# CORS
-
-# enable CORS for MockServer REST API
-mockserver.enableCORSForAPI=true
-# enable CORS for all responses
-mockserver.enableCORSForAllResponses=true