2021-11-04 11:16:30 -04:00
|
|
|
name: External IDP Integration Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
2021-11-07 04:22:59 -05:00
|
|
|
# This ensures that previous jobs for the PR are canceled when the PR is
|
2021-11-04 11:16:30 -04:00
|
|
|
# updated.
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ldap-test:
|
|
|
|
name: LDAP Tests with Go ${{ matrix.go-version }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
services:
|
|
|
|
openldap:
|
|
|
|
image: quay.io/minio/openldap
|
|
|
|
ports:
|
|
|
|
- 389:389
|
|
|
|
- 636:636
|
|
|
|
env:
|
2021-11-07 04:22:59 -05:00
|
|
|
LDAP_ORGANIZATION: "MinIO Inc"
|
2021-11-04 11:16:30 -04:00
|
|
|
LDAP_DOMAIN: "min.io"
|
|
|
|
LDAP_ADMIN_PASSWORD: "admin"
|
|
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: [1.16.x, 1.17.x]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Test LDAP
|
|
|
|
env:
|
|
|
|
LDAP_TEST_SERVER: "localhost:389"
|
|
|
|
run: |
|
|
|
|
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sudo sysctl net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
make test-ldap
|