DeleteStack deletes a specific stack
(name string)
| 94 | |
| 95 | // DeleteStack deletes a specific stack |
| 96 | func DeleteStack(name string) { |
| 97 | session := CF("stack", "--guid", name) |
| 98 | Eventually(session).Should(Exit(0)) |
| 99 | guid := strings.TrimSpace(string(session.Out.Contents())) |
| 100 | |
| 101 | session = CF("curl", "-v", "-X", "DELETE", "/v3/stacks/"+guid) |
| 102 | |
| 103 | Eventually(session).Should(Say("204 No Content")) |
| 104 | Eventually(session).Should(Exit(0)) |
| 105 | } |
| 106 | |
| 107 | // EnsureMinimumNumberOfStacks ensures there are at least <num> stacks in the foundation by creating new ones if there |
| 108 | // are fewer than the specified number |
no test coverage detected