mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
ACS-9745-removed-reportPortal-integration (#3383)
This commit is contained in:
629
.github/workflows/ci.yml
vendored
629
.github/workflows/ci.yml
vendored
@@ -29,9 +29,6 @@ env:
|
|||||||
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_OIDC_ADMIN_CLIENT_ID }}
|
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_OIDC_ADMIN_CLIENT_ID }}
|
||||||
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_OIDC_CLIENT_SECRET }}
|
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_OIDC_CLIENT_SECRET }}
|
||||||
AUTH0_ADMIN_PASSWORD: ${{ secrets.AUTH0_OIDC_ADMIN_PASSWORD }}
|
AUTH0_ADMIN_PASSWORD: ${{ secrets.AUTH0_OIDC_ADMIN_PASSWORD }}
|
||||||
# Report Portal settings
|
|
||||||
RP_LAUNCH_PREFIX: "${{ github.workflow }} - ${{ github.job }}"
|
|
||||||
RP_PROJECT: alfresco-backend
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
@@ -182,52 +179,9 @@ jobs:
|
|||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||||
- name: "Init"
|
- name: "Init"
|
||||||
run: bash ./scripts/ci/init.sh
|
run: bash ./scripts/ci/init.sh
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} - ${{ matrix.testModule }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
run: |
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl ${{ matrix.testModule }} -am ${{ matrix.testAttributes }} -DfailIfNoTests=false "${args[@]}"
|
mvn -B test -pl ${{ matrix.testModule }} -am ${{ matrix.testAttributes }} -DfailIfNoTests=false "${args[@]}"
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -270,52 +224,8 @@ jobs:
|
|||||||
- name: "Set up the environment"
|
- name: "Set up the environment"
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile ${{ matrix.compose-profile }} up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile ${{ matrix.compose-profile }} up -d
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} - ${{ matrix.testSuite }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl remote-api -Dtest=${{ matrix.testSuite }} -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl remote-api -Dtest=${{ matrix.testSuite }} -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -345,52 +255,8 @@ jobs:
|
|||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
|
||||||
env:
|
env:
|
||||||
MARIADB_VERSION: ${{ matrix.version }}
|
MARIADB_VERSION: ${{ matrix.version }}
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} - ${{ matrix.version }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -416,52 +282,8 @@ jobs:
|
|||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
|
||||||
env:
|
env:
|
||||||
MARIADB_VERSION: 10.11
|
MARIADB_VERSION: 10.11
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -487,52 +309,8 @@ jobs:
|
|||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d
|
||||||
env:
|
env:
|
||||||
MYSQL_VERSION: 8
|
MYSQL_VERSION: 8
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.cj.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -557,52 +335,8 @@ jobs:
|
|||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
||||||
env:
|
env:
|
||||||
POSTGRES_VERSION: 14.15
|
POSTGRES_VERSION: 14.15
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -627,52 +361,8 @@ jobs:
|
|||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
||||||
env:
|
env:
|
||||||
POSTGRES_VERSION: 15.10
|
POSTGRES_VERSION: 15.10
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -697,52 +387,8 @@ jobs:
|
|||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
||||||
env:
|
env:
|
||||||
POSTGRES_VERSION: 16.6
|
POSTGRES_VERSION: 16.6
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -763,52 +409,8 @@ jobs:
|
|||||||
run: bash ./scripts/ci/init.sh
|
run: bash ./scripts/ci/init.sh
|
||||||
- name: "Run ActiveMQ"
|
- name: "Run ActiveMQ"
|
||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile activemq up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile activemq up -d
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=CamelRoutesTest,CamelComponentsTest -DfailIfNoTests=false # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=MessagingUnitTestSuite -DfailIfNoTests=false "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -879,52 +481,8 @@ jobs:
|
|||||||
- name: "Set up the environment"
|
- name: "Set up the environment"
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile ${{ matrix.compose-profile }} up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile ${{ matrix.compose-profile }} up -d
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} - ${{ matrix.testSuite }} ${{ matrix.idp }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl repository -am -Dtest=${{ matrix.testSuite }} -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco ${{ matrix.mvn-options }} # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl repository -am -Dtest=${{ matrix.testSuite }} -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco ${{ matrix.mvn-options }} "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -986,59 +544,16 @@ jobs:
|
|||||||
- name: "Build TAS integration tests"
|
- name: "Build TAS integration tests"
|
||||||
if: ${{ matrix.test-name }} == 'Integration TAS tests'
|
if: ${{ matrix.test-name }} == 'Integration TAS tests'
|
||||||
run: mvn install -pl :alfresco-community-repo-integration-test -am -DskipTests -Pall-tas-tests
|
run: mvn install -pl :alfresco-community-repo-integration-test -am -DskipTests -Pall-tas-tests
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} - ${{ matrix.test-name }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: tests
|
id: tests
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
run: |
|
run: mvn -B verify -f packaging/tests/${{ matrix.pom-dir }}/pom.xml -Pall-tas-tests,${{ matrix.test-profile }} -Denvironment=default -DrunBugs=false
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B verify -f packaging/tests/${{ matrix.pom-dir }}/pom.xml -Pall-tas-tests,${{ matrix.test-profile }} -Denvironment=default -DrunBugs=false "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Print output after success"
|
- name: "Print output after success"
|
||||||
if: ${{ always() && steps.tests.outcome == 'success' }}
|
if: ${{ always() && steps.tests.outcome == 'success' }}
|
||||||
run: ${TAS_SCRIPTS}/output_tests_run.sh "packaging/tests/${{ matrix.pom-dir }}"
|
run: ${TAS_SCRIPTS}/output_tests_run.sh "packaging/tests/${{ matrix.pom-dir }}"
|
||||||
- name: "Print output after failure"
|
- name: "Print output after failure"
|
||||||
if: ${{ always() && steps.tests.outcome == 'failure' }}
|
if: ${{ always() && steps.tests.outcome == 'failure' }}
|
||||||
run: ${TAS_SCRIPTS}/output_logs_for_failures.sh "packaging/tests/${{ matrix.pom-dir }}"
|
run: ${TAS_SCRIPTS}/output_logs_for_failures.sh "packaging/tests/${{ matrix.pom-dir }}"
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -1059,52 +574,8 @@ jobs:
|
|||||||
run: bash ./scripts/ci/init.sh
|
run: bash ./scripts/ci/init.sh
|
||||||
- name: "Run Postgres 16.6 database"
|
- name: "Run Postgres 16.6 database"
|
||||||
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile postgres up -d
|
run: docker compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile postgres up -d
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
id: run-tests
|
run: mvn -B test -pl :alfresco-share-services -am -Dtest=ShareServicesTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco # pragma: allowlist secret
|
||||||
env:
|
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl :alfresco-share-services -am -Dtest=ShareServicesTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -1134,23 +605,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
bash ./scripts/ci/init.sh
|
bash ./scripts/ci/init.sh
|
||||||
bash ./scripts/ci/build.sh
|
bash ./scripts/ci/build.sh
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} 0${{ matrix.part }} - (PostgreSQL) ${{ matrix.test-name }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Verify"
|
- name: "Verify"
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
env:
|
run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-postgres -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }}
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-postgres -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }} "${args[@]}"
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -1180,23 +637,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
bash ./scripts/ci/init.sh
|
bash ./scripts/ci/init.sh
|
||||||
bash ./scripts/ci/build.sh
|
bash ./scripts/ci/build.sh
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }} 0${{ matrix.part }} - (MySQL) ${{ matrix.test-name }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Verify"
|
- name: "Verify"
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
env:
|
run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-mysql -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }}
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-mysql -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }} "${args[@]}"
|
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
@@ -1228,53 +671,9 @@ jobs:
|
|||||||
${{ env.TAS_SCRIPTS }}/start-compose.sh ./amps/ags/rm-community/rm-community-repo/docker-compose.yml
|
${{ env.TAS_SCRIPTS }}/start-compose.sh ./amps/ags/rm-community/rm-community-repo/docker-compose.yml
|
||||||
${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco"
|
${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco"
|
||||||
mvn -B install -pl :alfresco-governance-services-automation-community-rest-api -am -Pags -Pall-tas-tests -DskipTests
|
mvn -B install -pl :alfresco-governance-services-automation-community-rest-api -am -Pags -Pall-tas-tests -DskipTests
|
||||||
- name: "Prepare Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-prepare@v8.16.0
|
|
||||||
id: rp-prepare
|
|
||||||
with:
|
|
||||||
rp-launch-prefix: ${{ env.RP_LAUNCH_PREFIX }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-use-static-launch-name: true
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Add GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
env:
|
|
||||||
RP_ENABLED: ${{ steps.rp-prepare.outputs.enabled }}
|
|
||||||
RP_KEY: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
RP_URL: ${{ steps.rp-prepare.outputs.url }}
|
|
||||||
run: bash scripts/ci/add_step_summary.sh
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Test"
|
- name: "Test"
|
||||||
id: run-tests
|
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
env:
|
run: mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false -Pags -Pall-tas-tests
|
||||||
RP_OPTS: ${{ github.ref_name == 'master' && steps.rp-prepare.outputs.mvn-opts || '' }}
|
|
||||||
run: |
|
|
||||||
eval "args=($RP_OPTS)"
|
|
||||||
mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false -Pags -Pall-tas-tests "${args[@]}"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Update GitHub Step Summary"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
run: |
|
|
||||||
echo "#### ⏱ After Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Summarize Report Portal"
|
|
||||||
if: github.ref_name == 'master'
|
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/reportportal-summarize@v8.16.0
|
|
||||||
id: rp-summarize
|
|
||||||
with:
|
|
||||||
tests-outcome: ${{ steps.run-tests.outcome }}
|
|
||||||
rp-launch-key: ${{ steps.rp-prepare.outputs.key }}
|
|
||||||
rp-project: ${{ env.RP_PROJECT }}
|
|
||||||
rp-token: ${{ secrets.REPORT_PORTAL_TOKEN }}
|
|
||||||
continue-on-error: true
|
|
||||||
- name: "Exit on failure"
|
|
||||||
if: steps.run-tests.outcome != 'success'
|
|
||||||
run: |
|
|
||||||
echo "::error title=run-tests::Tests failed: re-throwing on error."
|
|
||||||
exit 1
|
|
||||||
- name: "Configure AWS credentials"
|
- name: "Configure AWS credentials"
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
|
@@ -127,29 +127,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"results": {
|
"results": {
|
||||||
".github/workflows/ci.yml": [
|
|
||||||
{
|
|
||||||
"type": "Secret Keyword",
|
|
||||||
"filename": ".github/workflows/ci.yml",
|
|
||||||
"hashed_secret": "b86dc2f033a63f2b7b9e7d270ab806d2910d7572",
|
|
||||||
"is_verified": false,
|
|
||||||
"line_number": 295
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Secret Keyword",
|
|
||||||
"filename": ".github/workflows/ci.yml",
|
|
||||||
"hashed_secret": "1bfb0e20f886150ba59b853bcd49dea893e00966",
|
|
||||||
"is_verified": false,
|
|
||||||
"line_number": 370
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Secret Keyword",
|
|
||||||
"filename": ".github/workflows/ci.yml",
|
|
||||||
"hashed_secret": "128f14373ccfaff49e3664045d3a11b50cbb7b39",
|
|
||||||
"is_verified": false,
|
|
||||||
"line_number": 904
|
|
||||||
}
|
|
||||||
],
|
|
||||||
".github/workflows/master_release.yml": [
|
".github/workflows/master_release.yml": [
|
||||||
{
|
{
|
||||||
"type": "Secret Keyword",
|
"type": "Secret Keyword",
|
||||||
@@ -1868,5 +1845,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"generated_at": "2025-04-22T06:32:47Z"
|
"generated_at": "2025-06-09T16:43:14Z"
|
||||||
}
|
}
|
||||||
|
@@ -74,16 +74,6 @@
|
|||||||
<artifactId>alfresco-testng</artifactId>
|
<artifactId>alfresco-testng</artifactId>
|
||||||
<version>1.1</version>
|
<version>1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.awaitility</groupId>
|
<groupId>org.awaitility</groupId>
|
||||||
<artifactId>awaitility</artifactId>
|
<artifactId>awaitility</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -84,11 +84,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.postgresql</groupId>
|
<groupId>org.postgresql</groupId>
|
||||||
<artifactId>postgresql</artifactId>
|
<artifactId>postgresql</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -70,11 +70,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.postgresql</groupId>
|
<groupId>org.postgresql</groupId>
|
||||||
<artifactId>postgresql</artifactId>
|
<artifactId>postgresql</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -126,11 +126,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -247,11 +247,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.antlr</groupId>
|
<groupId>org.antlr</groupId>
|
||||||
<artifactId>gunit</artifactId>
|
<artifactId>gunit</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -46,11 +46,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -68,16 +68,6 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -36,11 +36,6 @@
|
|||||||
<artifactId>jakarta.mail-api</artifactId>
|
<artifactId>jakarta.mail-api</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -44,18 +44,6 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.sun.mail</groupId>
|
<groupId>com.sun.mail</groupId>
|
||||||
<artifactId>jakarta.mail</artifactId>
|
<artifactId>jakarta.mail</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -79,18 +79,6 @@
|
|||||||
<version>${commons-lang3.version}</version>
|
<version>${commons-lang3.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.awaitility</groupId>
|
<groupId>org.awaitility</groupId>
|
||||||
<artifactId>awaitility</artifactId>
|
<artifactId>awaitility</artifactId>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -31,11 +31,6 @@
|
|||||||
<artifactId>webdav</artifactId>
|
<artifactId>webdav</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
12
pom.xml
12
pom.xml
@@ -828,18 +828,6 @@
|
|||||||
<version>4.13.2</version>
|
<version>4.13.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<version>5.4.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<version>4.12.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.antlr</groupId>
|
<groupId>org.antlr</groupId>
|
||||||
<artifactId>gunit</artifactId>
|
<artifactId>gunit</artifactId>
|
||||||
|
@@ -66,11 +66,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
|
@@ -29,6 +29,7 @@ import static org.junit.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
import static org.mockito.Mockito.lenient;
|
||||||
import static org.mockito.Mockito.never;
|
import static org.mockito.Mockito.never;
|
||||||
import static org.mockito.Mockito.verify;
|
import static org.mockito.Mockito.verify;
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
@@ -203,8 +204,8 @@ public class MoveMethodTest
|
|||||||
@Test
|
@Test
|
||||||
public void canRenameFoldersWhenNewNameMatchesShufflePattern() throws Exception
|
public void canRenameFoldersWhenNewNameMatchesShufflePattern() throws Exception
|
||||||
{
|
{
|
||||||
when(davHelper.isRenameShuffle(destPath)).thenReturn(true);
|
lenient().when(davHelper.isRenameShuffle(destPath)).thenReturn(true);
|
||||||
when(davHelper.isRenameShuffle(sourcePath)).thenReturn(false);
|
lenient().when(davHelper.isRenameShuffle(sourcePath)).thenReturn(false);
|
||||||
|
|
||||||
// Test: Perform the rename
|
// Test: Perform the rename
|
||||||
moveMethod.moveOrCopy(sourceNodeRef, sourceParentNodeRef, destParentNodeRef, "dest.doc");
|
moveMethod.moveOrCopy(sourceNodeRef, sourceParentNodeRef, destParentNodeRef, "dest.doc");
|
||||||
@@ -247,8 +248,8 @@ public class MoveMethodTest
|
|||||||
sourcePath = "/path/from/test.doc";
|
sourcePath = "/path/from/test.doc";
|
||||||
moveMethod.m_strPath = sourcePath;
|
moveMethod.m_strPath = sourcePath;
|
||||||
|
|
||||||
when(davHelper.getServiceRegistry()).thenReturn(mockServiceRegistry);
|
lenient().when(davHelper.getServiceRegistry()).thenReturn(mockServiceRegistry);
|
||||||
when(mockServiceRegistry.getContentService()).thenReturn(mockContentService);
|
lenient().when(mockServiceRegistry.getContentService()).thenReturn(mockContentService);
|
||||||
|
|
||||||
List<String> sourcePathSplit = Arrays.asList("path", "from", "test.doc");
|
List<String> sourcePathSplit = Arrays.asList("path", "from", "test.doc");
|
||||||
when(davHelper.splitAllPaths(sourcePath)).thenReturn(sourcePathSplit);
|
when(davHelper.splitAllPaths(sourcePath)).thenReturn(sourcePathSplit);
|
||||||
@@ -366,7 +367,7 @@ public class MoveMethodTest
|
|||||||
|
|
||||||
when(mockFileFolderService.resolveNamePath(rootNode, sourcePathSplit)).thenReturn(tmpFI);
|
when(mockFileFolderService.resolveNamePath(rootNode, sourcePathSplit)).thenReturn(tmpFI);
|
||||||
when(davHelper.isRenameShuffle(destPath)).thenReturn(false);
|
when(davHelper.isRenameShuffle(destPath)).thenReturn(false);
|
||||||
when(davHelper.isRenameShuffle(sourcePath)).thenReturn(true);
|
lenient().when(davHelper.isRenameShuffle(sourcePath)).thenReturn(true);
|
||||||
|
|
||||||
moveMethod.moveOrCopy(atmpFI.getNodeRef(), companyHomeNodeRef, companyHomeNodeRef, bakFileName);
|
moveMethod.moveOrCopy(atmpFI.getNodeRef(), companyHomeNodeRef, companyHomeNodeRef, bakFileName);
|
||||||
|
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -627,11 +627,6 @@
|
|||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.epam.reportportal</groupId>
|
|
||||||
<artifactId>agent-java-testng</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.assertj</groupId>
|
<groupId>org.assertj</groupId>
|
||||||
<artifactId>assertj-core</artifactId>
|
<artifactId>assertj-core</artifactId>
|
||||||
|
@@ -46,12 +46,12 @@ import org.alfresco.util.test.junitrules.WellKnownNodes;
|
|||||||
public class DataDictionaryFolderTest extends BaseSpringTest
|
public class DataDictionaryFolderTest extends BaseSpringTest
|
||||||
{
|
{
|
||||||
@ClassRule
|
@ClassRule
|
||||||
private static final ApplicationContextInit APP_CONTEXT_INIT = new ApplicationContextInit();
|
public static final ApplicationContextInit APP_CONTEXT_INIT = new ApplicationContextInit();
|
||||||
|
|
||||||
private static final String DATA_DICTIONARY = "Data Dictionary";
|
private static final String DATA_DICTIONARY = "Data Dictionary";
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
private WellKnownNodes wellKnownNodes = new WellKnownNodes(APP_CONTEXT_INIT);
|
public WellKnownNodes wellKnownNodes = new WellKnownNodes(APP_CONTEXT_INIT);
|
||||||
|
|
||||||
private NodeService nodeService;
|
private NodeService nodeService;
|
||||||
|
|
||||||
|
@@ -31,7 +31,6 @@ import java.sql.Savepoint;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
|
|
||||||
import junit.framework.AssertionFailedError;
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.mockito.Mockito;
|
import org.mockito.Mockito;
|
||||||
@@ -61,7 +60,7 @@ public class EntityLookupCacheTest implements EntityLookupCallbackDAO<Long, Obje
|
|||||||
private ControlDAO controlDAO;
|
private ControlDAO controlDAO;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
protected void setUp() throws Exception
|
public void setUp() throws Exception
|
||||||
{
|
{
|
||||||
cache = new MemoryCache<Long, Object>();
|
cache = new MemoryCache<Long, Object>();
|
||||||
entityLookupCacheA = new EntityLookupCache<Long, Object, String>(cache, "A", this);
|
entityLookupCacheA = new EntityLookupCache<Long, Object, String>(cache, "A", this);
|
||||||
@@ -72,18 +71,10 @@ public class EntityLookupCacheTest implements EntityLookupCallbackDAO<Long, Obje
|
|||||||
Mockito.when(controlDAO.createSavepoint(Mockito.anyString())).thenReturn(Mockito.mock(Savepoint.class));
|
Mockito.when(controlDAO.createSavepoint(Mockito.anyString())).thenReturn(Mockito.mock(Savepoint.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test(expected = AssertionError.class)
|
||||||
public void testLookupsUsingIncorrectValue() throws Exception
|
public void testLookupsUsingIncorrectValue() throws Exception
|
||||||
{
|
{
|
||||||
try
|
entityLookupCacheA.getByValue(this);
|
||||||
{
|
|
||||||
// Keep the "database" empty
|
|
||||||
entityLookupCacheA.getByValue(this);
|
|
||||||
}
|
|
||||||
catch (AssertionFailedError e)
|
|
||||||
{
|
|
||||||
// Expected
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@@ -37,6 +37,7 @@ import static org.mockito.ArgumentMatchers.anyString;
|
|||||||
import static org.mockito.ArgumentMatchers.eq;
|
import static org.mockito.ArgumentMatchers.eq;
|
||||||
import static org.mockito.Mockito.atLeastOnce;
|
import static org.mockito.Mockito.atLeastOnce;
|
||||||
import static org.mockito.Mockito.doThrow;
|
import static org.mockito.Mockito.doThrow;
|
||||||
|
import static org.mockito.Mockito.lenient;
|
||||||
import static org.mockito.Mockito.mock;
|
import static org.mockito.Mockito.mock;
|
||||||
import static org.mockito.Mockito.never;
|
import static org.mockito.Mockito.never;
|
||||||
import static org.mockito.Mockito.only;
|
import static org.mockito.Mockito.only;
|
||||||
@@ -161,7 +162,7 @@ public class CachingContentStoreTest
|
|||||||
@Test
|
@Test
|
||||||
public void getReaderForItemMissingFromCacheButNoContentToCache()
|
public void getReaderForItemMissingFromCacheButNoContentToCache()
|
||||||
{
|
{
|
||||||
when(cache.getReader("url")).thenThrow(new CacheMissException("url"));
|
lenient().when(cache.getReader("url")).thenThrow(new CacheMissException("url"));
|
||||||
when(backingStore.getReader("url")).thenReturn(sourceContent);
|
when(backingStore.getReader("url")).thenReturn(sourceContent);
|
||||||
when(cache.put("url", sourceContent)).thenReturn(false);
|
when(cache.put("url", sourceContent)).thenReturn(false);
|
||||||
|
|
||||||
@@ -305,9 +306,9 @@ public class CachingContentStoreTest
|
|||||||
cachingStore.setQuota(quota);
|
cachingStore.setQuota(quota);
|
||||||
|
|
||||||
// Don't veto writing the cache file.
|
// Don't veto writing the cache file.
|
||||||
when(quota.beforeWritingCacheFile(1274L)).thenReturn(true);
|
lenient().when(quota.beforeWritingCacheFile(1274L)).thenReturn(true);
|
||||||
// Do request cache file deletion.
|
// Do request cache file deletion.
|
||||||
when(quota.afterWritingCacheFile(1234L)).thenReturn(false);
|
lenient().when(quota.afterWritingCacheFile(1234L)).thenReturn(false);
|
||||||
|
|
||||||
ContentReader returnedReader = cachingStore.getReader("url");
|
ContentReader returnedReader = cachingStore.getReader("url");
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
package org.alfresco.repo.lock;
|
package org.alfresco.repo.lock;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
import static org.mockito.Mockito.lenient;
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -53,8 +54,8 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForLockOwnerWithNullLockType()
|
public void testIsLockedAndReadOnly_ForLockOwnerWithNullLockType()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
||||||
when(lockService.getLockType(nodeRef)).thenReturn(null);
|
lenient().when(lockService.getLockType(nodeRef)).thenReturn(null);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
@@ -64,8 +65,8 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForLockOwnerWithWriteLockType()
|
public void testIsLockedAndReadOnly_ForLockOwnerWithWriteLockType()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
||||||
when(lockService.getLockType(nodeRef)).thenReturn(LockType.WRITE_LOCK);
|
lenient().when(lockService.getLockType(nodeRef)).thenReturn(LockType.WRITE_LOCK);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(false);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(false);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
@@ -75,8 +76,8 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForLockOwnerWithNodeLockType()
|
public void testIsLockedAndReadOnly_ForLockOwnerWithNodeLockType()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
||||||
when(lockService.getLockType(nodeRef)).thenReturn(LockType.NODE_LOCK);
|
lenient().when(lockService.getLockType(nodeRef)).thenReturn(LockType.NODE_LOCK);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
@@ -86,8 +87,8 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForLockOwnerWithReadOnlyLockType()
|
public void testIsLockedAndReadOnly_ForLockOwnerWithReadOnlyLockType()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_OWNER);
|
||||||
when(lockService.getLockType(nodeRef)).thenReturn(LockType.READ_ONLY_LOCK);
|
lenient().when(lockService.getLockType(nodeRef)).thenReturn(LockType.READ_ONLY_LOCK);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
@@ -97,7 +98,7 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForNoLock()
|
public void testIsLockedAndReadOnly_ForNoLock()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.NO_LOCK);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.NO_LOCK);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(false);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(false);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
@@ -107,7 +108,7 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForExpiredLock()
|
public void testIsLockedAndReadOnly_ForExpiredLock()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_EXPIRED);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCK_EXPIRED);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(false);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(false);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
@@ -117,7 +118,7 @@ public class LockUtilsTest
|
|||||||
@Test
|
@Test
|
||||||
public void testIsLockedAndReadOnly_ForLock()
|
public void testIsLockedAndReadOnly_ForLock()
|
||||||
{
|
{
|
||||||
when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCKED);
|
lenient().when(lockService.getLockStatus(nodeRef)).thenReturn(LockStatus.LOCKED);
|
||||||
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
when(lockService.isLockedAndReadOnly(nodeRef)).thenReturn(true);
|
||||||
|
|
||||||
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
boolean returnedVal = LockUtils.isLockedAndReadOnly(nodeRef, lockService);
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
|
@@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
echo "=========================== Starting Add Step Summary Script ==========================="
|
|
||||||
PS4="\[\e[35m\]+ \[\e[m\]"
|
|
||||||
set -vex
|
|
||||||
|
|
||||||
echo "#### ⏱ Before Tests: $(date -u +'%Y-%m-%d %H:%M:%S%:z')" >> $GITHUB_STEP_SUMMARY
|
|
||||||
echo "#### ⚙ Configuration" >> $GITHUB_STEP_SUMMARY
|
|
||||||
|
|
||||||
if [[ "$RP_ENABLED" == 'true' ]]; then
|
|
||||||
echo "- [Report Portal]($RP_URL) configured with key "'`'$RP_KEY'`' >> $GITHUB_STEP_SUMMARY
|
|
||||||
else
|
|
||||||
echo "- Report Portal not enabled" >> $GITHUB_STEP_SUMMARY
|
|
||||||
fi
|
|
||||||
|
|
||||||
set +vex
|
|
||||||
echo "=========================== Finishing Add Step Summary Script =========================="
|
|
Reference in New Issue
Block a user