-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auth): Added support for sourcing credentials from Azure Key Vau…
…lt using Azure ID. feat(cli): Added enhanced logging. feat(store-types): `store-types create` now supports the `--all` flag. feat(stores): `stores` sub CLI is now non-experimental. feat(stores): Bulk import of stores via `stores import csv` sub CLI is now non-experimental. feat(stores): Added `delete` command to stores as well as a `--all` option. fix(login): the default `APIPath` no longer overwrites preexisting values. chore(tests): Added `pam`, `stores`, `store-type`, `stores import csv` unit tests. chore(docs): Updated CLI docs and added dedicated doc for auth provider configuration.
- Loading branch information
1 parent
1ddf28e
commit efb1f90
Showing
91 changed files
with
6,479 additions
and
2,723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
name: Go Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
|
||
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: Install Azure CLI | ||
run: | | ||
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | ||
az --version | ||
# Store Type Tests | ||
Test_Stores_KFC_11_0_0: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1100" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_Stores*" | ||
|
||
Test_StoreTypes_KFC_10_4_0: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1040-clean" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_StoreType*" | ||
Test_StoreTypes_KFC_10_2_1: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1021-clean" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_StoreType*" | ||
|
||
# Store Tests | ||
Test_StoreTypes_KFC_11_0_0: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1100-clean" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_StoreType*" | ||
Test_Stores_KFC_10_4_0: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1040" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_Stores*" | ||
Test_Stores_KFC_10_2_1: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1021" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_Stores*" | ||
|
||
# PAM Tests | ||
Test_PAM_KFC_11_0_0: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1100" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_PAM*" | ||
Test_PAM_KFC_10_4_0: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1040" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_PAM*" | ||
Test_PAM_KFC_10_2_1: | ||
runs-on: self-hosted | ||
needs: build | ||
env: | ||
SECRET_NAME: "command-config-1021" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: list dir | ||
run: ls -la | ||
|
||
- name: Get secret from Azure Key Vault | ||
run: | | ||
. ./examples/auth/akv/akv_auth.sh | ||
- name: Run tests | ||
run: go test -v ./cmd -run "^Test_PAM*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.