Skip to content

Add and extend auth tests (PECOBLR-1842) #1222

Add and extend auth tests (PECOBLR-1842)

Add and extend auth tests (PECOBLR-1842) #1222

name: Integration Tests Workflow - Pull Requests
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
build-and-test:
name: Build and Run Integration Tests (PR)
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
strategy:
matrix:
include:
# SQL_EXEC mode: Tests SEA client behavior
# Note: CircuitBreakerIntegrationTests requires THRIFT_SERVER mode (tested in second matrix entry)
- test-command: mvn -B compile test -Dtest=*IntegrationTests,!M2MPrivateKeyCredentialsIntegrationTests,!M2MAuthIntegrationTests,!CircuitBreakerIntegrationTests,!ThriftCloudFetchFakeIntegrationTests
fake-service-type: 'SQL_EXEC'
# THRIFT_SERVER mode: Tests Thrift client behavior and circuit breaker fallback
- test-command: mvn -B compile test -Dtest=*IntegrationTests,!M2MPrivateKeyCredentialsIntegrationTests,!SqlExecApiHybridResultsIntegrationTests,!DBFSVolumeIntegrationTests,!M2MAuthIntegrationTests,!UCVolumeIntegrationTests,!SqlExecApiIntegrationTests
fake-service-type: 'THRIFT_SERVER'
steps:
- name: Checkout PR
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'adopt'
- uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run Integration Tests (without secrets)
run: ${{ matrix.test-command }}
env:
FAKE_SERVICE_TYPE: ${{ matrix.fake-service-type }}