Skip to content

Commit 8c083b3

Browse files
authored
fix(ci): reusable plat/kas startup actions enhancements from opentdf/tests (#1533)
After changes introduced in opentdf/tests#184 Resolves #1530 Working tests in `opentdf/tests`: opentdf/tests#190 Working tests in `opentdf/otdfctl`: opentdf/otdfctl#369
1 parent 448c422 commit 8c083b3

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

test/start-additional-kas/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
name: Start another KAS server in background
2121
with:
2222
run: >
23-
<opentdf.yaml >opentdf-${{ inputs.kas-name }}.yaml yq e '
23+
<opentdf-dev.yaml >opentdf-${{ inputs.kas-name }}.yaml yq e '
2424
(.server.port = ${{ inputs.kas-port }})
2525
| (.mode = ["kas"])
2626
| (.sdk_config = {"endpoint":"http://localhost:8080","plaintext":true,"client_id":"opentdf","client_secret":"secret"})

test/start-up-with-containers/action.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ inputs:
88
description: 'The ref to check out for the platform'
99
default: 'main'
1010

11+
outputs:
12+
platform-working-dir:
13+
description: 'The working directory for the running platform instance'
14+
value: 'otdf-test-platform'
15+
1116
runs:
1217
using: 'composite'
1318
steps:
@@ -30,9 +35,15 @@ runs:
3035
otdf-test-platform/sdk/go.sum
3136
- name: Provide the platform with keys
3237
shell: bash
33-
run: |
34-
.github/scripts/init-temp-keys.sh
35-
cp opentdf-dev.yaml opentdf.yaml
38+
run: .github/scripts/init-temp-keys.sh
39+
working-directory: otdf-test-platform
40+
- name: Map the config to the keys
41+
shell: bash
42+
run: >-
43+
<opentdf-dev.yaml >opentdf.yaml yq e '
44+
(.services.kas.keyring = [{"kid":"ec1","alg":"ec:secp256r1"},{"kid":"r1","alg":"rsa:2048"}])
45+
| (.server.cryptoProvider.standard.keys = [{"kid":"ec1","alg":"ec:secp256r1","private":"kas-ec-private.pem","cert":"kas-ec-cert.pem"},{"kid":"r1","alg":"rsa:2048","private":"kas-private.pem","cert":"kas-cert.pem"}])
46+
'
3647
working-directory: otdf-test-platform
3748
- name: Trust the generated certs
3849
shell: bash

0 commit comments

Comments
 (0)