fix: tf acc test pipeline
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
This commit is contained in:
parent
5eb38b1cda
commit
178be40665
2 changed files with 3 additions and 10 deletions
4
.github/actions/acc_test/action.yaml
vendored
4
.github/actions/acc_test/action.yaml
vendored
|
|
@ -43,7 +43,7 @@ inputs:
|
||||||
service_account_json_file_path:
|
service_account_json_file_path:
|
||||||
description: "STACKIT service account JSON file contents"
|
description: "STACKIT service account JSON file contents"
|
||||||
required: true
|
required: true
|
||||||
default: '~/.stackit/credentials.json'
|
default: './service_account.json'
|
||||||
|
|
||||||
test_file:
|
test_file:
|
||||||
description: "testfile to run"
|
description: "testfile to run"
|
||||||
|
|
@ -130,7 +130,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
if [[ ! -f "${{ inputs.service_account_json_file_path }}" ]]; then
|
if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then
|
||||||
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
|
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
|
||||||
if [ -z "${{ inputs.service_account_json_content }}" ]; then
|
if [ -z "${{ inputs.service_account_json_content }}" ]; then
|
||||||
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
|
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
|
||||||
|
|
|
||||||
9
.github/workflows/tf-acc-test.yaml
vendored
9
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -14,13 +14,6 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Create service account json file
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
echo "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}" >~/service_account.json
|
|
||||||
cat ~/service_account.json
|
|
||||||
|
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
uses: ./.github/actions/acc_test
|
uses: ./.github/actions/acc_test
|
||||||
with:
|
with:
|
||||||
|
|
@ -33,4 +26,4 @@ jobs:
|
||||||
tf_acc_kek_key_ring_id: ${{ vars.TEST_KEK_KEY_RING_ID }}
|
tf_acc_kek_key_ring_id: ${{ vars.TEST_KEK_KEY_RING_ID }}
|
||||||
tf_acc_kek_key_version: ${{ vars.TEST_KEK_KEY_VERSION }}
|
tf_acc_kek_key_version: ${{ vars.TEST_KEK_KEY_VERSION }}
|
||||||
tf_acc_kek_service_account: ${{ vars.TEST_KEK_SERVICE_ACCOUNT }}
|
tf_acc_kek_service_account: ${{ vars.TEST_KEK_SERVICE_ACCOUNT }}
|
||||||
service_account_json_file_path: "~/service_account.json"
|
# service_account_json_file_path: "~/service_account.json"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue