Skip to content

Commit

Permalink
Debug CI failure
Browse files Browse the repository at this point in the history
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
  • Loading branch information
shtripat committed Jan 10, 2024
1 parent 7e04980 commit 086ed95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kesconf/testdata/vault/deploy_vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ function setup_vault() {
export KES_API_KEY=kes:v1:AP6gQlUXjWj5iY1WkqeXKIR0OXTpyoiHa81XTY7ISy3l
export VAULT_APPROLE_ID=${role_id}
export VAULT_APPROLE_SECRET=${secret_id}
export VAULT_ADDR=https://127.0.0.1:8200
export VAULT_SKIP_VERIFY=true
EOF
cat env.sh
}
Expand Down
5 changes: 5 additions & 0 deletions kesconf/vault_ci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package kesconf

import (
"flag"
"fmt"
"os"
"testing"
)

Expand All @@ -21,6 +23,9 @@ func TestVaultCI(t *testing.T) {
t.Fatal(err)
}

fmt.Println("VAULT_APPROLE_ID=", os.Getenv("VAULT_APPROLE_ID"))
fmt.Println("VAULT_APPROLE_SECRET=", os.Getenv("VAULT_APPROLE_SECRET"))
fmt.Println("Keystore AppRole: ", config.KeyStore.(*VaultKeyStore).AppRole)
if _, ok := config.KeyStore.(*VaultKeyStore); !ok {
t.Fatalf("Invalid Keystore: want %T - got %T", config.KeyStore, &VaultKeyStore{})
}
Expand Down

0 comments on commit 086ed95

Please sign in to comment.