Skip to content

update

update #4

name: SPNEGO Integration Tests
on:
push:
branches:
- main
- master
- add-proxy-auth-support-tests
pull_request:
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'pkg/testinfra/**'
- 'integration/**'
- 'proxy_auth*.go'
- '.github/workflows/integration-tests.yml'
jobs:
spnego-tests:
name: SPNEGO Proxy Authentication Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Verify Docker is available
run: |
docker --version
docker info
- name: Run SPNEGO Integration Tests
run: |
go test -v -tags=integration -run TestSPNEGOProxy -timeout=15m ./integration/...
env:
CGO_ENABLED: 1
TESTCONTAINERS_RYUK_DISABLED: true
DOCKER_HOST: unix:///var/run/docker.sock
PIVNET_API_TOKEN: ${{ secrets.PIVNET_API_TOKEN }}
- name: Upload Test Logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: integration-test-logs
path: |
/tmp/*.log
/tmp/*/krb5.conf
retention-days: 7
if-no-files-found: ignore