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

Function CreateUserInOrgRole

integration/helpers/user.go:122–129  ·  view source on GitHub ↗

CreateUserInOrgRole creates a user with a random username and password and gives them the specified role within a specific org. The new user's username and password are returned.

(org, role string)

Source from the content-addressed store, hash-verified

120// CreateUserInOrgRole creates a user with a random username and password and gives them the specified role within
121// a specific org. The new user's username and password are returned.
122func CreateUserInOrgRole(org, role string) (string, string) {
123 username, password := CreateUser()
124
125 session := CF("set-org-role", username, org, role)
126 Eventually(session).Should(Exit(0))
127
128 return username, password
129}
130
131// CreateUserInSpaceRole creates a user with a random username and password and gives them the specified role within
132// a specific space. The new user's username and password are returned.

Callers 3

SwitchToOrgRoleFunction · 0.85

Calls 2

CFFunction · 0.85
CreateUserFunction · 0.70

Tested by

no test coverage detected