From fe3d6db1aac99ba95b077f17610ecaf9c9c4d451 Mon Sep 17 00:00:00 2001 From: sbailey <1661003+spbsoluble@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:49:07 -0700 Subject: [PATCH] fix(ci): Add KFC v12.0.0 tests. Signed-off-by: sbailey <1661003+spbsoluble@users.noreply.github.com> --- .github/workflows/tests.yml | 95 +++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8580a26..93ed013 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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: @@ -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: @@ -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: