Skip to content

Commit

Permalink
github-ci: add authn tests
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Gaikwad <[email protected]>
  • Loading branch information
gaikwadabhishek committed Aug 15, 2024
1 parent 8f33765 commit 080809d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/test-python-authn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Python AuthN Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
strategy:
matrix:
go-version: ['1.22.x']
os: [ubuntu-latest, macos-latest]
python-version: ['3.11']
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v4

- name: Setup additional system libraries
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install -y xattr attr
- name: Run AIStore
env:
GOPATH: ${{ secrets.GOPATH }}
AIS_AUTHN_ENABLED: "true"
AIS_AUTHN_SU_NAME: "admin"
AIS_AUTHN_SU_PASS: "admin"
AIS_AUTHN_URL: "http://localhost:52001"
run: |
export GOPATH="$(go env GOPATH)"
scripts/clean_deploy.sh --target-cnt 3 --proxy-cnt 1 --mountpath-cnt 3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Run Python tests
env:
AIS_AUTHN_SU_NAME: "admin"
AIS_AUTHN_SU_PASS: "admin"
AIS_AUTHN_URL: "http://localhost:52001"
run: |
cd python
make python_authn_tests

0 comments on commit 080809d

Please sign in to comment.