GetOrgGUID gets the GUID of an org with the given name.
(orgName string)
| 99 | |
| 100 | // GetOrgGUID gets the GUID of an org with the given name. |
| 101 | func GetOrgGUID(orgName string) string { |
| 102 | session := CF("org", "--guid", orgName) |
| 103 | Eventually(session).Should(Exit(0)) |
| 104 | return strings.TrimSpace(string(session.Out.Contents())) |
| 105 | } |
| 106 | |
| 107 | // GetSpaceGUID gets the GUID of a space with the given name. |
| 108 | func GetSpaceGUID(spaceName string) string { |
no test coverage detected