github.com/willmadison/cli@v6.40.1-0.20181018160101-29d5937903ff+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  }