From 61663b92910868a4de51c6fe9a7cef7da96da7e9 Mon Sep 17 00:00:00 2001 From: JulienBe Date: Thu, 3 Sep 2020 17:09:46 +0200 Subject: Optimize Build Optimize the log output Issue-ID: SDC-3232 Signed-off-by: JulienBe Change-Id: I50cfb7119b1e9087d3e2db56a81fe47df4ad6254 --- .../main/resources/ci/conf/attsdc-packages.yaml | 12 -- .../src/main/resources/ci/conf/attsdc.yaml | 101 --------- .../src/main/resources/ci/conf/credentials.yaml | 48 ----- .../src/main/resources/ci/conf/extent-config.xml | 50 ----- .../main/resources/ci/conf/janusgraph.properties | 11 - .../src/main/resources/ci/conf/log4j2.properties | 46 ----- test-apis-ci/src/main/resources/ci/conf/log4j2.xml | 13 -- .../src/main/resources/ci/conf/testngLifeCycle.xml | 9 - test-apis-ci/src/main/resources/ci/conf/truststore | Bin 971 -> 0 bytes .../resources/ci/scripts/addUsersFromList_new.sh | 80 -------- .../src/main/resources/ci/scripts/copyToStorage.sh | 71 ------- .../src/main/resources/ci/scripts/sendMail.sh | 46 ----- .../src/main/resources/ci/scripts/startTest.sh | 153 -------------- .../main/resources/ci/testSuites/CRUDArtifacts.xml | 42 ---- .../resources/ci/testSuites/ExternalApiSanity.xml | 68 ------ .../resources/ci/testSuites/SearchExternalAPI.xml | 23 --- .../src/main/resources/ci/testSuites/artifacts.xml | 11 - .../src/main/resources/ci/testSuites/cap_req.xml | 10 - .../src/main/resources/ci/testSuites/category.xml | 10 - .../src/main/resources/ci/testSuites/ciFull.xml | 117 ----------- .../main/resources/ci/testSuites/externalAPIs.xml | 33 --- .../src/main/resources/ci/testSuites/general.xml | 9 - .../src/main/resources/ci/testSuites/imports.xml | 9 - .../main/resources/ci/testSuites/normatives.xml | 25 --- .../main/resources/ci/testSuites/onapApiSanity.xml | 11 - .../src/main/resources/ci/testSuites/pass.xml | 18 -- .../src/main/resources/ci/testSuites/product.xml | 12 -- .../main/resources/ci/testSuites/productAPIs.xml | 15 -- .../src/main/resources/ci/testSuites/property.xml | 11 - .../src/main/resources/ci/testSuites/resource.xml | 123 ----------- .../src/main/resources/ci/testSuites/sanity.xml | 228 --------------------- .../src/main/resources/ci/testSuites/service.xml | 19 -- .../resources/ci/testSuites/testngLifeCycle.xml | 9 - .../src/main/resources/ci/testSuites/user.xml | 9 - test-apis-ci/src/main/resources/log4j2.properties | 36 ---- test-apis-ci/src/main/resources/log4j2.xml | 13 -- test-apis-ci/src/main/resources/logback.xml | 25 --- 37 files changed, 1526 deletions(-) delete mode 100644 test-apis-ci/src/main/resources/ci/conf/attsdc-packages.yaml delete mode 100644 test-apis-ci/src/main/resources/ci/conf/attsdc.yaml delete mode 100644 test-apis-ci/src/main/resources/ci/conf/credentials.yaml delete mode 100644 test-apis-ci/src/main/resources/ci/conf/extent-config.xml delete mode 100644 test-apis-ci/src/main/resources/ci/conf/janusgraph.properties delete mode 100644 test-apis-ci/src/main/resources/ci/conf/log4j2.properties delete mode 100644 test-apis-ci/src/main/resources/ci/conf/log4j2.xml delete mode 100644 test-apis-ci/src/main/resources/ci/conf/testngLifeCycle.xml delete mode 100644 test-apis-ci/src/main/resources/ci/conf/truststore delete mode 100644 test-apis-ci/src/main/resources/ci/scripts/addUsersFromList_new.sh delete mode 100644 test-apis-ci/src/main/resources/ci/scripts/copyToStorage.sh delete mode 100644 test-apis-ci/src/main/resources/ci/scripts/sendMail.sh delete mode 100644 test-apis-ci/src/main/resources/ci/scripts/startTest.sh delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/CRUDArtifacts.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/ExternalApiSanity.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/SearchExternalAPI.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/artifacts.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/cap_req.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/category.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/ciFull.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/externalAPIs.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/general.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/imports.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/normatives.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/onapApiSanity.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/pass.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/product.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/productAPIs.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/property.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/resource.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/sanity.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/service.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/testngLifeCycle.xml delete mode 100644 test-apis-ci/src/main/resources/ci/testSuites/user.xml delete mode 100644 test-apis-ci/src/main/resources/log4j2.properties delete mode 100644 test-apis-ci/src/main/resources/log4j2.xml delete mode 100644 test-apis-ci/src/main/resources/logback.xml (limited to 'test-apis-ci/src/main/resources') diff --git a/test-apis-ci/src/main/resources/ci/conf/attsdc-packages.yaml b/test-apis-ci/src/main/resources/ci/conf/attsdc-packages.yaml deleted file mode 100644 index 5d1a3e1537..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/attsdc-packages.yaml +++ /dev/null @@ -1,12 +0,0 @@ -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/test-apis-ci/src/main/resources/ci/conf/attsdc.yaml b/test-apis-ci/src/main/resources/ci/conf/attsdc.yaml deleted file mode 100644 index 4ef9ce4ccd..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/attsdc.yaml +++ /dev/null @@ -1,101 +0,0 @@ -outputFolder: target -reportName: index.html -catalogBeHost: 192.168.33.10 -catalogFeHost: fehost -#QA-SCRUM1 -#catalogBeHost: 135.21.125.97 -#catalogFeHost: 135.21.125.89 -#Automate -#catalogBeHost: 135.63.125.67 -#catalogFeHost: 135.63.125.63 -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/test-apis-ci/src/main/resources/ci/conf/credentials.yaml b/test-apis-ci/src/main/resources/ci/conf/credentials.yaml deleted file mode 100644 index 19dc605a1f..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/credentials.yaml +++ /dev/null @@ -1,48 +0,0 @@ - designer: { - username: cs0008, - password: 123123a, - firstname: SDC, - lastname: SDC2 - } - admin: { - username: jh0003, - password: 123123a, - firstname: SDC, - lastname: SDC2 - } - ops: { - username: af0006, - password: 123123a, - firstname: SDC, - lastname: SDC2 - } - tester: { - username: kb0004, - password: 123123a, - firstname: SDC, - lastname: SDC2 - } - governor: { - username: ah0002, - password: 123123a, - firstname: SDC, - lastname: SDC2 - } - product_strategist: { - username: m99126, - password: 1910-FruitGum, - firstname: SDC, - lastname: SDC2 - } - product_manager: { - username: m99127, - password: 747-Airplane, - firstname: SDC, - lastname: SDC2 - } - product_local: { - username: pm0001, - password: 123123a, - firstname: SDC, - lastname: SDC2 - } \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/conf/extent-config.xml b/test-apis-ci/src/main/resources/ci/conf/extent-config.xml deleted file mode 100644 index 4eb7f681aa..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/extent-config.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - 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/test-apis-ci/src/main/resources/ci/conf/janusgraph.properties b/test-apis-ci/src/main/resources/ci/conf/janusgraph.properties deleted file mode 100644 index ea498bb7da..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/janusgraph.properties +++ /dev/null @@ -1,11 +0,0 @@ -storage.backend=cql -storage.hostname=localhost -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/test-apis-ci/src/main/resources/ci/conf/log4j2.properties b/test-apis-ci/src/main/resources/ci/conf/log4j2.properties deleted file mode 100644 index a8944dba13..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/log4j2.properties +++ /dev/null @@ -1,46 +0,0 @@ -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/test-apis-ci/src/main/resources/ci/conf/log4j2.xml b/test-apis-ci/src/main/resources/ci/conf/log4j2.xml deleted file mode 100644 index 5295d45a47..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/log4j2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/conf/testngLifeCycle.xml b/test-apis-ci/src/main/resources/ci/conf/testngLifeCycle.xml deleted file mode 100644 index 6188116210..0000000000 --- a/test-apis-ci/src/main/resources/ci/conf/testngLifeCycle.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/conf/truststore b/test-apis-ci/src/main/resources/ci/conf/truststore deleted file mode 100644 index bdec93d862..0000000000 Binary files a/test-apis-ci/src/main/resources/ci/conf/truststore and /dev/null differ diff --git a/test-apis-ci/src/main/resources/ci/scripts/addUsersFromList_new.sh b/test-apis-ci/src/main/resources/ci/scripts/addUsersFromList_new.sh deleted file mode 100644 index e695db26b2..0000000000 --- a/test-apis-ci/src/main/resources/ci/scripts/addUsersFromList_new.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -function help_usage () -{ - echo "$0 -ip -f " - echo "for example: -ip 127.0.0.1 -f /var/tmp/userToAdd.txt" - exit -} - -function check_file_existance () -{ -echo "check_file_existance $1" -if [ $1 == "" ]; then - echo "Please provide full path to user file" - exit; -elif [ -f $1 ]; then - source $1 - USERS=("${USER_LIST[@]}") - echo "file exist" $1 -else - echo "Provided user file does not exist" - exit -fi -} - -function check_ip_existance () -{ -if [ $1 == "" ]; then - echo "Please provide ip address" - exit; -fi -} - -function addUser () -{ - #for user in "${USER_LIST[@]}"; do - for user in "${USERS[@]}"; do - PING=`ping -c 1 $IP > /var/tmp/ping.log` - pattern1='100% packet loss' - pattern2='Host Unreachable' - COUNT=`egrep -c "$pattern1|$pattern2" /var/tmp/ping.log` - if [ $COUNT -eq 0 ]; then - # curl -i -X post -d '{ "userId" : "kk1123", "role" : "ADMIN" }' -H "Content-Type: application/json" -H "USER_ID: jh0003" http://192.168.111.9:8080/sdc2/rest/v1/user - userId=`echo $user|awk '{print $1}'` - role=`echo $user|awk '{print $2}'` - firstName=`echo $user|awk '{print $3}'` - lastName=`echo $user|awk '{print $4}'` - email=`echo $user|awk '{print $5}'` - curl --noproxy '*' -i -X post -d '{ "userId" : "'${userId}'", "role" : "'${role}'", "firstName" : "'${firstName}'", "lastName" : "'${lastName}'", "email" : "'${email}'" }' -H "Content-Type: application/json" -H "USER_ID: jh0003" https://${IP}:8443/sdc2/rest/v1/user - else - echo "Host" $IP "Is Unreachable" - fi - done -curl --noproxy '*' -i -X post -d '{"consumerName": "ci","consumerSalt": "2a1f887d607d4515d4066fe0f5452a50","consumerPassword": "0a0dc557c3bf594b1a48030e3e99227580168b21f44e285c69740b8d5b13e33b"}' -H "Content-Type: application/json" -H "USER_ID: jh0003" -H "Authorization:Basic Y2k6MTIzNDU2" https://${IP}:8443/sdc2/rest/v1/consumers - -} - -#main -[ $# -eq 0 ] && help_usage -while [ $# -ne 0 ]; do - case $1 in - "-f") - USER_FILE=$2 - shift 1 - shift 1 - ;; - -ip) - IP=$2 - shift 1 - shift 1 - ;; - *) -# help_usage - ;; - esac -done - -check_file_existance $USER_FILE -check_ip_existance $IP -addUser diff --git a/test-apis-ci/src/main/resources/ci/scripts/copyToStorage.sh b/test-apis-ci/src/main/resources/ci/scripts/copyToStorage.sh deleted file mode 100644 index b7b8c09715..0000000000 --- a/test-apis-ci/src/main/resources/ci/scripts/copyToStorage.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -REPORT_NAME=$1 -VERSION=$2 -ENV=$3 - -if [ -z "$REPORT_NAME" ] - then - source ExtentReport/versions.info - now=$(date -d '+7 hour' "+%Y-%m-%d_%H_%M") - REPORT_NAME="${now}" - VERSION="${osVersion}" - if [[ $env == *"DEV20"* ]] - then - ENV="Nightly" - else - ENV="" - fi - - fi - -source conf/attInternal.info -IP=$automationResutlsRepo -PASS=$automationResutlsRepoPass - -echo ${IP} - -/usr/bin/expect << EOF -spawn ssh admin@${IP} mkdir -p -m 775 /home/admin/reports/${ENV}/${VERSION}/APIs/ - -expect { - -re ".*es.*o.*" { - exp_send "yes\r" - exp_continue - } - -re ".*sword.*" { - exp_send ${PASS}\r - } -} - -expect eof - -spawn scp -r ExtentReport admin@${IP}:/home/admin/reports/${ENV}/${VERSION}/APIs/${REPORT_NAME}/ - -expect { - -re ".*es.*o.*" { - exp_send "yes\r" - exp_continue - } - -re ".*sword.*" { - exp_send ${PASS}\r - } -} - -expect eof - -spawn ssh admin@${IP} chmod -R 775 /home/admin/reports/${ENV}/${VERSION}/APIs/${REPORT_NAME}/ - -expect { - -re ".*es.*o.*" { - exp_send "yes\r" - exp_continue - } - -re ".*sword.*" { - exp_send ${PASS}\r - } -} - -expect eof - -EOF diff --git a/test-apis-ci/src/main/resources/ci/scripts/sendMail.sh b/test-apis-ci/src/main/resources/ci/scripts/sendMail.sh deleted file mode 100644 index 979d091d00..0000000000 --- a/test-apis-ci/src/main/resources/ci/scripts/sendMail.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -now=$(date +'%Y%-m%d%H%M') - -REPORT_NAME=$1 -VERSION=$2 -ENV=$3 - -RECIPIENTS1="md9897@att.com,NETCOM_ASDC_DEV@att.com,IL-D2-QA-Alex@att.com,bs5719@att.com,yg356h@att.com,yr9970@att.com,sl615n@att.com,yn813h@att.com,as221v@att.com,ms172g@att.com,ma2244@att.com,el489u@att.com,gg980r@att.com,ak991p@att.com,bv095y@att.com,ms656r@att.com,df502y@att.com,bt750h@att.com,ln699k@att.com,hm104p@att.com" -#RECIPIENTS2="dl-asdcqa@intl.att.com" -RECIPIENTS2="md9897@att.com,NETCOM_ASDC_DEV@att.com,IL-D2-QA-Alex@att.com,bs5719@att.com,yg356h@att.com,yr9970@att.com,sl615n@att.com,yn813h@att.com,as221v@att.com,ms172g@att.com,ma2244@att.com,el489u@att.com,gg980r@att.com,ak991p@att.com,bv095y@att.com,ms656r@att.com,df502y@att.com,bt750h@att.com,ln699k@att.com,hm104p@att.com" -source ExtentReport/versions.info -if [ -z "$REPORT_NAME" ] - then - now=$(date -d '+7 hour' "+%Y-%m-%d_%H_%M") - REPORT_NAME="${now}" - VERSION="${osVersion}" -fi - -if [[ $env == *"DEV20"* ]] - then - ENV="Nightly" - RECIPIENTS=$RECIPIENTS1 - else - ENV="" - RECIPIENTS=$RECIPIENTS2 -fi - - -#REPORT_ZIP_FILE=ExtentReport_${now}.zip -REPORT_FOLDER='ExtentReport' -REPORT_HTML_FILE=${REPORT_FOLDER}/*Report.html -BODY_MESSAGE='Hello, \n\n Please find automation results on following link: \n\n http://asdc-srv-210-45.tlv.intl.att.com/'${ENV}'/'${VERSION}'/APIs/'${REPORT_NAME}'/SDC_CI_Extent_Report.html \n\nThanks, \nSDC QA Team\n\n ' - -#OLD_FILE=$(find ./ -type f -name ${REPORT_ZIP_FILE} -print) -#if [ ! -z ${OLD_FILE} ] -#then -# rm -f ${REPORT_ZIP_FILE} -# echo "Removing old zip file............" -#fi - -#echo "Creating new zip file" -#zip -r ${REPORT_ZIP_FILE} ./${REPORT_FOLDER} - - -echo -e ${BODY_MESSAGE} | mail -s 'External APIs Automation '$ENV' results - ASDC '$VERSION -r 'ASDC@Automation.team' $RECIPIENTS diff --git a/test-apis-ci/src/main/resources/ci/scripts/startTest.sh b/test-apis-ci/src/main/resources/ci/scripts/startTest.sh deleted file mode 100644 index f8285ef506..0000000000 --- a/test-apis-ci/src/main/resources/ci/scripts/startTest.sh +++ /dev/null @@ -1,153 +0,0 @@ -#!/bin/bash -REMOTE_DEBUG=false -RERUN=false -JAVA_OPTION="" -debug_port=8000 -TEST_SUITES=testSuites -fileName=testng-failed.xml - -function help_usage () -{ - echo - echo "$0 ( ) [-r/rerun -d/debug ]" - echo "nohup ./startTest.sh ui-ci-1707.0.5-SNAPSHOT-jar-with-dependencies.jar extendedSanity.xml -r false -d true &" - echo "by default rerun is true and remote debug is false." - echo - exit 2 -} - -function isBoolean () -{ - PARAM_NAME=$1 - VALUE=$2 - if [[ ${VALUE} != "true" ]] && [[ ${VALUE} != "false" ]]; then - echo "Valid parameter" ${PARAM_NAME} "values are: true/false" - help_usage - fi -} - -function prepareFailedXmlFile () -{ - echo "1="$1 "2="$2 "fileName="${fileName} - PATTERN=`grep -w "test name=" ${FULL_PATH}/${TEST_SUITES}/$2 | awk -F'"' '{print $2}'` - sed '/ ${FULL_PATH}/${TEST_SUITES}/${fileName} - sed -i 's/thread-count="[0-9]\+"/thread-count="1"/g' ${FULL_PATH}/${TEST_SUITES}/${fileName} -} - -#main -[ $# -lt 2 ] && help_usage - -JAR_FILE=$1 -SUITE_FILE=$2 - -while [ $# -ne 0 ]; do - case $1 in - -r|rerun) - RERUN=$2 - isBoolean $1 ${RERUN} - shift 1 - shift 1 - ;; - -d|debug) - REMOTE_DEBUG=$2 - isBoolean $1 ${REMOTE_DEBUG} - shift 1 - shift 1 - ;; - *) - shift 1 - ;; - esac -done - -CURRENT_DIR=`pwd` -BASEDIR=$(dirname $0) - -if [ ${BASEDIR:0:1} = "/" ] -then - FULL_PATH=$BASEDIR -else - FULL_PATH=$CURRENT_DIR/$BASEDIR -fi -LOGS_PROP_FILE=file:${FULL_PATH}/conf/log4j2.properties -############################################# -TARGET_DIR=${FULL_PATH}/target -CONF_FILE=${FULL_PATH}/conf/attsdc.yaml - -DEBUG=true -MainClass=org.openecomp.sdc.ci.tests.run.StartTest - -TESTS_DIR=/opt/app/sdc/ci/resources/tests -COMPONENTS_DIR=/opt/app/sdc/ci/resources/components - - -TARGET_LOG_DIR="${TARGET_DIR}/" - -######ADD USERS################ - -BE_IP=`cat conf/attsdc.yaml | grep catalogBeHost| awk '{print $2}'` - -ADD_USERS_SCRIPT="addUsersFromList_new.sh" -USER_LIST="conf/userList.txt" -chmod +x ${ADD_USERS_SCRIPT} -echo "add users..." -./${ADD_USERS_SCRIPT} -ip ${BE_IP} -f ${USER_LIST} - - - -if [ ${REMOTE_DEBUG} == "true" ]; then - echo "Debug mode, Listen on port $debug_port"; - JAVA_OPTION="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=${debug_port}" ; -fi - -cmd="java -Xmx2048m -Xms1024m $JAVA_OPTION -DdisplayException=true -Dtargetlog=${TARGET_LOG_DIR} -Dfilepath=${FILES_TEST} -Dconfig.resource=${CONF_FILE} -Ddebug=${DEBUG} -Dlog4j.configuration=${LOGS_PROP_FILE} -Dorg.freemarker.loggerLibrary=none -cp $JAR_FILE ${MainClass} $SUITE_FILE &" - - -if [ $DEBUG == "true" ] -then - $cmd -else - $cmd >> /dev/null -fi - -if [ ${RERUN} == "true" ]; then - if [ -f ${TARGET_DIR}/${fileName} ]; then - echo "Prepare" ${TARGET_DIR}/${fileName} "file to rerun all failed tests ..."; - prepareFailedXmlFile ${TARGET_DIR}/${fileName} $SUITE_FILE; - SUITE_FILE=${fileName}; - cmd="java -Xmx2048m -Xms1024m $JAVA_OPTION -DdisplayException=true -Dtargetlog=${TARGET_LOG_DIR} -Dfilepath=${FILES_TEST} -Dconfig.resource=${CONF_FILE} -Ddebug=${DEBUG} -Dlog4j.configuration=${LOGS_PROP_FILE} -Dorg.freemarker.loggerLibrary=none -cp $JAR_FILE ${MainClass} $SUITE_FILE &" - $cmd; - fi -fi - -status=`echo $?` - -source ExtentReport/versions.info -now=$(date +'%Y-%m-%d_%H_%M') -REPORT_NAME=${now} -VERSION=${osVersion} - -if [[ $env == *"DEV20"* ]] -then - MYENV="Nightly" -else - MYENV="" -fi - -COPY_REPORT_SCRIPT="copyToStorage.sh" -chmod +x ${COPY_REPORT_SCRIPT} -echo "copy report to storage..." -( ./${COPY_REPORT_SCRIPT} ${REPORT_NAME} ${VERSION} ${MYENV} ) - - -MAILING_SCRIPT_NAME="sendMail.sh" -chmod +x ${MAILING_SCRIPT_NAME} -echo "Sending report via mail..." -`./${MAILING_SCRIPT_NAME} ${REPORT_NAME} ${VERSION} ${MYENV}` - - -echo "##################################################" -echo "################# status is ${status} #################" -echo "##################################################" - -exit $status diff --git a/test-apis-ci/src/main/resources/ci/testSuites/CRUDArtifacts.xml b/test-apis-ci/src/main/resources/ci/testSuites/CRUDArtifacts.xml deleted file mode 100644 index 78c93723fa..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/CRUDArtifacts.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/ExternalApiSanity.xml b/test-apis-ci/src/main/resources/ci/testSuites/ExternalApiSanity.xml deleted file mode 100644 index 633054fb13..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/ExternalApiSanity.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/SearchExternalAPI.xml b/test-apis-ci/src/main/resources/ci/testSuites/SearchExternalAPI.xml deleted file mode 100644 index 40c462a4cb..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/SearchExternalAPI.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/artifacts.xml b/test-apis-ci/src/main/resources/ci/testSuites/artifacts.xml deleted file mode 100644 index 6a018ab0f0..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/artifacts.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/cap_req.xml b/test-apis-ci/src/main/resources/ci/testSuites/cap_req.xml deleted file mode 100644 index 4fefeaf679..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/cap_req.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/category.xml b/test-apis-ci/src/main/resources/ci/testSuites/category.xml deleted file mode 100644 index b6f64fc9e8..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/category.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/ciFull.xml b/test-apis-ci/src/main/resources/ci/testSuites/ciFull.xml deleted file mode 100644 index 35239c7ce1..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/ciFull.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/externalAPIs.xml b/test-apis-ci/src/main/resources/ci/testSuites/externalAPIs.xml deleted file mode 100644 index b83761833e..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/externalAPIs.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/general.xml b/test-apis-ci/src/main/resources/ci/testSuites/general.xml deleted file mode 100644 index 9b988d8b12..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/general.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/imports.xml b/test-apis-ci/src/main/resources/ci/testSuites/imports.xml deleted file mode 100644 index 3cf3b9833b..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/imports.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/normatives.xml b/test-apis-ci/src/main/resources/ci/testSuites/normatives.xml deleted file mode 100644 index 9676e8f398..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/normatives.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/onapApiSanity.xml b/test-apis-ci/src/main/resources/ci/testSuites/onapApiSanity.xml deleted file mode 100644 index 00f60cb68e..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/onapApiSanity.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/pass.xml b/test-apis-ci/src/main/resources/ci/testSuites/pass.xml deleted file mode 100644 index 02a314f8e9..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/pass.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/product.xml b/test-apis-ci/src/main/resources/ci/testSuites/product.xml deleted file mode 100644 index 72fb68b197..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/product.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/productAPIs.xml b/test-apis-ci/src/main/resources/ci/testSuites/productAPIs.xml deleted file mode 100644 index f3f7f912a1..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/productAPIs.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/property.xml b/test-apis-ci/src/main/resources/ci/testSuites/property.xml deleted file mode 100644 index 2b90f9b2f6..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/property.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/resource.xml b/test-apis-ci/src/main/resources/ci/testSuites/resource.xml deleted file mode 100644 index c9f5558449..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/resource.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/sanity.xml b/test-apis-ci/src/main/resources/ci/testSuites/sanity.xml deleted file mode 100644 index 5d21455530..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/sanity.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/ci/testSuites/service.xml b/test-apis-ci/src/main/resources/ci/testSuites/service.xml deleted file mode 100644 index 89f4819cc1..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/service.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/testngLifeCycle.xml b/test-apis-ci/src/main/resources/ci/testSuites/testngLifeCycle.xml deleted file mode 100644 index f65ef786e2..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/testngLifeCycle.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/ci/testSuites/user.xml b/test-apis-ci/src/main/resources/ci/testSuites/user.xml deleted file mode 100644 index b4a5b932fd..0000000000 --- a/test-apis-ci/src/main/resources/ci/testSuites/user.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/test-apis-ci/src/main/resources/log4j2.properties b/test-apis-ci/src/main/resources/log4j2.properties deleted file mode 100644 index 77acad8915..0000000000 --- a/test-apis-ci/src/main/resources/log4j2.properties +++ /dev/null @@ -1,36 +0,0 @@ -status = error -dest = err -name = PropertiesConfig - -property.filename = logs/ws-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 = logs/ws-%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 - -rootLogger.level = info -rootLogger.appenderRef.stdout.ref = STDOUT -rootLogger.appenderRef.rolling.ref = RollingFile \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/log4j2.xml b/test-apis-ci/src/main/resources/log4j2.xml deleted file mode 100644 index 97a07f95e0..0000000000 --- a/test-apis-ci/src/main/resources/log4j2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/test-apis-ci/src/main/resources/logback.xml b/test-apis-ci/src/main/resources/logback.xml deleted file mode 100644 index 4b5e23c776..0000000000 --- a/test-apis-ci/src/main/resources/logback.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - %d{yyyy-MM-dd HH:mm:ss} | %-5p | [%thread] %logger{5}:%L - %msg%n - - - - - logFile.log - true - - %d{yyyy-MM-dd HH:mm:ss} | %-5p | [%thread] %logger{5}:%L - %msg%n - - - - - - - - - - - \ No newline at end of file -- cgit 1.2.3-korg