示例#1
0
func unsetAPI() {
	Eventually(helpers.CF("api", "--unset")).Should(Exit(0))
}
示例#2
0
func targetOrgAndSpace(org string, space string) {
	Eventually(helpers.CF("target", "-o", org, "-s", space)).Should(Exit(0))
}
示例#3
0
func setAPI() {
	Eventually(helpers.CF("api", getAPI(), skipSSLValidation)).Should(Exit(0))
}
示例#4
0
func createOrgAndSpace(org string, space string) {
	Eventually(helpers.CF("create-org", org)).Should(Exit(0))
	Eventually(helpers.CF("create-space", space, "-o", org)).Should(Exit(0))
}
示例#5
0
func logoutCF() {
	Eventually(helpers.CF("logout")).Should(Exit(0))
}
示例#6
0
func loginCF() {
	username, password := getCredentials()
	Eventually(helpers.CF("auth", username, password)).Should(Exit(0))
}
示例#7
0
func targetOrg(org string) {
	Eventually(helpers.CF("target", "-o", org)).Should(Exit(0))
}
示例#8
0
func createSpace(space string) {
	Eventually(helpers.CF("create-space", space)).Should(Exit(0))
}