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

Function SwitchToSpaceRole

integration/helpers/login.go:200–205  ·  view source on GitHub ↗

SwitchToSpaceRole logs out of the CLI and logs back in as a newly-created user with the given space role in the given space and org.

(org, space, role string)

Source from the content-addressed store, hash-verified

198// SwitchToSpaceRole logs out of the CLI and logs back in as a newly-created user with the given
199// space role in the given space and org.
200func SwitchToSpaceRole(org, space, role string) string {
201 username, password := CreateUserInSpaceRole(org, space, role)
202 LogoutCF()
203 LoginAs(username, password)
204 return username
205}

Calls 3

CreateUserInSpaceRoleFunction · 0.85
LogoutCFFunction · 0.85
LoginAsFunction · 0.85

Tested by

no test coverage detected