From 785be29533a36baf02ae94269efa7dd0f26f650a Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 00:39:24 +0530 Subject: [PATCH 01/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 192 ++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 .github/workflows/e2e_acceptance_tests.yaml diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml new file mode 100644 index 000000000..06edf20a5 --- /dev/null +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -0,0 +1,192 @@ +name: "E2E Acceptance testing workflow" +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + delivery_stages: + + runs-on: [ E2E-test-linux ] + + steps: + + - name: unit testing + run: | + echo "unit testing stage" + - name: build + run: | + echo "build stage" + - name: pop + run: | + echo "Pop stage" + + + e2e_linux_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_tests_linux + run: | + pwd + ls -la + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=linux" >> /tmp/test.properties + echo "runner.os=linux" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + + e2e_mac_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_tests_mac + run: | + + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=macos" >> /tmp/test.properties + echo "runner.os=mac" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + e2e_windows_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_tests_windows + run: | + + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=Windows" >> /tmp/test.properties + echo "runner.os=Windows" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + post_e2e_executions: + + needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] + runs-on: [ E2E-test-linux ] + + steps: + + - name: publish + run: | + echo "publish stage" + From f2a2cfbf441309bdb5ba54ec54480256401431c7 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:16:44 +0530 Subject: [PATCH 02/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 356 ++++++++++++++++++-- 1 file changed, 337 insertions(+), 19 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 06edf20a5..5e04b62a6 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -24,7 +24,7 @@ jobs: echo "Pop stage" - e2e_linux_executions: + e2e_cnc_linux_executions: needs: delivery_stages runs-on: [ E2E-test-linux ] @@ -50,7 +50,7 @@ jobs: QA_GITHUB_TOKEN parse-json-secrets: true - - name: e2e_tests_linux + - name: e2e_cnc_tests_linux run: | pwd ls -la @@ -58,15 +58,15 @@ jobs: echo "product=integrations" >> /tmp/test.properties echo "product.name=integrations" >> /tmp/test.properties echo "scm=github" >> /tmp/test.properties - echo "runner=linux" >> /tmp/test.properties - echo "runner.os=linux" >> /tmp/test.properties + echo "runner=linux-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties echo "pipeline=true" >> /tmp/test.properties echo "cloud.storage=S3" >> /tmp/test.properties echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - name: Archive results if: always() @@ -76,7 +76,7 @@ jobs: path: test-output - e2e_mac_executions: + e2e_cnc_mac_executions: needs: delivery_stages runs-on: [ E2E-test-linux ] @@ -103,22 +103,22 @@ jobs: QA_GITHUB_TOKEN parse-json-secrets: true - - name: e2e_tests_mac + - name: e2e_cnc_tests_mac run: | echo "github.action.version=v1.11.0" >> /tmp/test.properties echo "product=integrations" >> /tmp/test.properties echo "product.name=integrations" >> /tmp/test.properties echo "scm=github" >> /tmp/test.properties - echo "runner=macos" >> /tmp/test.properties - echo "runner.os=mac" >> /tmp/test.properties + echo "runner=macos-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties echo "pipeline=true" >> /tmp/test.properties echo "cloud.storage=S3" >> /tmp/test.properties echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - name: Archive results @@ -128,7 +128,7 @@ jobs: name: test-output path: test-output - e2e_windows_executions: + e2e_cnc_windows_executions: needs: delivery_stages runs-on: [ E2E-test-linux ] @@ -155,22 +155,22 @@ jobs: QA_GITHUB_TOKEN parse-json-secrets: true - - name: e2e_tests_windows + - name: e2e_cnc_tests_windows run: | echo "github.action.version=v1.11.0" >> /tmp/test.properties echo "product=integrations" >> /tmp/test.properties echo "product.name=integrations" >> /tmp/test.properties echo "scm=github" >> /tmp/test.properties - echo "runner=Windows" >> /tmp/test.properties - echo "runner.os=Windows" >> /tmp/test.properties + echo "runner=windows-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties echo "pipeline=true" >> /tmp/test.properties echo "cloud.storage=S3" >> /tmp/test.properties echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - name: Archive results if: always() @@ -179,14 +179,332 @@ jobs: name: test-output path: test-output - post_e2e_executions: - needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] + ############## BD Tests ################ + + + e2e_bd_linux_executions: + + needs: delivery_stages runs-on: [ E2E-test-linux ] steps: - - name: publish + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_bd_tests_linux + run: | + pwd + ls -la + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=linux-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + + e2e_bd_mac_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_bd_tests_mac run: | - echo "publish stage" + + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=macos-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + e2e_bd_windows_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_bd_tests_windows + run: | + + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=windows-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + + ############## Pol Tests ################ + + + e2e_pol_linux_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_pol_tests_linux + run: | + pwd + ls -la + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=linux-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + + e2e_pol_mac_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_pol_tests_mac + run: | + + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=macos-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + e2e_pol_windows_executions: + + needs: delivery_stages + runs-on: [ E2E-test-linux ] + + steps: + + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk + + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_pol_tests_windows + run: | + + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=windows-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output + + # post_e2e_executions: + + # needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] + # runs-on: [ E2E-test-linux ] + + # steps: + + # - name: publish + # run: | + # echo "publish stage" From f355a5b76fbf81f0eb0d60e6664edaafcca07875 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:22:05 +0530 Subject: [PATCH 03/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 810 ++++++++++---------- 1 file changed, 405 insertions(+), 405 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 5e04b62a6..42db80c68 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -24,487 +24,487 @@ jobs: echo "Pop stage" - e2e_cnc_linux_executions: + # e2e_cnc_linux_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_cnc_tests_linux - run: | - pwd - ls -la - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=linux-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + # - name: e2e_cnc_tests_linux + # run: | + # pwd + # ls -la + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=linux-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_cnc_mac_executions: + # e2e_cnc_mac_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true - - - name: e2e_cnc_tests_mac - run: | + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true + + # - name: e2e_cnc_tests_mac + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=macos-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - - - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=macos-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + + + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_cnc_windows_executions: + # e2e_cnc_windows_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_cnc_tests_windows - run: | + # - name: e2e_cnc_tests_windows + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=windows-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=windows-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - ############## BD Tests ################ + # ############## BD Tests ################ - e2e_bd_linux_executions: + # e2e_bd_linux_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_bd_tests_linux - run: | - pwd - ls -la - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=linux-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + # - name: e2e_bd_tests_linux + # run: | + # pwd + # ls -la + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=linux-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_bd_mac_executions: + # e2e_bd_mac_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true - - - name: e2e_bd_tests_mac - run: | + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true + + # - name: e2e_bd_tests_mac + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=macos-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml - - - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=macos-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + + + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_bd_windows_executions: + # e2e_bd_windows_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_bd_tests_windows - run: | + # - name: e2e_bd_tests_windows + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=windows-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=windows-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - ############## Pol Tests ################ + # ############## Pol Tests ################ - e2e_pol_linux_executions: + # e2e_pol_linux_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_pol_tests_linux - run: | - pwd - ls -la - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=linux-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + # - name: e2e_pol_tests_linux + # run: | + # pwd + # ls -la + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=linux-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_pol_mac_executions: + # e2e_pol_mac_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true - - - name: e2e_pol_tests_mac - run: | + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true + + # - name: e2e_pol_tests_mac + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=macos-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml - - - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=macos-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + + + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_pol_windows_executions: + # e2e_pol_windows_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_pol_tests_windows - run: | + # - name: e2e_pol_tests_windows + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=windows-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=windows-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - # post_e2e_executions: + post_e2e_executions: - # needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] - # runs-on: [ E2E-test-linux ] + needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: publish - # run: | - # echo "publish stage" + - name: publish + run: | + echo "publish stage" From 8ee5e6db247945512b87aa8b32deee4c079ac5e4 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:23:20 +0530 Subject: [PATCH 04/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 42db80c68..c4b4cbe1d 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -497,14 +497,14 @@ jobs: # name: test-output # path: test-output - post_e2e_executions: + # post_e2e_executions: - needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] - runs-on: [ E2E-test-linux ] + # needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions] + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: publish - run: | - echo "publish stage" + # - name: publish + # run: | + # echo "publish stage" From a2c17a991a6a96becbad0c53ad356a4c63e77511 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:25:05 +0530 Subject: [PATCH 05/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 88 ++++++++++----------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index c4b4cbe1d..2ec4c2745 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -24,56 +24,56 @@ jobs: echo "Pop stage" - # e2e_cnc_linux_executions: + e2e_cnc_linux_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_cnc_tests_linux - # run: | - # pwd - # ls -la - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=linux-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + - name: e2e_cnc_tests_linux + run: | + pwd + ls -la + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=linux-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output # e2e_cnc_mac_executions: From ee2e179fa54216bf6671d382decd523928abba80 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:26:56 +0530 Subject: [PATCH 06/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 168 ++++++++++---------- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 2ec4c2745..20c08ac06 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -76,108 +76,108 @@ jobs: path: test-output - # e2e_cnc_mac_executions: + e2e_cnc_mac_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_cnc_tests_mac - # run: | + - name: e2e_cnc_tests_mac + run: | - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=macos-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=macos-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output - # e2e_cnc_windows_executions: + e2e_cnc_windows_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_cnc_tests_windows - # run: | + - name: e2e_cnc_tests_windows + run: | - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=windows-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=windows-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output # ############## BD Tests ################ From baeca20aebd8e42034f90a524a39051955ee4f3f Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:28:58 +0530 Subject: [PATCH 07/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 256 ++++++++++---------- 1 file changed, 128 insertions(+), 128 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 20c08ac06..842b45c62 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -183,160 +183,160 @@ jobs: # ############## BD Tests ################ - # e2e_bd_linux_executions: + e2e_bd_linux_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_bd_tests_linux - # run: | - # pwd - # ls -la - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=linux-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + - name: e2e_bd_tests_linux + run: | + pwd + ls -la + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=linux-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output - # e2e_bd_mac_executions: + e2e_bd_mac_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_bd_tests_mac - # run: | + - name: e2e_bd_tests_mac + run: | - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=macos-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=macos-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output - # e2e_bd_windows_executions: + e2e_bd_windows_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_bd_tests_windows - # run: | + - name: e2e_bd_tests_windows + run: | - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=windows-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=windows-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output # ############## Pol Tests ################ From c59b30fc95d7c6fe6528874099a96df5d961b45a Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Sun, 21 Jul 2024 01:31:35 +0530 Subject: [PATCH 08/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 264 ++++++++++---------- 1 file changed, 132 insertions(+), 132 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 842b45c62..b25fdc45c 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -342,160 +342,160 @@ jobs: # ############## Pol Tests ################ - # e2e_pol_linux_executions: + e2e_pol_linux_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_pol_tests_linux - # run: | - # pwd - # ls -la - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=linux-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + - name: e2e_pol_tests_linux + run: | + pwd + ls -la + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=linux-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output - # e2e_pol_mac_executions: + e2e_pol_mac_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true - - # - name: e2e_pol_tests_mac - # run: | + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true + + - name: e2e_pol_tests_mac + run: | - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=macos-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml - - - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=macos-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + + + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output - # e2e_pol_windows_executions: + e2e_pol_windows_executions: - # needs: delivery_stages - # runs-on: [ E2E-test-linux ] + needs: delivery_stages + runs-on: [ E2E-test-linux ] - # steps: + steps: - # - name: install - # run: | - # sudo apt-get update - # sudo apt-get install -qqy awscli jq openjdk-11-jdk + - name: install + run: | + sudo apt-get update + sudo apt-get install -qqy awscli jq openjdk-11-jdk - # - name: download e2e artifacts - # run: | - # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - # ls -al - # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - # ls -al - # pwd - - # - name: Extract secrets - # uses: aws-actions/aws-secretsmanager-get-secrets@v1 - # with: - # secret-ids: | - # QA_GITHUB_TOKEN - # parse-json-secrets: true + - name: download e2e artifacts + run: | + aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + ls -al + aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + ls -al + pwd + + - name: Extract secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: + secret-ids: | + QA_GITHUB_TOKEN + parse-json-secrets: true - # - name: e2e_pol_tests_windows - # run: | + - name: e2e_pol_tests_windows + run: | - # echo "github.action.version=v1.11.0" >> /tmp/test.properties - # echo "product=integrations" >> /tmp/test.properties - # echo "product.name=integrations" >> /tmp/test.properties - # echo "scm=github" >> /tmp/test.properties - # echo "runner=windows-x64" >> /tmp/test.properties - # echo "runner.os=x64" >> /tmp/test.properties - # echo "pipeline=true" >> /tmp/test.properties - # echo "cloud.storage=S3" >> /tmp/test.properties - # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - # pwd && ls -la - # cat /tmp/test.properties - # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + echo "github.action.version=v1.11.0" >> /tmp/test.properties + echo "product=integrations" >> /tmp/test.properties + echo "product.name=integrations" >> /tmp/test.properties + echo "scm=github" >> /tmp/test.properties + echo "runner=windows-x64" >> /tmp/test.properties + echo "runner.os=x64" >> /tmp/test.properties + echo "pipeline=true" >> /tmp/test.properties + echo "cloud.storage=S3" >> /tmp/test.properties + echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + pwd && ls -la + cat /tmp/test.properties + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml - # - name: Archive results - # if: always() - # uses: actions/upload-artifact@v3 - # with: - # name: test-output - # path: test-output + - name: Archive results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-output + path: test-output # post_e2e_executions: From 4e5157219adcb9284c2ae20f2fcc51231ed9d187 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Mon, 22 Jul 2024 12:21:18 +0530 Subject: [PATCH 09/11] Running acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index b25fdc45c..bbe25b828 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -66,7 +66,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-build-break-tests.xml - name: Archive results if: always() @@ -118,7 +118,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-build-break-tests.xml - name: Archive results @@ -170,7 +170,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-build-break-tests.xml - name: Archive results if: always() @@ -225,7 +225,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml - name: Archive results if: always() @@ -277,7 +277,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml - name: Archive results @@ -329,7 +329,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml - name: Archive results if: always() @@ -384,7 +384,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-sarif-reports-tests.xml - name: Archive results if: always() @@ -436,7 +436,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-sarif-reports-tests.xml - name: Archive results @@ -488,7 +488,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-sarif-reports-tests.xml - name: Archive results if: always() From 1ee78c9bd8af435eff715d0d44b61455d531da25 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Tue, 6 Aug 2024 09:41:49 +0530 Subject: [PATCH 10/11] Acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 539 ++++++++++---------- 1 file changed, 269 insertions(+), 270 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index bbe25b828..354760bd3 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -58,7 +58,7 @@ jobs: echo "product=integrations" >> /tmp/test.properties echo "product.name=integrations" >> /tmp/test.properties echo "scm=github" >> /tmp/test.properties - echo "runner=linux-x64" >> /tmp/test.properties + echo "runner=linux" >> /tmp/test.properties echo "runner.os=x64" >> /tmp/test.properties echo "pipeline=true" >> /tmp/test.properties echo "cloud.storage=S3" >> /tmp/test.properties @@ -66,7 +66,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-build-break-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/coverity_cnc/testng-coverity-cnc-acceptance-tests.xml - name: Archive results if: always() @@ -76,163 +76,163 @@ jobs: path: test-output - e2e_cnc_mac_executions: + # e2e_cnc_mac_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true - - - name: e2e_cnc_tests_mac - run: | + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true + + # - name: e2e_cnc_tests_mac + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=macos-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-build-break-tests.xml - - - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=macos" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/coverity_cnc/testng-coverity-cnc-acceptance-tests.xml + + + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_cnc_windows_executions: + # e2e_cnc_windows_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] - - steps: + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # steps: - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_cnc_tests_windows - run: | + # - name: e2e_cnc_tests_windows + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=windows-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-coverity-cnc-build-break-tests.xml + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=windows-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/coverity_cnc/testng-coverity-cnc-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output # ############## BD Tests ################ - e2e_bd_linux_executions: + # e2e_bd_linux_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_bd_tests_linux - run: | - pwd - ls -la - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=linux-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + # - name: e2e_bd_tests_linux + # run: | + # pwd + # ls -la + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=linux-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/blackduck/testng-blackduck-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output e2e_bd_mac_executions: @@ -269,7 +269,7 @@ jobs: echo "product=integrations" >> /tmp/test.properties echo "product.name=integrations" >> /tmp/test.properties echo "scm=github" >> /tmp/test.properties - echo "runner=macos-x64" >> /tmp/test.properties + echo "runner=macos" >> /tmp/test.properties echo "runner.os=x64" >> /tmp/test.properties echo "pipeline=true" >> /tmp/test.properties echo "cloud.storage=S3" >> /tmp/test.properties @@ -277,7 +277,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/blackduck/testng-blackduck-acceptance-tests.xml - name: Archive results @@ -287,164 +287,163 @@ jobs: name: test-output path: test-output - e2e_bd_windows_executions: + # e2e_bd_windows_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] - - steps: + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # steps: - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_bd_tests_windows - run: | + # - name: e2e_bd_tests_windows + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=windows-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-blackduck-build-break-tests.xml + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=windows-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/blackduck/testng-blackduck-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output # ############## Pol Tests ################ - e2e_pol_linux_executions: + # e2e_pol_linux_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true - - name: e2e_pol_tests_linux - run: | - pwd - ls -la - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=linux-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-sarif-reports-tests.xml + # - name: e2e_pol_tests_linux + # run: | + # pwd + # ls -la + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=linux-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/polaris/testng-polaris-acceptance-tests.xml - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output - e2e_pol_mac_executions: + # e2e_pol_mac_executions: - needs: delivery_stages - runs-on: [ E2E-test-linux ] + # needs: delivery_stages + # runs-on: [ E2E-test-linux ] - steps: + # steps: - - name: install - run: | - sudo apt-get update - sudo apt-get install -qqy awscli jq openjdk-11-jdk + # - name: install + # run: | + # sudo apt-get update + # sudo apt-get install -qqy awscli jq openjdk-11-jdk - - name: download e2e artifacts - run: | - aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress - ls -al - aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress - ls -al - pwd + # - name: download e2e artifacts + # run: | + # aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress + # ls -al + # aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress + # ls -al + # pwd - - name: Extract secrets - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: - secret-ids: | - QA_GITHUB_TOKEN - parse-json-secrets: true - - - name: e2e_pol_tests_mac - run: | + # - name: Extract secrets + # uses: aws-actions/aws-secretsmanager-get-secrets@v1 + # with: + # secret-ids: | + # QA_GITHUB_TOKEN + # parse-json-secrets: true + + # - name: e2e_pol_tests_mac + # run: | - echo "github.action.version=v1.11.0" >> /tmp/test.properties - echo "product=integrations" >> /tmp/test.properties - echo "product.name=integrations" >> /tmp/test.properties - echo "scm=github" >> /tmp/test.properties - echo "runner=macos-x64" >> /tmp/test.properties - echo "runner.os=x64" >> /tmp/test.properties - echo "pipeline=true" >> /tmp/test.properties - echo "cloud.storage=S3" >> /tmp/test.properties - echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties - chmod 755 test-integrations-0.0.1-SNAPSHOT.jar - pwd && ls -la - cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-sarif-reports-tests.xml - - - - name: Archive results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-output - path: test-output + # echo "github.action.version=v1.11.0" >> /tmp/test.properties + # echo "product=integrations" >> /tmp/test.properties + # echo "product.name=integrations" >> /tmp/test.properties + # echo "scm=github" >> /tmp/test.properties + # echo "runner=macos-x64" >> /tmp/test.properties + # echo "runner.os=x64" >> /tmp/test.properties + # echo "pipeline=true" >> /tmp/test.properties + # echo "cloud.storage=S3" >> /tmp/test.properties + # echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties + # chmod 755 test-integrations-0.0.1-SNAPSHOT.jar + # pwd && ls -la + # cat /tmp/test.properties + # java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/polaris/testng-polaris-acceptance-tests.xml + + # - name: Archive results + # if: always() + # uses: actions/upload-artifact@v3 + # with: + # name: test-output + # path: test-output e2e_pol_windows_executions: @@ -480,7 +479,7 @@ jobs: echo "product=integrations" >> /tmp/test.properties echo "product.name=integrations" >> /tmp/test.properties echo "scm=github" >> /tmp/test.properties - echo "runner=windows-x64" >> /tmp/test.properties + echo "runner=windows" >> /tmp/test.properties echo "runner.os=x64" >> /tmp/test.properties echo "pipeline=true" >> /tmp/test.properties echo "cloud.storage=S3" >> /tmp/test.properties @@ -488,7 +487,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/testng-polaris-sarif-reports-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/polaris/testng-polaris-acceptance-tests.xml - name: Archive results if: always() From 9887d45b59057c7d9169adce6421a4e8f4db4032 Mon Sep 17 00:00:00 2001 From: Madhusudhan Dnv Date: Wed, 7 Aug 2024 08:50:46 +0530 Subject: [PATCH 11/11] Running Acceptance tests --- .github/workflows/e2e_acceptance_tests.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e_acceptance_tests.yaml b/.github/workflows/e2e_acceptance_tests.yaml index 354760bd3..1ed9c6c4b 100644 --- a/.github/workflows/e2e_acceptance_tests.yaml +++ b/.github/workflows/e2e_acceptance_tests.yaml @@ -66,7 +66,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/coverity_cnc/testng-coverity-cnc-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/coverity_cnc/testng-coverity-cnc-acceptance-github-tests.xml - name: Archive results if: always() @@ -277,7 +277,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/blackduck/testng-blackduck-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/blackduck/testng-blackduck-acceptance-github-tests.xml - name: Archive results @@ -487,7 +487,7 @@ jobs: chmod 755 test-integrations-0.0.1-SNAPSHOT.jar pwd && ls -la cat /tmp/test.properties - java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/polaris/testng-polaris-acceptance-tests.xml + java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/acceptance/scm/polaris/testng-polaris-acceptance-github-tests.xml - name: Archive results if: always()