github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/integration/helpers/client_credentials.go (about) 1 package helpers 2 3 import ( 4 "os" 5 6 . "github.com/onsi/ginkgo" 7 ) 8 9 func SkipIfClientCredentialsNotSet() (string, string) { 10 privateClientID := os.Getenv("CF_INT_CLIENT_ID") 11 privateClientSecret := os.Getenv("CF_INT_CLIENT_SECRET") 12 13 if privateClientID == "" || privateClientSecret == "" { 14 Skip("CF_INT_CLIENT_ID or CF_INT_CLIENT_SECRET is not set") 15 } 16 17 return privateClientID, privateClientSecret 18 }