aboutsummaryrefslogtreecommitdiffstats
path: root/plans
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2020-04-23 14:26:43 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-23 14:26:43 +0000
commitd0cb4ba1ee79050aef906ec3a14f839caf865ede (patch)
tree52c3795b3b6a761e1396e8cdf5de2459d3c62c73 /plans
parent4a7766240098959b5bbf5581b45d47d0643707dc (diff)
parente207b42c4806d949ec9125116cbafc23698b77b3 (diff)
Merge "[PMSH] Updating csits for CBS module"
Diffstat (limited to 'plans')
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/aai_sim/aai-initializer.json (renamed from plans/dcaegen2-services-pmsh/testsuite/assets/aai-initializer.json)0
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/aai_sim/aai_mockserver.properties (renamed from plans/dcaegen2-services-pmsh/testsuite/assets/mockserver.properties)0
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json (renamed from plans/dcaegen2-services-pmsh/testsuite/assets/cbs-initializer.json)6
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs_mockserver.properties31
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr-initializer.json (renamed from plans/dcaegen2-services-pmsh/testsuite/assets/mr-initializer.json)0
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr_mockserver.properties26
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/cert.pem (renamed from plans/dcaegen2-services-pmsh/testsuite/assets/cert.pem)2
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/key.pem (renamed from plans/dcaegen2-services-pmsh/testsuite/assets/key.pem)2
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_cacert.pem22
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_key.pem28
-rw-r--r--plans/dcaegen2-services-pmsh/testsuite/docker-compose.yml31
11 files changed, 131 insertions, 17 deletions
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/aai-initializer.json b/plans/dcaegen2-services-pmsh/testsuite/assets/aai_sim/aai-initializer.json
index 5406f99c..5406f99c 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/aai-initializer.json
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/aai_sim/aai-initializer.json
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/mockserver.properties b/plans/dcaegen2-services-pmsh/testsuite/assets/aai_sim/aai_mockserver.properties
index 9c592303..9c592303 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/mockserver.properties
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/aai_sim/aai_mockserver.properties
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs-initializer.json b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json
index 23888098..1a1ba9eb 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/cbs-initializer.json
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs-initializer.json
@@ -82,7 +82,7 @@
"dmaap_info": {
"client_id": "1475976809466",
"client_role": "org.onap.dcae.pmPublisher",
- "topic_url": "https://mr-sim:1080/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
+ "topic_url": "https://mr-sim:3095/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
"location": "san-francisco"
},
"type": "message_router"
@@ -94,14 +94,14 @@
"dmaap_info": {
"client_id": "1575976809466",
"client_role": "org.onap.dcae.aaiSub",
- "topic_url": "https://mr-sim:1080/events/AAI_EVENT",
+ "topic_url": "https://mr-sim:3095/events/AAI_EVENT",
"location": "san-francisco"
}
},
"policy_pm_subscriber": {
"dmaap_info": {
"location": "san-francisco",
- "topic_url": "https://mr-sim:1080/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
+ "topic_url": "https://mr-sim:3095/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS",
"client_role": "org.onap.dcae.pmSubscriber",
"client_id": "1575876809456"
},
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
new file mode 100644
index 00000000..0ef573f7
--- /dev/null
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/cbs_sim/cbs_mockserver.properties
@@ -0,0 +1,31 @@
+#######################################
+# 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
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/mr-initializer.json b/plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr-initializer.json
index 2eac8406..2eac8406 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/mr-initializer.json
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr-initializer.json
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr_mockserver.properties b/plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr_mockserver.properties
new file mode 100644
index 00000000..9c592303
--- /dev/null
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/mr_sim/mr_mockserver.properties
@@ -0,0 +1,26 @@
+#######################################
+# 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=www.example.com,www.another.com
+# comma separated list of ip addresses for Subject Alternative Name ips (default empty list)
+mockserver.sslSubjectAlternativeNameIps=127.0.0.1
+
+# CORS
+
+# enable CORS for MockServer REST API
+mockserver.enableCORSForAPI=true
+# enable CORS for all responses
+mockserver.enableCORSForAllResponses=true
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/cert.pem b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/cert.pem
index 1f789ba2..5bb1bb9b 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/cert.pem
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/cert.pem
@@ -29,4 +29,4 @@ XMCAgGcNKlmOWtdDEPUoNUaN9Qvj3Jdk/Szeli370k+qIc8Vt5U5CcC4RJF78Emr
A5EVnjxW61yFopcaAvjeRqH/tKtZBrEqzLmpyqbFlMaSVyJ+4L3G+DPZUbX0ypod
9ouIpBUmGIUyVZYKZdtZgDcz8gEVyHVvReRegpWK4PqTK1Sp5V4AL+KsvtB/Lkk1
WA==
------END CERTIFICATE-----
+-----END CERTIFICATE----- \ No newline at end of file
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/key.pem b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/key.pem
index eddafc1f..15fa3618 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/assets/key.pem
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/key.pem
@@ -49,4 +49,4 @@ RRHSt9MfKBgN4OkPSBCkB+ySk/T9in4muUVSd+OwToCKKZv4rgpu+hDn7U3bbzTV
rX/cdAJnlkzAT4PsrnqoLr8jb2lGpXTm8xsW0wJWa6gzGC2kHHEsUbo0k3Vu1Uaz
6yBjLYXBP7txiHjkLmoPlXfzEh6ls5yFsg8Yb63NRS0T1Kvb3U1edrf78axK1JBD
hbGjpWWdg2ta42RD3MB/wgEAesncd+r4
------END PRIVATE KEY-----
+-----END PRIVATE KEY----- \ No newline at end of file
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_cacert.pem b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_cacert.pem
new file mode 100644
index 00000000..33a8b286
--- /dev/null
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_cacert.pem
@@ -0,0 +1,22 @@
+-----BEGIN CERTIFICATE-----
+MIIDqDCCApCgAwIBAgIEPhwe6TANBgkqhkiG9w0BAQsFADBiMRswGQYDVQQDDBJ3
+d3cubW9ja3NlcnZlci5jb20xEzARBgNVBAoMCk1vY2tTZXJ2ZXIxDzANBgNVBAcM
+BkxvbmRvbjEQMA4GA1UECAwHRW5nbGFuZDELMAkGA1UEBhMCVUswIBcNMTYwNjIw
+MTYzNDE0WhgPMjExNzA1MjcxNjM0MTRaMGIxGzAZBgNVBAMMEnd3dy5tb2Nrc2Vy
+dmVyLmNvbTETMBEGA1UECgwKTW9ja1NlcnZlcjEPMA0GA1UEBwwGTG9uZG9uMRAw
+DgYDVQQIDAdFbmdsYW5kMQswCQYDVQQGEwJVSzCCASIwDQYJKoZIhvcNAQEBBQAD
+ggEPADCCAQoCggEBAPGORrdkwTY1H1dvQPYaA+RpD+pSbsvHTtUSU6H7NQS2qu1p
+sE6TEG2fE+Vb0QIXkeH+jjKzcfzHGCpIU/0qQCu4RVycrIW4CCdXjl+T3L4C0I3R
+mIMciTig5qcAvY9P5bQAdWDkU36YGrCjGaX3QlndGxD9M974JdpVK4cqFyc6N4gA
+Onys3uS8MMmSHTjTFAgR/WFeJiciQnal+Zy4ZF2x66CdjN+hP8ch2yH/CBwrSBc0
+ZeH2flbYGgkh3PwKEqATqhVa+mft4dCrvqBwGhBTnzEGWK/qrl9xB4mTs4GQ/Z5E
+8rXzlvpKzVJbfDHfqVzgFw4fQFGV0XMLTKyvOX0CAwEAAaNkMGIwHQYDVR0OBBYE
+FH3W3sL4XRDM/VnRayaSamVLISndMA8GA1UdEwEB/wQFMAMBAf8wCwYDVR0PBAQD
+AgG2MCMGA1UdJQQcMBoGCCsGAQUFBwMBBggrBgEFBQcDAgYEVR0lADANBgkqhkiG
+9w0BAQsFAAOCAQEAecfgKuMxCBe/NxVqoc4kzacf9rjgz2houvXdZU2UDBY3hCs4
+MBbM7U9Oi/3nAoU1zsA8Rg2nBwc76T8kSsfG1TK3iJkfGIOVjcwOoIjy3Z8zLM2V
+YjYbOUyAQdO/s2uShAmzzjh9SV2NKtcNNdoE9e6udvwDV8s3NGMTUpY5d7BHYQqV
+sqaPGlsKi8dN+gdLcRbtQo29bY8EYR5QJm7QJFDI1njODEnrUjjMvWw2yjFlje59
+j/7LBRe2wfNmjXFYm5GqWft10UJ7Ypb3XYoGwcDac+IUvrgmgTHD+E3klV3SUi8i
+Gm5MBedhPkXrLWmwuoMJd7tzARRHHT6PBH/ZGw==
+-----END CERTIFICATE-----
diff --git a/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_key.pem b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_key.pem
new file mode 100644
index 00000000..2d5fe6d9
--- /dev/null
+++ b/plans/dcaegen2-services-pmsh/testsuite/assets/ssl_certs/mock_server_key.pem
@@ -0,0 +1,28 @@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6aIqkVRt8XHXrVTDoyRO1kygzNjc26yI8Zk/JmwVkPS6MmRWfJL+N//P
+urK0l6nnnwKBgHog2bd+3aDjtXoJpMDD4SYQEXt3gSZqZHpWUlUXwrGJqnfm4tJT
+16U6ZLnEVilm0GWEnApwweZ4o9+zfTZshI7UofEaAe2zz2pEM/Ej1OOO1X/KUGVe
+HRH95Hp4Lrz+DbH21S/rMuHxmDUfaclIl2YfpN8byjjwjAqdB3JIhdXdAoGAHwz5
+yJWeBTTEazq/E7x06n4ovt8wKbkJROGiL2zaiGJ+isE9PEsAPdC6CuEm9cKOnFJa
+3Nr4ahz5JeaD8OLwt8a5BB1UJlVMRsnhWndDkllpQvIQZPHyNHZ3/0bqXqJE2YSw
+ywMO292BOMNEmXMe5lE39woGlKlJeKpIh43U8LsCgYAKl7GlVA547z0975B2nv4a
+YeWzt20plkSyENv2V65DVogY0lKNpMNgttH0+UkZkJ03jFQ8n7EaKzwKhVxhvcg0
+tHXNTuAECG7uhT4aLjBUA4KTMNFjsDrSM5RnvM86U6noIrNl0UirJsrIzX/FiBd4
+B00j3wnIg+Ix1l+X44GneQ==
+-----END PRIVATE KEY----- \ No newline at end of file
diff --git a/plans/dcaegen2-services-pmsh/testsuite/docker-compose.yml b/plans/dcaegen2-services-pmsh/testsuite/docker-compose.yml
index 0ad8453e..ed991c38 100644
--- a/plans/dcaegen2-services-pmsh/testsuite/docker-compose.yml
+++ b/plans/dcaegen2-services-pmsh/testsuite/docker-compose.yml
@@ -18,8 +18,8 @@ services:
MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/aai-initializer.json
volumes:
- - ./assets/mockserver.properties:/config/mockserver.properties
- - ./assets/aai-initializer.json:/config/aai-initializer.json
+ - ./assets/aai_sim/aai_mockserver.properties:/config/mockserver.properties
+ - ./assets/aai_sim/aai-initializer.json:/config/aai-initializer.json
networks:
pmsh-network:
@@ -29,9 +29,13 @@ services:
environment:
MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/cbs-initializer.json
+ LOG_LEVEL: "DEBUG"
+ SERVER_PORT: 10443
volumes:
- - ./assets/mockserver.properties:/config/mockserver.properties
- - ./assets/cbs-initializer.json:/config/cbs-initializer.json
+ - ./assets/cbs_sim/cbs_mockserver.properties:/config/mockserver.properties
+ - ./assets/cbs_sim/cbs-initializer.json:/config/cbs-initializer.json
+ - ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem
+ - ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem
networks:
pmsh-network:
@@ -41,29 +45,32 @@ services:
environment:
MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/mr-initializer.json
+ LOG_LEVEL: "DEBUG"
+ SERVER_PORT: 3095
volumes:
- - ./assets/mockserver.properties:/config/mockserver.properties
- - ./assets/mr-initializer.json:/config/mr-initializer.json
+ - ./assets/mr_sim/mr_mockserver.properties:/config/mockserver.properties
+ - ./assets/mr_sim/mr-initializer.json:/config/mr-initializer.json
networks:
pmsh-network:
pmsh:
container_name: pmsh
- image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:1.0.1
+ image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:latest
depends_on:
- db
volumes:
- - ./assets/cert.pem:/opt/app/pmsh/etc/certs/cert.pem
- - ./assets/key.pem:/opt/app/pmsh/etc/certs/key.pem
+ - ./assets/ssl_certs/cert.pem:/opt/app/pmsh/etc/certs/cert.pem
+ - ./assets/ssl_certs/key.pem:/opt/app/pmsh/etc/certs/key.pem
+ - ./assets/ssl_certs/mock_server_cacert.pem:/opt/app/pmsh/etc/certs/cacert.pem
environment:
HOSTNAME: "dcae-pmsh"
- CONFIG_BINDING_SERVICE_SERVICE_HOST: cbs-sim
- CONFIG_BINDING_SERVICE_SERVICE_PORT: 1080
+ CONFIG_BINDING_SERVICE: cbs-sim
PMSH_PG_URL: db
PMSH_PG_USERNAME: $DB_USER
PMSH_PG_PASSWORD: $DB_PASSWORD
AAI_SERVICE_HOST: aai-sim
- AAI_SERVICE_PORT_AAI_SSL: 1080
+ AAI_SERVICE_PORT: 1080
+ DCAE_CA_CERTPATH: '/opt/app/pmsh/etc/certs/cacert.pem'
networks:
pmsh-network: