Skip to content

Commit

Permalink
(secure-onboarding) Enable acceptance test for Secure cloud account (#…
Browse files Browse the repository at this point in the history
…446)

* (secure-onboarding) Enable acceptance test for Secure cloud account

* Fix lint issue

* Fix fmt
  • Loading branch information
ravinadhruve10 authored Nov 10, 2023
1 parent f32bd98 commit 1bfcf30
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions sysdig/resource_sysdig_secure_cloud_auth_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

package sysdig_test

// TODO: Enable tests back once the BE is released with latest API changes
/*
import (
"bytes"
b64 "encoding/base64"
Expand Down Expand Up @@ -140,12 +138,18 @@ func getEncodedServiceAccountKey(resourceName string, accountID string) string {
UniverseDomain: "googleapis.com",
}

test_service_account_key_bytes, _ := json.Marshal(test_service_account_key)
test_service_account_key_bytes, err := json.Marshal(test_service_account_key)
if err != nil {
fmt.Printf("Failed to marshal test_service_account_key: %v", err)
}

var out bytes.Buffer
json.Indent(&out, test_service_account_key_bytes, "", " ")
err = json.Indent(&out, test_service_account_key_bytes, "", " ")
if err != nil {
fmt.Printf("Failed to indent test_service_account_key: %v", err)
}
out.WriteByte('\n')

test_service_account_key_encoded := b64.StdEncoding.EncodeToString(out.Bytes())
return test_service_account_key_encoded
}
*/

0 comments on commit 1bfcf30

Please sign in to comment.