-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix mssql_db_failover_existing test
- As well as testing the "existing" plan, it used another plan too, and therefore needed changes because of #922 - Also explicitly frees backing database on broker delete, which will hopefully reduce leaking of resources
- Loading branch information
Showing
3 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
package brokers | ||
|
||
import "csbbrokerpakazure/acceptance-tests/helpers/cf" | ||
import ( | ||
"csbbrokerpakazure/acceptance-tests/helpers/cf" | ||
) | ||
|
||
func (b *Broker) Delete() { | ||
// This is implicit when deleting the app, but sometimes that fails, so this ensures the resource is freed | ||
cf.Run("unbind-service", b.Name, "csb-sql") | ||
|
||
cf.Run("delete-service-broker", b.Name, "-f") | ||
b.app.Delete() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters