fix: tf acc test pipeline
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
This commit is contained in:
parent
346538b09b
commit
afe4d490e7
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ import (
|
||||||
const (
|
const (
|
||||||
// Default location of credentials JSON
|
// Default location of credentials JSON
|
||||||
// credentialsFilePath = ".stackit/credentials.json" //nolint:gosec // linter false positive
|
// credentialsFilePath = ".stackit/credentials.json" //nolint:gosec // linter false positive
|
||||||
serviceAccountFilePath = ".stackit/service_account.json"
|
serviceAccountFilePath = "service_account.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
@ -103,7 +103,7 @@ func ResourceNameWithDateTime(name string) string {
|
||||||
|
|
||||||
func GetTestProjectServiceAccountJson(path string) string {
|
func GetTestProjectServiceAccountJson(path string) string {
|
||||||
var err error
|
var err error
|
||||||
token, tokenSet := os.LookupEnv("TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_JSON")
|
token, tokenSet := os.LookupEnv("TF_ACC_SERVICE_ACCOUNT_FILE")
|
||||||
if !tokenSet || token == "" {
|
if !tokenSet || token == "" {
|
||||||
token, err = readTestServiceAccountJsonFromFile(path)
|
token, err = readTestServiceAccountJsonFromFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue