Skip to content

Commit

Permalink
fix(ci): Add KFC v12.0.0 tests.
Browse files Browse the repository at this point in the history
Signed-off-by: sbailey <[email protected]>
  • Loading branch information
spbsoluble committed Jun 10, 2024
1 parent dc73a18 commit fe3d6db
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,37 @@ jobs:
- name: Run tests
run: echo "Running tests for KF 11.x.x"

## KFC 12.x.x
kf_12_x_x:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: echo "Running tests for KF 12.x.x"

### Store Type Tests
Test_StoreTypes_KFC_12_0_0:
runs-on: ubuntu-latest
needs:
- build
- kf_11_x_x
env:
SECRET_NAME: "command-config-1200-clean"
KEYFACTOR_HOSTNAME: "int1200-test-clean.kfdelivery.com"
KEYFACTOR_DOMAIN: "command"
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }}
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: |
unset KFUTIL_DEBUG
go test -v ./cmd -run "^Test_StoreTypes*"
Test_StoreTypes_KFC_11_2_0:
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -182,6 +212,23 @@ jobs:
### Store Tests
Test_Stores_KFC_12_0_0:
runs-on: ubuntu-latest
needs:
- build
- kf_12_x_x
- Test_StoreTypes_KFC_12_0_0
env:
SECRET_NAME: "command-config-1200"
KEYFACTOR_HOSTNAME: "integrations1200-lab.kfdelivery.com"
KEYFACTOR_DOMAIN: "command"
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }}
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: go test -v ./cmd -run "^Test_Stores_*"
Test_Stores_KFC_11_2_0:
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -218,6 +265,27 @@ jobs:
run: go test -v ./cmd -run "^Test_Stores_*"

### PAM Tests
Test_PAM_KFC_12_0_0:
runs-on: ubuntu-latest
needs:
- build
- kf_12_x_x
- Test_StoreTypes_KFC_12_0_0
env:
SECRET_NAME: "command-config-1200"
KEYFACTOR_HOSTNAME: "integrations1200-lab.kfdelivery.com"
KEYFACTOR_DOMAIN: "command"
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }}
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: |
unset KFUTIL_DEBUG
go test -v ./cmd -run "^Test_PAM*"
Test_PAM_KFC_11_2_0:
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -261,6 +329,33 @@ jobs:
### PAM Tests AKV Auth Provider
Test_AKV_PAM_KFC_12_0_0:
runs-on: self-hosted
needs:
- Test_PAM_KFC_12_0_0
env:
SECRET_NAME: "command-config-1200-az"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install dependencies
run: go mod download && go mod tidy
- name: Get secret from Azure Key Vault
run: |
. ./examples/auth/akv/akv_auth.sh
cat $HOME/.keyfactor/command_config.json
- name: Install kfutil
run: |
make install
- name: Run tests
run: |
go test -v ./cmd -run "^Test_PAM*"
Test_AKV_PAM_KFC_11_2_0:
runs-on: self-hosted
needs:
Expand Down

0 comments on commit fe3d6db

Please sign in to comment.