From b16794663103fe5716af7627e1d420bf4bbd1aa2 Mon Sep 17 00:00:00 2001 From: JulienBe Date: Wed, 19 Aug 2020 11:12:59 +0200 Subject: Add sdc startup in IT Move the Api tests code in the integration-test module, and remove the need to have a container Issue-ID: SDC-3232 Signed-off-by: sebdet Change-Id: Ia2b5d94d958e975867c600597ab5e56dffcd06ab Signed-off-by: JulienBe --- .../test/resources/ci/conf/attsdc-packages.yaml | 12 ++ .../src/test/resources/ci/conf/attsdc.yaml | 97 +++++++++ .../src/test/resources/ci/conf/credentials.yaml | 48 +++++ .../src/test/resources/ci/conf/extent-config.xml | 50 +++++ .../test/resources/ci/conf/janusgraph.properties | 11 + .../src/test/resources/ci/conf/log4j2.properties | 46 +++++ .../src/test/resources/ci/conf/log4j2.xml | 13 ++ .../src/test/resources/ci/conf/testngLifeCycle.xml | 9 + .../src/test/resources/ci/conf/truststore | Bin 0 -> 971 bytes .../test/resources/ci/testSuites/CRUDArtifacts.xml | 42 ++++ .../resources/ci/testSuites/ExternalApiSanity.xml | 68 ++++++ .../resources/ci/testSuites/SearchExternalAPI.xml | 23 +++ .../src/test/resources/ci/testSuites/artifacts.xml | 11 + .../src/test/resources/ci/testSuites/cap_req.xml | 10 + .../src/test/resources/ci/testSuites/category.xml | 10 + .../src/test/resources/ci/testSuites/ciFull.xml | 97 +++++++++ .../test/resources/ci/testSuites/externalAPIs.xml | 33 +++ .../src/test/resources/ci/testSuites/general.xml | 9 + .../src/test/resources/ci/testSuites/imports.xml | 9 + .../test/resources/ci/testSuites/normatives.xml | 25 +++ .../test/resources/ci/testSuites/onapApiSanity.xml | 11 + .../src/test/resources/ci/testSuites/pass.xml | 18 ++ .../src/test/resources/ci/testSuites/product.xml | 12 ++ .../test/resources/ci/testSuites/productAPIs.xml | 15 ++ .../src/test/resources/ci/testSuites/property.xml | 10 + .../src/test/resources/ci/testSuites/resource.xml | 123 +++++++++++ .../src/test/resources/ci/testSuites/sanity.xml | 228 +++++++++++++++++++++ .../src/test/resources/ci/testSuites/service.xml | 18 ++ .../resources/ci/testSuites/testngLifeCycle.xml | 9 + .../src/test/resources/ci/testSuites/user.xml | 9 + 30 files changed, 1076 insertions(+) create mode 100644 integration-tests/src/test/resources/ci/conf/attsdc-packages.yaml create mode 100644 integration-tests/src/test/resources/ci/conf/attsdc.yaml create mode 100644 integration-tests/src/test/resources/ci/conf/credentials.yaml create mode 100644 integration-tests/src/test/resources/ci/conf/extent-config.xml create mode 100644 integration-tests/src/test/resources/ci/conf/janusgraph.properties create mode 100644 integration-tests/src/test/resources/ci/conf/log4j2.properties create mode 100644 integration-tests/src/test/resources/ci/conf/log4j2.xml create mode 100644 integration-tests/src/test/resources/ci/conf/testngLifeCycle.xml create mode 100644 integration-tests/src/test/resources/ci/conf/truststore create mode 100644 integration-tests/src/test/resources/ci/testSuites/CRUDArtifacts.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/ExternalApiSanity.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/SearchExternalAPI.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/artifacts.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/cap_req.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/category.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/ciFull.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/externalAPIs.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/general.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/imports.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/normatives.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/onapApiSanity.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/pass.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/product.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/productAPIs.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/property.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/resource.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/sanity.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/service.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/testngLifeCycle.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/user.xml (limited to 'integration-tests/src/test/resources/ci') diff --git a/integration-tests/src/test/resources/ci/conf/attsdc-packages.yaml b/integration-tests/src/test/resources/ci/conf/attsdc-packages.yaml new file mode 100644 index 0000000000..5d1a3e1537 --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/attsdc-packages.yaml @@ -0,0 +1,12 @@ +packages: + - org.openecomp.sdc.ci.tests.execute.general + - org.openecomp.sdc.ci.tests.execute.user + - org.openecomp.sdc.ci.tests.execute.property + - org.openecomp.sdc.ci.tests.execute.lifecycle + - org.openecomp.sdc.ci.tests.execute.resource + - org.openecomp.sdc.ci.tests.execute.service + - org.openecomp.sdc.ci.tests.execute.artifacts + - org.openecomp.sdc.ci.tests.execute.imports + - org.openecomp.sdc.ci.tests.execute.category + - org.openecomp.sdc.ci.tests.execute.distribution + - org.openecomp.sdc.ci.tests.execute.product \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/conf/attsdc.yaml b/integration-tests/src/test/resources/ci/conf/attsdc.yaml new file mode 100644 index 0000000000..29357b28b2 --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/attsdc.yaml @@ -0,0 +1,97 @@ +outputFolder: target +reportName: index.html +catalogBeHost: 127.0.0.1 +catalogFeHost: 127.0.0.1 +onboardingBeHost: 127.0.0.1 +onboardingBePort: 8081 +esHost: eshost +disributionClientHost: disClient +catalogFePort: 8181 +catalogBePort: 8080 +disributionClientPort: 8181 +isDistributionClientRunning: true +esPort: 9200 +neoHost: neoHost +neoPort: 7474 +neoDBusername: neo4j +neoDBpassword: 123456 +windowsDownloadDirectory: "c:\\apache-ftpserver-1.1.0\\res\\home" +systemUnderDebug: false +resourceConfigDir: src/test/resources/CI/tests +componentsConfigDir: src/test/resources/CI/components +importResourceConfigDir: ../catalog-be/src/main/resources/import/tosca/capability-types +importResourceTestsConfigDir: src/test/resources/CI/importResourceTests +errorConfigurationFile: ../catalog-be/src/main/resources/config/error-configuration.yaml +configurationFile: ../catalog-be/src/main/resources/config/configuration.yaml +importTypesConfigDir: src/test/resources/CI/importTypesTest + + +janusGraphPropertiesFile: src/main/resources/ci/conf/janusgraph.properties +cassandraHost: 127.0.0.1 +cassandraAuthenticate: false +cassandraUsername: koko +cassandraPassword: bobo +cassandraSsl: false +cassandraTruststorePath : /path/path +cassandraTruststorePassword : 123123 +cassandraAuditKeySpace: sdcaudit +cassandraArtifactKeySpace: sdcartifact +url: http://localhost:8285/sdc1 + +sdcHttpMethod: http +localDataCenter: DC-Automate01 + +stopOnClassFailure: false + +#List of non-abstract resources to keep during janus graph cleanup between tests +#Only 1.0 version will be kept +resourcesNotToDelete: + - Compute + - Database + - ObjectStorage + - BlockStorage + - LoadBalancer + - Port + - Network + - Root + - ContainerApplication + - ContainerRuntime + - DBMS + - SoftwareComponent + - WebApplication + - WebServer + - CinderVolume + - ContrailVirtualNetwork + - NeutronNet + - NeutronPort + - NovaServer + - AbstractSubstitute + - ContrailAbstractSubstitute + - ContrailCompute + - ContrailNetworkRules + - ContrailPort + - ContrailV2NetworkRules + - ContrailV2VirtualMachineInterface + - ContrailV2VirtualNetwork + - ContrailVirtualNetwork + - VL ELINE + - SecurityRules + - VL + +#Resource categories to keep (including all their subcategories) +resourceCategoriesNotToDelete: + - Generic + - Network L2-3 + - Network L4+ + - Application L4+ + - Network Connectivity + - DCAE Component + - Template + - Allotted Resource + +#Service categories to keep +serviceCategoriesNotToDelete: + - Mobility + - Network L1-3 + - Network L4+ + - VoIP Call Control \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/conf/credentials.yaml b/integration-tests/src/test/resources/ci/conf/credentials.yaml new file mode 100644 index 0000000000..05f9a71c5c --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/credentials.yaml @@ -0,0 +1,48 @@ + designer: { + username: cs0008, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + admin: { + username: jh0003, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + ops: { + username: op0001, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + tester: { + username: jm0007, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + governor: { + username: gv0001, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + product_strategist: { + username: m99126, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + product_manager: { + username: m99127, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } + product_local: { + username: pm0001, + password: 123123a, + firstname: SDC, + lastname: SDC2 + } \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/conf/extent-config.xml b/integration-tests/src/test/resources/ci/conf/extent-config.xml new file mode 100644 index 0000000000..4eb7f681aa --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/extent-config.xml @@ -0,0 +1,50 @@ + + + + + + standard + + + + UTF-8 + + + + https + + + ASDC Automation Report + + + ASDC Automation Report + + + + + + + yyyy-MM-dd + + + + HH:mm:ss + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/conf/janusgraph.properties b/integration-tests/src/test/resources/ci/conf/janusgraph.properties new file mode 100644 index 0000000000..6cf8068bcd --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/janusgraph.properties @@ -0,0 +1,11 @@ +storage.backend=cql +storage.hostname=127.0.0.1 +storage.port=9042 + +cache.db-cache = false +cache.db-cache-clean-wait = 20 +cache.db-cache-time = 180000 +cache.db-cache-size = 0.5 + +cache.tx-cache-size = 500000 +storage.cql.keyspace=sdctitan diff --git a/integration-tests/src/test/resources/ci/conf/log4j2.properties b/integration-tests/src/test/resources/ci/conf/log4j2.properties new file mode 100644 index 0000000000..a8944dba13 --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/log4j2.properties @@ -0,0 +1,46 @@ +status = error +dest = err +name = PropertiesConfig + +property.filename = ${targetlog}logs/ci-log.out + +#filter.threshold.type = ThresholdFilter +#filter.threshold.level = debug + +appender.rolling.type = RollingFile +appender.rolling.name = RollingFile +appender.rolling.fileName = ${filename} +appender.rolling.filePattern = ${targetlog}logs/ci-%d{MM-dd-yy-HH-mm-ss}-%i.log.gz +appender.rolling.layout.type = PatternLayout +appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %5p [%10c] : %m%n +appender.rolling.policies.type = Policies +appender.rolling.policies.size.type = SizeBasedTriggeringPolicy +appender.rolling.policies.size.size=5MB +appender.rolling.strategy.type = DefaultRolloverStrategy +appender.rolling.strategy.max = 10 + +appender.console.type = Console +appender.console.name = STDOUT +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %5p %10c:%L - %m%n +appender.console.filter.threshold.type = ThresholdFilter +appender.console.filter.threshold.level = info + +logger.rolling.name = RollingAppender +logger.rolling.level = info +logger.rolling.additivity = false +logger.rolling.appenderRef.rolling.ref = RollingFile + +logger.org.apache.cassandra.service.StorageProxy.level=info +logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.level =info +logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.appendRef.rolling.ref = RollingFile +logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.appendRef.stdout.ref = STDOUT + +logger.org.openecomp.sdc.ci.tests.utils.level = info +logger.org.openecomp.sdc.ci.tests.utils.appendRef.rolling.ref = RollingFile +logger.org.openecomp.sdc.ci.tests.utils.appendRef.stdout.ref = STDOUT +logger.org.openecomp.sdc.ci.tests.utils.additivity = false + +rootLogger.level = info +rootLogger.appenderRef.stdout.ref = STDOUT +rootLogger.appenderRef.rolling.ref = RollingFile diff --git a/integration-tests/src/test/resources/ci/conf/log4j2.xml b/integration-tests/src/test/resources/ci/conf/log4j2.xml new file mode 100644 index 0000000000..5295d45a47 --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/log4j2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/conf/testngLifeCycle.xml b/integration-tests/src/test/resources/ci/conf/testngLifeCycle.xml new file mode 100644 index 0000000000..005bdba0f3 --- /dev/null +++ b/integration-tests/src/test/resources/ci/conf/testngLifeCycle.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/conf/truststore b/integration-tests/src/test/resources/ci/conf/truststore new file mode 100644 index 0000000000..bdec93d862 Binary files /dev/null and b/integration-tests/src/test/resources/ci/conf/truststore differ diff --git a/integration-tests/src/test/resources/ci/testSuites/CRUDArtifacts.xml b/integration-tests/src/test/resources/ci/testSuites/CRUDArtifacts.xml new file mode 100644 index 0000000000..923777542c --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/CRUDArtifacts.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/ExternalApiSanity.xml b/integration-tests/src/test/resources/ci/testSuites/ExternalApiSanity.xml new file mode 100644 index 0000000000..02594526cb --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/ExternalApiSanity.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/SearchExternalAPI.xml b/integration-tests/src/test/resources/ci/testSuites/SearchExternalAPI.xml new file mode 100644 index 0000000000..8d21be4381 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/SearchExternalAPI.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/artifacts.xml b/integration-tests/src/test/resources/ci/testSuites/artifacts.xml new file mode 100644 index 0000000000..1352e75d58 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/artifacts.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/cap_req.xml b/integration-tests/src/test/resources/ci/testSuites/cap_req.xml new file mode 100644 index 0000000000..8298af2da5 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/cap_req.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/category.xml b/integration-tests/src/test/resources/ci/testSuites/category.xml new file mode 100644 index 0000000000..3de83431e8 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/category.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/ciFull.xml b/integration-tests/src/test/resources/ci/testSuites/ciFull.xml new file mode 100644 index 0000000000..7a9558ed7a --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/ciFull.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/externalAPIs.xml b/integration-tests/src/test/resources/ci/testSuites/externalAPIs.xml new file mode 100644 index 0000000000..7c9d6d9d9c --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/externalAPIs.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/general.xml b/integration-tests/src/test/resources/ci/testSuites/general.xml new file mode 100644 index 0000000000..a63f36423e --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/general.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/imports.xml b/integration-tests/src/test/resources/ci/testSuites/imports.xml new file mode 100644 index 0000000000..b9374cf47a --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/imports.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/normatives.xml b/integration-tests/src/test/resources/ci/testSuites/normatives.xml new file mode 100644 index 0000000000..02da714578 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/normatives.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/onapApiSanity.xml b/integration-tests/src/test/resources/ci/testSuites/onapApiSanity.xml new file mode 100644 index 0000000000..9fcd043cd3 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/onapApiSanity.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/pass.xml b/integration-tests/src/test/resources/ci/testSuites/pass.xml new file mode 100644 index 0000000000..731d73675c --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/pass.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/product.xml b/integration-tests/src/test/resources/ci/testSuites/product.xml new file mode 100644 index 0000000000..101b94a6bb --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/product.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/productAPIs.xml b/integration-tests/src/test/resources/ci/testSuites/productAPIs.xml new file mode 100644 index 0000000000..df9aa9f152 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/productAPIs.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/property.xml b/integration-tests/src/test/resources/ci/testSuites/property.xml new file mode 100644 index 0000000000..b7dba95f16 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/property.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/resource.xml b/integration-tests/src/test/resources/ci/testSuites/resource.xml new file mode 100644 index 0000000000..4fd0e43a02 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/resource.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/sanity.xml b/integration-tests/src/test/resources/ci/testSuites/sanity.xml new file mode 100644 index 0000000000..320c3ccd43 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/sanity.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/src/test/resources/ci/testSuites/service.xml b/integration-tests/src/test/resources/ci/testSuites/service.xml new file mode 100644 index 0000000000..9c662764ea --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/service.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/testngLifeCycle.xml b/integration-tests/src/test/resources/ci/testSuites/testngLifeCycle.xml new file mode 100644 index 0000000000..7f1cba4d9c --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/testngLifeCycle.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/user.xml b/integration-tests/src/test/resources/ci/testSuites/user.xml new file mode 100644 index 0000000000..3ab1f971fb --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/user.xml @@ -0,0 +1,9 @@ + + + + + + + + + -- cgit 1.2.3-korg