Skip to content

Commit

Permalink
New Pull Request - all:latest (#194)
Browse files Browse the repository at this point in the history
* fix(ci): Add KFC v12.0.0 tests.  
* fix(storetypes): Update all store type definitions.
  • Loading branch information
github-actions[bot] authored Jun 12, 2024
1 parent 05690f3 commit f8650e0
Show file tree
Hide file tree
Showing 3 changed files with 2,117 additions and 136 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,4 @@ alternatively you can specify the parent command
cobra-cli add <my-new-command> -p '<parent>Cmd'
```
Loading

0 comments on commit f8650e0

Please sign in to comment.