From 056998c45c0f1e320a0adb1cb23318b6435ac11a Mon Sep 17 00:00:00 2001 From: sebdet Date: Thu, 13 Aug 2020 10:32:41 -0700 Subject: Add sdc startup in IT Add the SDC startup for IT tests Issue-ID: SDC-3232 Signed-off-by: sebdet Change-Id: I865eabfb6c61f26f98ee12906de09f1a8daa469a Signed-off-by: sebdet --- integration-tests/pom.xml | 428 +++++++++++++++++++++ .../src/test/resources/integration-test.json | 104 +++++ 2 files changed, 532 insertions(+) create mode 100644 integration-tests/pom.xml create mode 100644 integration-tests/src/test/resources/integration-test.json (limited to 'integration-tests') diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml new file mode 100644 index 0000000000..a4a6e9099d --- /dev/null +++ b/integration-tests/pom.xml @@ -0,0 +1,428 @@ + + + 4.0.0 + + org.openecomp.sdc + sdc-integration-tests + pom + sdc-integration-tests + + + org.openecomp.sdc + sdc-main + 1.7.0-SNAPSHOT + + + + + integration-test + 9042 + onap123#@! + false + SDC-CS-${it.env.name} + asdc_user + Aa1234%^! + ${project.build.directory}/chef-config + /tmp/sdc-integration-tests + ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest + + + + + + + + + + + maven-resources-plugin + + + copy-resources + pre-integration-test + + copy-resources + + + ${it.chef.config} + + + src/test/resources + true + + integration-test.json + + + + + + + + + maven-antrun-plugin + 1.8 + false + + + pre-integration-test + + + + + + + + run + + + + + + org.codehaus.mojo + build-helper-maven-plugin + false + + + reserve-port-for-tests + validate + + reserve-network-port + + + + sdc.it.docker.cassandra.port + + + + + + + io.fabric8 + docker-maven-plugin + false + + + org.apache.httpcomponents + httpclient + 4.5.5 + + + + true + 1.35 + true + + + onap/sdc-cassandra:${it.docker.version} + sdc-cassandra + + + ${project.version} + ${it.cassandra.password} + ${it.env.name} + 1536M + 512M + + sdc-cs + + + ${it.chef.config}:/root/chef-solo/environments + + + + + memlock + -1 + -1 + + + nofile + 100000 + 100000 + + + + + + sdc-cs + direct + + 9042 + + + + + 9042:9042 + + + custom + sdc-network + sdc-cs + + + + + onap/sdc-cassandra-init:${it.docker.version} + sdc-cassandra-init + + + sdc-cassandra + + + ${project.version} + ${it.sdc.user} + ${it.sdc.password} + ${it.cassandra.password} + ${it.env.name} + + sdc-cs-init + + + ${it.chef.config}:/home/sdc/chef-solo/environments + + + + + SdcSchemaFileImport successfully completed + + + custom + sdc-network + sdc-cs-init + + + + + onap/sdc-onboard-cassandra-init:${it.docker.version} + sdc-cassandra-onboard-init + + + sdc-cassandra-init + + + ${project.version} + ${it.sdc.user} + ${it.sdc.password} + ${it.cassandra.password} + ${it.cassandra.port} + ${it.env.name} + sdc-cs + + sdc-cs-onboard-init + + + ${it.chef.config}:/home/sdc/chef-solo/environments + + + + + Initializing onboard schemas + + + custom + sdc-network + sdc-cs-onboard-init + + + + + onap/sdc-onboard-backend:${it.docker.version} + sdc-onboard-backend + + + sdc-cassandra-onboard-init + + + ${it.cassandra.ssl.enabled} + ${it.sdc.cluster.name} + ${it.sdc.user} + ${it.sdc.password} + ${it.env.name} + onap/cert + -Xmx1536m -Xms1536m + + sdc-onboard-BE + + + ${it.chef.config}:/var/lib/jetty/chef-solo/environments + + + + + + sdc-onboard-BE + direct + + 8445 + 8081 + + + + + 8445:8445 + 8081:8081 + + + custom + sdc-network + sdc-onboard-BE + + + + + onap/sdc-backend:${it.docker.version} + sdc-backend + + + sdc-onboard-backend + + + ${it.cassandra.ssl.enabled} + ${it.env.name} + -Xmx1536m -Xms1536m + + sdc-BE + + + ${it.chef.config}:/var/lib/jetty/chef-solo/environments + ${it.shared.volume}:/var/lib/jetty/logs + + + + + + sdc-BE + direct + + 8443 + 8080 + + + + + 8443:8443 + 8080:8080 + + + custom + sdc-network + sdc-BE + + + + + onap/sdc-backend-init:${it.docker.version} + sdc-backend-init + + + sdc-backend + + + ${it.env.name} + + sdc-BE-init + + + ${it.chef.config}:/home/onap/chef-solo/environments + ${it.shared.volume}:/var/lib/jetty/logs + + + + + Chef Client finished + + + custom + sdc-network + sdc-BE-init + + + + + onap/sdc-frontend:${it.docker.version} + sdc-frontend + + + sdc-backend-init + + + ${it.env.name} + -Xmx256m -Xms256m + + sdc-FE + + + ${it.chef.config}:/var/lib/jetty/chef-solo/environments + ${it.shared.volume}:/var/lib/jetty/logs + + sdc-os-chef/environments/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml + + + + + + + sdc-FE + direct + + 9443 + 8181 + + + + + 9443:9443 + 8181:8181 + + + custom + sdc-network + sdc-FE + + + + + + + + + docker-start-for-it + pre-integration-test + + start + + + + docker-stop-for-it + post-integration-test + + stop + + + + + + + + diff --git a/integration-tests/src/test/resources/integration-test.json b/integration-tests/src/test/resources/integration-test.json new file mode 100644 index 0000000000..dec9c2f042 --- /dev/null +++ b/integration-tests/src/test/resources/integration-test.json @@ -0,0 +1,104 @@ +{ + "name": "${it.env.name}", + "description": "OpenSource-${it.env.name}", + "json_class": "Chef::Environment", + "chef_type": "environment", + + "default_attributes": { + "disableHttp": false, + "CS_VIP": "sdc-cs", + "BE_VIP": "sdc-BE", + "ONBOARDING_BE_VIP": "sdc-onboard-BE", + "FE_VIP": "sdc-FE", + "DCAE_BE_VIP": "localhost", + "DCAE_FE_VIP": "localhost", + "DCAE_TOSCA_LAB_VIP": "localhost", + "interfaces": { + "application": "eth0", + "private": "eth1" + }, + "ECompP": { + "ecomp_rest_url": "http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi", + "ecomp_redirect_url": "http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/login.htm", + "cipher_key": "AGLDdG4D04BKm2IxIWEr8o==", + "portal_user": "Ipwxi2oLvDxctMA1royaRw1W0jhucLx+grHzci3ePIA=", + "portal_pass": "j85yNhyIs7zKYbR1VlwEfNhS6b7Om4l0Gx5O8931sCI=", + "portal_app_name": "Ipwxi2oLvDxctMA1royaRw1W0jhucLx+grHzci3ePIA=" + }, + "UEB": { + "PublicKey": "iPIxkpAMI8qTcQj8", + "SecretKey": "Ehq3WyT4bkif4zwgEbvshGal", + "fqdn": ["10.0.11.1", "10.0.11.1"] + }, + "Nodes": { + "CS": [ + "sdc-cs" + ], + "BE": "sdc-BE", + "ONBOARDING_BE": "sdc-onboard-BE", + "FE": "sdc-FE" + }, + "VnfRepo": { + "vnfRepoPort": "8702", + "vnfRepoHost": "10.0.14.1" + } + }, + "override_attributes": { + "FE": { + "http_port": "8181", + "https_port": "9443", + "domain_name": "sdc" + }, + "BE": { + "http_port": "8080", + "https_port": "8443", + "domain_name": "sdc" + }, + "ONBOARDING_BE": { + "http_port": "8081", + "https_port": "8445", + "domain_name": "sdc", + "catalog_notification_url": "%s://%s:%s/sdc2/rest/v1/catalog/notif/vsp/" + }, + "cassandra": { + "cassandra_port": 9042, + "concurrent_reads": "32", + "num_tokens": "256", + "data_dir": "/var/lib/cassandra/data", + "hinted_handoff_enabled": "true", + "cassandra_user": "${it.sdc.user}", + "cassandra_password": "${it.sdc.password}", + "concurrent_writes": "32", + "cluster_name": "${it.sdc.cluster.name}", + "datacenter_name": "${it.sdc.cluster.name}", + "multithreaded_compaction": "false", + "cache_dir": "/var/lib/cassandra/saved_caches", + "log_file": "/var/lib/cassandra/log/system.log", + "phi_convict_threshold": "8", + "commitlog_dir": "/var/lib/cassandra/commitlog", + "socket_read_timeout": "40000", + "socket_connect_timeout": "40000", + "janusgraph_connection_timeout": "20000", + "replication_factor": "1" + }, + "DMAAP": { + "consumer": { + "host": "dcae-mrtr.com:3905", + "topic": "operationalEnvironmentEvent", + "serviceName": "dcae-mrtr.com:3905/events", + "environment": "${it.env.name}", + "partner": "BOT_R", + "username": "user1@sdc.com", + "password": "password==" + }, + "producer": { + "host": "olsd004.com:3905", + "topic": "SDC-FACADE-NOTIF-v1 ", + "serviceName": "dmaap.com:3905/events", + "environment": "${it.env.name}", + "username": "user1@sdc.com", + "password": "password==" + } + } + } +} -- cgit 1.2.3-korg