From 55839486f0e480a8e7110ca357146cf69e2e8639 Mon Sep 17 00:00:00 2001 From: sbailey <1661003+spbsoluble@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:05:27 -0700 Subject: [PATCH] fix(ci): Adding missing `10.1.1` tests --- .github/workflows/tests.yml | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 19c97b4e..5ebd8074 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -148,6 +148,26 @@ jobs: unset KFUTIL_DEBUG go test -v ./cmd -run "^Test_Stores_*" + Test_Stores_KFC_10_1_1: + runs-on: ubuntu-latest + needs: + - build + - kf_10_x_x + - Test_StoreTypes_KFC_10_1_1 + env: + SECRET_NAME: "command-config-1011" + KEYFACTOR_HOSTNAME: "integrations1011-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_Stores_*" + # Test_Stores_KFC_10_1_1: # runs-on: ubuntu-latest # needs: @@ -208,6 +228,25 @@ jobs: run: | unset KFUTIL_DEBUG go test -v ./cmd -run "^Test_PAM*" + Test_PAM_KFC_10_1_1: + runs-on: ubuntu-latest + needs: + - build + - kf_10_x_x + - Test_StoreTypes_KFC_10_1_1 + env: + SECRET_NAME: "command-config-1011" + KEYFACTOR_HOSTNAME: "integrations1011-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_10_1_1: # runs-on: ubuntu-latest # needs: @@ -281,6 +320,35 @@ jobs: run: | go test -v ./cmd -run "^Test_PAM*" + Test_AKV_PAM_KFC_10_1_1: + runs-on: self-hosted + needs: + - Test_PAM_KFC_10_1_1 + env: + SECRET_NAME: "command-config-1011-az" + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.20" + - 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*" + + + + ## KFC 11.x.x kf_11_x_x: runs-on: ubuntu-latest needs: @@ -379,6 +447,7 @@ jobs: run: | go test -v ./cmd -run "^Test_PAM*" + # Package Tests Test_Kfutil_pkg: runs-on: ubuntu-latest