fix: builder and sdk changes #81
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