MCPcopy
hub / github.com/cloudfoundry/cli / LoginCF

Function LoginCF

integration/helpers/login.go:81–88  ·  view source on GitHub ↗

LoginCF logs into the CLI using the username and password from the CF_INT_USERNAME and CF_INT_PASSWORD environment variables, respectively, defaulting to "admin" for each if either is not set.

()

Source from the content-addressed store, hash-verified

79// and CF_INT_PASSWORD environment variables, respectively, defaulting to "admin" for
80// each if either is not set.
81func LoginCF() string {
82 if ClientCredentialsTestMode() {
83 return LoginCFWithClientCredentials()
84 }
85 username, password := GetCredentials()
86 LoginAs(username, password)
87 return username
88}
89
90// LoginCFWithClientCredentials logs into the CLI using client credentials from the CF_INT_CLIENT_ID and
91// CF_INT_CLIENT_SECRET environment variables and returns the client ID. If these environment variables

Calls 4

GetCredentialsFunction · 0.85
LoginAsFunction · 0.85

Tested by

no test coverage detected