Skip to content

Commit f8650e0

Browse files
New Pull Request - all:latest (#194)
* fix(ci): Add KFC v12.0.0 tests. * fix(storetypes): Update all store type definitions.
1 parent 05690f3 commit f8650e0

File tree

3 files changed

+2117
-136
lines changed

3 files changed

+2117
-136
lines changed

.github/workflows/tests.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,37 @@ jobs:
141141
- name: Run tests
142142
run: echo "Running tests for KF 11.x.x"
143143

144+
## KFC 12.x.x
145+
kf_12_x_x:
146+
runs-on: ubuntu-latest
147+
needs:
148+
- build
149+
steps:
150+
- name: Checkout code
151+
uses: actions/checkout@v4
152+
- name: Run tests
153+
run: echo "Running tests for KF 12.x.x"
154+
144155
### Store Type Tests
156+
Test_StoreTypes_KFC_12_0_0:
157+
runs-on: ubuntu-latest
158+
needs:
159+
- build
160+
- kf_11_x_x
161+
env:
162+
SECRET_NAME: "command-config-1200-clean"
163+
KEYFACTOR_HOSTNAME: "int1200-test-clean.kfdelivery.com"
164+
KEYFACTOR_DOMAIN: "command"
165+
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }}
166+
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }}
167+
steps:
168+
- name: Checkout code
169+
uses: actions/checkout@v4
170+
- name: Run tests
171+
run: |
172+
unset KFUTIL_DEBUG
173+
go test -v ./cmd -run "^Test_StoreTypes*"
174+
145175
Test_StoreTypes_KFC_11_2_0:
146176
runs-on: ubuntu-latest
147177
needs:
@@ -182,6 +212,23 @@ jobs:
182212
183213
184214
### Store Tests
215+
Test_Stores_KFC_12_0_0:
216+
runs-on: ubuntu-latest
217+
needs:
218+
- build
219+
- kf_12_x_x
220+
- Test_StoreTypes_KFC_12_0_0
221+
env:
222+
SECRET_NAME: "command-config-1200"
223+
KEYFACTOR_HOSTNAME: "integrations1200-lab.kfdelivery.com"
224+
KEYFACTOR_DOMAIN: "command"
225+
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }}
226+
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }}
227+
steps:
228+
- name: Checkout code
229+
uses: actions/checkout@v4
230+
- name: Run tests
231+
run: go test -v ./cmd -run "^Test_Stores_*"
185232
Test_Stores_KFC_11_2_0:
186233
runs-on: ubuntu-latest
187234
needs:
@@ -218,6 +265,27 @@ jobs:
218265
run: go test -v ./cmd -run "^Test_Stores_*"
219266

220267
### PAM Tests
268+
Test_PAM_KFC_12_0_0:
269+
runs-on: ubuntu-latest
270+
needs:
271+
- build
272+
- kf_12_x_x
273+
- Test_StoreTypes_KFC_12_0_0
274+
env:
275+
SECRET_NAME: "command-config-1200"
276+
KEYFACTOR_HOSTNAME: "integrations1200-lab.kfdelivery.com"
277+
KEYFACTOR_DOMAIN: "command"
278+
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }}
279+
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }}
280+
steps:
281+
- name: Checkout code
282+
uses: actions/checkout@v4
283+
- name: Run tests
284+
run: |
285+
unset KFUTIL_DEBUG
286+
go test -v ./cmd -run "^Test_PAM*"
287+
288+
221289
Test_PAM_KFC_11_2_0:
222290
runs-on: ubuntu-latest
223291
needs:
@@ -261,6 +329,33 @@ jobs:
261329
262330
263331
### PAM Tests AKV Auth Provider
332+
Test_AKV_PAM_KFC_12_0_0:
333+
runs-on: self-hosted
334+
needs:
335+
- Test_PAM_KFC_12_0_0
336+
env:
337+
SECRET_NAME: "command-config-1200-az"
338+
steps:
339+
- name: Checkout code
340+
uses: actions/checkout@v4
341+
- name: Set up Go
342+
uses: actions/setup-go@v5
343+
with:
344+
go-version: "1.21"
345+
- name: Install dependencies
346+
run: go mod download && go mod tidy
347+
- name: Get secret from Azure Key Vault
348+
run: |
349+
. ./examples/auth/akv/akv_auth.sh
350+
cat $HOME/.keyfactor/command_config.json
351+
- name: Install kfutil
352+
run: |
353+
make install
354+
- name: Run tests
355+
run: |
356+
go test -v ./cmd -run "^Test_PAM*"
357+
358+
264359
Test_AKV_PAM_KFC_11_2_0:
265360
runs-on: self-hosted
266361
needs:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,4 @@ alternatively you can specify the parent command
440440
cobra-cli add <my-new-command> -p '<parent>Cmd'
441441
```
442442
443+

0 commit comments

Comments
 (0)