summaryrefslogtreecommitdiffstats
path: root/integration-tests/src/test/resources/ci/conf
diff options
context:
space:
mode:
authorJulienBe <julien.bertozzi@intl.att.com>2020-08-19 11:12:59 +0200
committerSébastien Determe <sebastien.determe@intl.att.com>2020-08-22 20:22:02 +0000
commitb16794663103fe5716af7627e1d420bf4bbd1aa2 (patch)
tree9d2050a6096a708f87e4e31b2eac399b965b9e5b /integration-tests/src/test/resources/ci/conf
parent056998c45c0f1e320a0adb1cb23318b6435ac11a (diff)
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 <sebastien.determe@intl.att.com> Change-Id: Ia2b5d94d958e975867c600597ab5e56dffcd06ab Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
Diffstat (limited to 'integration-tests/src/test/resources/ci/conf')
-rw-r--r--integration-tests/src/test/resources/ci/conf/attsdc-packages.yaml12
-rw-r--r--integration-tests/src/test/resources/ci/conf/attsdc.yaml97
-rw-r--r--integration-tests/src/test/resources/ci/conf/credentials.yaml48
-rw-r--r--integration-tests/src/test/resources/ci/conf/extent-config.xml50
-rw-r--r--integration-tests/src/test/resources/ci/conf/janusgraph.properties11
-rw-r--r--integration-tests/src/test/resources/ci/conf/log4j2.properties46
-rw-r--r--integration-tests/src/test/resources/ci/conf/log4j2.xml13
-rw-r--r--integration-tests/src/test/resources/ci/conf/testngLifeCycle.xml9
-rw-r--r--integration-tests/src/test/resources/ci/conf/truststorebin0 -> 971 bytes
9 files changed, 286 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<extentreports>
+ <configuration>
+ <!-- report theme -->
+ <!-- standard, dark -->
+ <theme>standard</theme>
+
+ <!-- document encoding -->
+ <!-- defaults to UTF-8 -->
+ <encoding>UTF-8</encoding>
+
+ <!-- protocol for script and stylesheets -->
+ <!-- defaults to https -->
+ <protocol>https</protocol>
+
+ <!-- title of the document -->
+ <documentTitle>ASDC Automation Report</documentTitle>
+
+ <!-- report name - displayed at top-nav -->
+ <reportName> ASDC Automation Report </reportName>
+
+ <!-- report headline - displayed at top-nav, after reportHeadline -->
+ <reportHeadline></reportHeadline>
+
+ <!-- global date format override -->
+ <!-- defaults to yyyy-MM-dd -->
+ <dateFormat>yyyy-MM-dd</dateFormat>
+
+ <!-- global time format override -->
+ <!-- defaults to HH:mm:ss -->
+ <timeFormat>HH:mm:ss</timeFormat>
+
+ <!-- custom javascript -->
+ <scripts>
+ <![CDATA[
+ $(document).ready(function() {
+ $('.logo-content' ).remove();
+ $('.charts div:nth-child(2)').remove();
+ });
+ ]]>
+ </scripts>
+
+ <!-- custom styles -->
+ <styles>
+ <![CDATA[
+ .report-name {padding-top: 1px; font-size: 15px; font-weight: bold;}
+ ]]>
+ </styles>
+ </configuration>
+</extentreports> \ 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="ERROR">
+ <Appenders>
+ <File name="fileAppender" fileName="logfile.log" append="false">
+ <PatternLayout pattern="%d %-5p [%c{1}] %m %n"/>
+ </File>
+ </Appenders>
+ <Loggers>
+ <Root level="info">
+ <AppenderRef ref="fileAppender"/>
+ </Root>
+ </Loggers>
+</Configuration> \ 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+<suite name="lifeCycle" parallel="none">
+ <test name="Test">
+ <classes>
+ <class name="org.openecomp.sdc.ci.tests.execute.lifecycle.LCSbaseTest"/>
+ </classes>
+ </test> <!-- Test -->
+</suite> <!-- lifeCycle -->
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
--- /dev/null
+++ b/integration-tests/src/test/resources/ci/conf/truststore
Binary files differ