1
1
name : go tests
2
2
3
3
on :
4
- # workflow_dispatch:
5
- # workflow_run:
6
- # workflows:
7
- # - "Check and Update Package Version"
8
- # types:
9
- # - completed
10
- # branches:
11
- # - "*"
4
+ # workflow_dispatch:
5
+ # workflow_run:
6
+ # workflows:
7
+ # - "Check and Update Package Version"
8
+ # types:
9
+ # - completed
10
+ # branches:
11
+ # - "*"
12
12
push :
13
13
branches :
14
14
- ' *'
@@ -142,25 +142,6 @@ jobs:
142
142
run : echo "Running tests for KF 11.x.x"
143
143
144
144
# ## Store Type Tests
145
- Test_StoreTypes_KFC_11_2_0 :
146
- runs-on : ubuntu-latest
147
- needs :
148
- - build
149
- - kf_11_x_x
150
- env :
151
- SECRET_NAME : " command-config-1120-clean"
152
- KEYFACTOR_HOSTNAME : " int1120-test-clean.kfdelivery.com"
153
- KEYFACTOR_DOMAIN : " command"
154
- KEYFACTOR_USERNAME : ${{ secrets.LAB_USERNAME }}
155
- KEYFACTOR_PASSWORD : ${{ secrets.LAB_PASSWORD }}
156
- steps :
157
- - name : Checkout code
158
- uses : actions/checkout@v4
159
- - name : Run tests
160
- run : |
161
- unset KFUTIL_DEBUG
162
- go test -v ./cmd -run "^Test_StoreTypes*"
163
-
164
145
Test_StoreTypes_KFC_11_1_2 :
165
146
runs-on : ubuntu-latest
166
147
needs :
@@ -182,15 +163,15 @@ jobs:
182
163
183
164
184
165
# ## Store Tests
185
- Test_Stores_KFC_11_2_0 :
166
+ Test_Stores_KFC_11_1_2 :
186
167
runs-on : ubuntu-latest
187
168
needs :
188
169
- build
189
170
- kf_11_x_x
190
- - Test_StoreTypes_KFC_11_2_0
171
+ - Test_StoreTypes_KFC_11_1_2
191
172
env :
192
- SECRET_NAME : " command-config-1120 "
193
- KEYFACTOR_HOSTNAME : " integrations1120 -lab.kfdelivery.com"
173
+ SECRET_NAME : " command-config-1112 "
174
+ KEYFACTOR_HOSTNAME : " integrations1112 -lab.kfdelivery.com"
194
175
KEYFACTOR_DOMAIN : " command"
195
176
KEYFACTOR_USERNAME : ${{ secrets.LAB_USERNAME }}
196
177
KEYFACTOR_PASSWORD : ${{ secrets.LAB_PASSWORD }}
@@ -199,7 +180,9 @@ jobs:
199
180
uses : actions/checkout@v4
200
181
- name : Run tests
201
182
run : go test -v ./cmd -run "^Test_Stores_*"
202
- Test_Stores_KFC_11_1_2 :
183
+
184
+ # ## PAM Tests
185
+ Test_PAM_KFC_11_1_2 :
203
186
runs-on : ubuntu-latest
204
187
needs :
205
188
- build
@@ -215,18 +198,50 @@ jobs:
215
198
- name : Checkout code
216
199
uses : actions/checkout@v4
217
200
- name : Run tests
218
- run : go test -v ./cmd -run "^Test_Stores_*"
201
+ run : |
202
+ unset KFUTIL_DEBUG
203
+ go test -v ./cmd -run "^Test_PAM*"
219
204
220
- # ## PAM Tests
221
- Test_PAM_KFC_11_2_0 :
205
+
206
+ # ## PAM Tests AKV Auth Provider
207
+ Test_AKV_PAM_KFC_11_1_2 :
208
+ runs-on : self-hosted
209
+ needs :
210
+ - Test_PAM_KFC_11_1_2
211
+ env :
212
+ SECRET_NAME : " command-config-1112-az"
213
+ steps :
214
+ - name : Checkout code
215
+ uses : actions/checkout@v4
216
+ - name : Set up Go
217
+ uses : actions/setup-go@v5
218
+ with :
219
+ go-version : " 1.21"
220
+ - name : Install dependencies
221
+ run : go mod download && go mod tidy
222
+ - name : Get secret from Azure Key Vault
223
+ run : |
224
+ . ./examples/auth/akv/akv_auth.sh
225
+ cat $HOME/.keyfactor/command_config.json
226
+ - name : Install kfutil
227
+ run : |
228
+ make install
229
+ - name : Run tests
230
+ run : |
231
+ go test -v ./cmd -run "^Test_PAM*"
232
+
233
+
234
+
235
+ # # KFC 12.x.x
236
+ # ## Store Type Tests
237
+ Test_StoreTypes_KFC_12_2_0 :
222
238
runs-on : ubuntu-latest
223
239
needs :
224
240
- build
225
241
- kf_11_x_x
226
- - Test_StoreTypes_KFC_11_2_0
227
242
env :
228
- SECRET_NAME : " command-config-1120 "
229
- KEYFACTOR_HOSTNAME : " integrations1120-lab .kfdelivery.com"
243
+ SECRET_NAME : " command-config-1220-clean "
244
+ KEYFACTOR_HOSTNAME : " int1220-test-clean .kfdelivery.com"
230
245
KEYFACTOR_DOMAIN : " command"
231
246
KEYFACTOR_USERNAME : ${{ secrets.LAB_USERNAME }}
232
247
KEYFACTOR_PASSWORD : ${{ secrets.LAB_PASSWORD }}
@@ -236,64 +251,57 @@ jobs:
236
251
- name : Run tests
237
252
run : |
238
253
unset KFUTIL_DEBUG
239
- go test -v ./cmd -run "^Test_PAM *"
254
+ go test -v ./cmd -run "^Test_StoreTypes *"
240
255
241
256
242
- Test_PAM_KFC_11_1_2 :
257
+ # ## Store Tests
258
+ Test_Stores_KFC_12_2_0 :
243
259
runs-on : ubuntu-latest
244
260
needs :
245
261
- build
246
262
- kf_11_x_x
247
- - Test_StoreTypes_KFC_11_1_2
263
+ - Test_StoreTypes_KFC_12_2_0
248
264
env :
249
- SECRET_NAME : " command-config-1112 "
250
- KEYFACTOR_HOSTNAME : " integrations1112 -lab.kfdelivery.com"
265
+ SECRET_NAME : " command-config-1220 "
266
+ KEYFACTOR_HOSTNAME : " integrations1220 -lab.kfdelivery.com"
251
267
KEYFACTOR_DOMAIN : " command"
252
268
KEYFACTOR_USERNAME : ${{ secrets.LAB_USERNAME }}
253
269
KEYFACTOR_PASSWORD : ${{ secrets.LAB_PASSWORD }}
254
270
steps :
255
271
- name : Checkout code
256
272
uses : actions/checkout@v4
257
273
- name : Run tests
258
- run : |
259
- unset KFUTIL_DEBUG
260
- go test -v ./cmd -run "^Test_PAM*"
261
-
274
+ run : go test -v ./cmd -run "^Test_Stores_*"
262
275
263
- # ## PAM Tests AKV Auth Provider
264
- Test_AKV_PAM_KFC_11_2_0 :
265
- runs-on : self-hosted
276
+ # ## PAM Tests
277
+ Test_PAM_KFC_12_2_0 :
278
+ runs-on : ubuntu-latest
266
279
needs :
267
- - Test_PAM_KFC_11_2_0
280
+ - build
281
+ - kf_11_x_x
282
+ - Test_StoreTypes_KFC_12_2_0
268
283
env :
269
- SECRET_NAME : " command-config-1120-az"
284
+ SECRET_NAME : " command-config-1220"
285
+ KEYFACTOR_HOSTNAME : " integrations1220-lab.kfdelivery.com"
286
+ KEYFACTOR_DOMAIN : " command"
287
+ KEYFACTOR_USERNAME : ${{ secrets.LAB_USERNAME }}
288
+ KEYFACTOR_PASSWORD : ${{ secrets.LAB_PASSWORD }}
270
289
steps :
271
290
- name : Checkout code
272
291
uses : actions/checkout@v4
273
- - name : Set up Go
274
- uses : actions/setup-go@v5
275
- with :
276
- go-version : " 1.21"
277
- - name : Install dependencies
278
- run : go mod download && go mod tidy
279
- - name : Get secret from Azure Key Vault
280
- run : |
281
- . ./examples/auth/akv/akv_auth.sh
282
- cat $HOME/.keyfactor/command_config.json
283
- - name : Install kfutil
284
- run : |
285
- make install
286
292
- name : Run tests
287
293
run : |
294
+ unset KFUTIL_DEBUG
288
295
go test -v ./cmd -run "^Test_PAM*"
289
296
290
297
291
- Test_AKV_PAM_KFC_11_1_2 :
298
+ # ## PAM Tests AKV Auth Provider
299
+ Test_AKV_PAM_KFC_12_2_0 :
292
300
runs-on : self-hosted
293
301
needs :
294
- - Test_PAM_KFC_11_1_2
302
+ - Test_PAM_KFC_12_2_0
295
303
env :
296
- SECRET_NAME : " command-config-1112 -az"
304
+ SECRET_NAME : " command-config-1220 -az"
297
305
steps :
298
306
- name : Checkout code
299
307
uses : actions/checkout@v4
@@ -315,16 +323,21 @@ jobs:
315
323
go test -v ./cmd -run "^Test_PAM*"
316
324
317
325
326
+
318
327
# Tester Install Script
319
328
Test_Install_Script :
320
- runs-on : ubuntu-latest
321
- steps :
322
- - name : Test Quick Install Script
323
- run : |
324
- bash <(curl -s https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME}/install.sh)
325
- which kfutil
326
- kfutil version
327
- rm $(which kfutil)
329
+ runs-on : ubuntu-latest
330
+ steps :
331
+ - name : Test Quick Install Script
332
+ run : |
333
+ sudo apt update && sudo apt upgrade -y && sudo apt install -y curl wget unzip jq openssl && sudo apt clean
334
+ echo curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME}/install.sh"
335
+ GITHUB_REF_NAME_ENCODED=$(echo -n "${GITHUB_REF_NAME}" | jq -sRr @uri)
336
+ VERIFY_CHECKSUM=0
337
+ bash <(curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME_ENCODED}/install.sh")
338
+ which kfutil
339
+ kfutil version
340
+ rm $(which kfutil)
328
341
329
342
# Package Tests
330
343
Test_Kfutil_pkg :
0 commit comments