ACS-11435 Elasticsearch TAS Tests (#1682)

* ACS-11434 testing in community packaging

* ACS-11434 minor fixes

* ACS-11434 added tag indexing tests

* ACS-11434 refactored tests

* ACS-11434 precommit fix

* ACS-11434 addressed copilot comments

* ACS-11434 addressed pr comments

* ACS-11434 Update batch indexing image to latest alpha

* ACS-11434 activate all-tas-tests profile while build

* ACS-11434 fix ci build

* ACS-11434 fix ci build

* ACS-11434 fix ci build

* ACS-11434 Sync with master

* ACS-11434 fix ci

* ACS-11434 add missing env parameters

* ACS-11434 ci fix

* ACS-11434 trim whitespace from batch indexing tag

* ACS-11434 Added alfresco with jdbc jars config

* ACS-11434 Fix basic auth tests and remove testrail

* ACS-11434 Fix precommit

* ACS-11434 Added retry listeners for basic auth test suite

* ACS-11434 Fix opensearch basicauth tests
This commit is contained in:
Satyam Sah
2026-07-02 11:34:03 +05:30
committed by GitHub
parent 60bf0b5b14
commit 3dc624a652
52 changed files with 8907 additions and 2 deletions
+74
View File
@@ -112,6 +112,80 @@ jobs:
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
tas_tests_search_api:
name: ${{ matrix.testSuite }} | TAS tests (Search API)
runs-on: ubuntu-latest
if: >
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request') &&
!contains(github.event.head_commit.message, '[skip search]') &&
!contains(github.event.head_commit.message, '[skip tests]')
strategy:
fail-fast: false
matrix:
include:
- testSuite: Elasticsearch postgreSQL
profiles: all-tas-tests,elastic
search-engine-type: elasticsearch
db-type: postgresql
- testSuite: Elasticsearch MySQL
profiles: all-tas-tests,elastic
search-engine-type: elasticsearch
db-type: mysql
- testSuite: Elasticsearch Maria DB 11.8
profiles: all-tas-tests,elastic
search-engine-type: elasticsearch
db-type: mariadb
- testSuite: Opensearch
profiles: all-tas-tests,elastic
search-engine-type: opensearch
db-type: postgresql
- testSuite: Elasticsearch Basic Auth postgreSQL
profiles: all-tas-tests,elastic-basic-auth
search-engine-type: elasticsearch
db-type: postgresql
- testSuite: Elasticsearch Basic Auth MySQL
profiles: all-tas-tests,elastic-basic-auth
search-engine-type: elasticsearch
db-type: mysql
- testSuite: Elasticsearch Basic Auth MariaDB 11.8
profiles: all-tas-tests,elastic-basic-auth
search-engine-type: elasticsearch
db-type: mariadb
- testSuite: Opensearch Basic Auth
profiles: all-tas-tests,elastic-basic-auth
search-engine-type: opensearch
db-type: postgresql
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v12.4.3
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v12.4.3
with:
java-version: ${{ env.JAVA_VERSION }}
- name: "Build"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
bash ./scripts/ci/init.sh
bash ./scripts/ci/build.sh
- name: "Run tests"
id: tests
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
set -a
source ${TAS_ENVIRONMENT}/.env
set +a
BATCH_INDEXING_TAG="${BATCH_INDEXING_TAG//[[:space:]]/}"
mvn -B -ntp -q install -N -f tests/pom.xml
mvn -B -ntp -q install -DskipTests -f tests/testcontainers-env/pom.xml
mvn -B install -ntp -f tests/tas-elasticsearch/pom.xml -P${{ matrix.profiles }} -Denvironment=default -DrunBugs=false "-Dsearch.engine.type=${{ matrix.search-engine-type }}" "-Ddatabase.type=${{ matrix.db-type }}" -Dindeximage="alfresco/alfresco-elasticsearch-batch-indexing:${BATCH_INDEXING_TAG}" -Drepoimage="alfresco-repository-databases:latest"
- name: "Dump all Docker containers logs"
uses: Alfresco/alfresco-build-tools/.github/actions/docker-dump-containers-logs@v12.4.3
if: failure() && steps.tests.outcome == 'failure'
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
community_zip_tests:
name: Community Distribution Zip content tests
runs-on: ubuntu-latest