creds_tests

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CredentialsSecretName = "gcsfuse-integration-tests"
View Source
const NameOfServiceAccount = "creds-integration-tests"

Variables

View Source
var WhitelistedGcpProjects = []string{"gcs-fuse-test", "gcs-fuse-test-ml"}

Functions

func ApplyPermissionToServiceAccount

func ApplyPermissionToServiceAccount(serviceAccount, permission string)

func CreateCredentials

func CreateCredentials() (serviceAccount, localKeyFilePath string)

func RevokePermission

func RevokePermission(serviceAccount, permission, bucket string)

func RunTestsForKeyFileAndGoogleApplicationCredentialsEnvVarSet

func RunTestsForKeyFileAndGoogleApplicationCredentialsEnvVarSet(testFlagSet [][]string, permission string, m *testing.M) (successCode int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL