MCPcopy Index your code
hub / github.com/cloudfoundry/cli / SwitchToNoRole

Function SwitchToNoRole

integration/helpers/login.go:182–187  ·  view source on GitHub ↗

SwitchToNoRole logs out of the CLI and logs back in as a newly-created user without a role.

()

Source from the content-addressed store, hash-verified

180
181// SwitchToNoRole logs out of the CLI and logs back in as a newly-created user without a role.
182func SwitchToNoRole() string {
183 username, password := CreateUser()
184 LogoutCF()
185 LoginAs(username, password)
186 return username
187}
188
189// SwitchToOrgRole logs out of the CLI and logs back in as a newly-created user with the given
190// org role in the given org.

Callers

nothing calls this directly

Calls 3

LogoutCFFunction · 0.85
LoginAsFunction · 0.85
CreateUserFunction · 0.70

Tested by

no test coverage detected