Skip to content

Commit

Permalink
fix(store-types): Adding missing git-ref flag to templates-fetch
Browse files Browse the repository at this point in the history
chore(deps): Bumps deps and package version
  • Loading branch information
spbsoluble committed Oct 20, 2023
1 parent b421dd0 commit ee9cd8d
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 215 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean
env:
Expand Down
337 changes: 156 additions & 181 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ jobs:
# 10.x.x
kf_10_x_x:
runs-on: ubuntu-latest
needs:
needs:
- build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: echo "Running tests for KF 10.x.x"

### Store Type Tests
Test_StoreTypes_KFC_10_4_5:
runs-on: ubuntu-latest
needs:
needs:
- build
- kf_10_x_x
env:
Expand All @@ -55,7 +55,7 @@ jobs:
go test -v ./cmd -run "^Test_StoreTypes*"
Test_StoreTypes_KFC_10_2_1:
runs-on: ubuntu-latest
needs:
needs:
- build
- kf_10_x_x
env:
Expand All @@ -72,24 +72,43 @@ jobs:
unset KFUTIL_DEBUG
go test -v ./cmd -run "^Test_StoreTypes*"
# Test_StoreTypes_KFC_10_1_1:
# runs-on: ubuntu-latest
# needs:
# - build
# - kf_10_x_x
# env:
# SECRET_NAME: "command-config-1011-clean"
# KEYFACTOR_HOSTNAME: "int1011-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_10_1_1:
runs-on: ubuntu-latest
needs:
- build
- kf_10_x_x
env:
SECRET_NAME: "command-config-1011-clean"
KEYFACTOR_HOSTNAME: "int1011-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_10_1_1:
# runs-on: ubuntu-latest
# needs:
# - build
# - kf_10_x_x
# env:
# SECRET_NAME: "command-config-1011-clean"
# KEYFACTOR_HOSTNAME: "int1011-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*"

### Store Tests
Test_Stores_KFC_10_4_5:
Expand Down Expand Up @@ -129,25 +148,25 @@ 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:
# - 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_*"

### PAM Tests
Test_PAM_KFC_10_4_5:
Expand Down Expand Up @@ -189,25 +208,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:
# - 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*"

### PAM Tests AKV Auth Provider
Test_AKV_PAM_KFC_10_4_5:
Expand Down Expand Up @@ -261,128 +280,84 @@ jobs:
- name: Run tests
run: |
go test -v ./cmd -run "^Test_PAM*"
# Test_AKV_PAM_KFC_10_1_1:
# runs-on: self-hosted
# needs:
# - kf_10_x_x
# - 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*"
# # 11.x.x
# kf_11_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 11.x.x"
# ### Store Type Tests
# Test_StoreTypes_KFC_11_0_0:
# runs-on: ubuntu-latest
# needs:
# - build
# - kf_11_x_x
# env:
# SECRET_NAME: "command-config-1100-clean"
# KEYFACTOR_HOSTNAME: "int11-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*"
#
# ### Store Tests
# Test_Stores_KFC_11_0_0:
# runs-on: ubuntu-latest
# needs:
# - build
# - kf_11_x_x
# - Test_StoreTypes_KFC_11_0_0
# env:
# SECRET_NAME: "command-config-1100"
# KEYFACTOR_HOSTNAME: "integrations1100b3-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_*"
#
# ### PAM Tests
# Test_PAM_KFC_11_0_0:
# runs-on: ubuntu-latest
# needs:
# - build
# - kf_11_x_x
# - Test_StoreTypes_KFC_11_0_0
# env:
# SECRET_NAME: "command-config-1100"
# KEYFACTOR_HOSTNAME: "integrations1100b3-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*"
# ### PAM Tests AKV Auth Provider
# Test_AKV_PAM_KFC_11_0_0:
# runs-on: self-hosted
# needs:
# - build
# - kf_11_x_x
# - Test_StoreTypes_KFC_11_0_0
# - Test_PAM_KFC_11_0_0
# env:
# SECRET_NAME: "command-config-1100-az"
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
#
# - name: Get secret from Azure Key Vault
# run: |
# . ./examples/auth/akv/akv_auth.sh
#
# - name: Run tests
# run: |
# unset KFUTIL_DEBUG
# kfutil logout || true
# printenv | grep -i keyfactor
# go test -v ./cmd -run "^Test_PAM*"
kf_11_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 11.x.x"

### Store Type Tests
Test_StoreTypes_KFC_11_0_0:
runs-on: ubuntu-latest
needs:
- build
- kf_11_x_x
env:
SECRET_NAME: "command-config-1100-clean"
KEYFACTOR_HOSTNAME: "int11-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*"
### Store Tests
Test_Stores_KFC_11_0_0:
runs-on: ubuntu-latest
needs:
- build
- kf_11_x_x
- Test_StoreTypes_KFC_11_0_0
env:
SECRET_NAME: "command-config-1100"
KEYFACTOR_HOSTNAME: "integrations1100-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_*"

### PAM Tests AKV Auth Provider
Test_AKV_PAM_KFC_11_0_0:
runs-on: self-hosted
needs:
- Test_PAM_KFC_11_0_0
env:
SECRET_NAME: "command-config-1100-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*"
# Package Tests
Test_Kfutil_pkg:
runs-on: ubuntu-latest
needs:
Expand Down
Loading

0 comments on commit ee9cd8d

Please sign in to comment.