Skip to content

Commit

Permalink
using this branch for test failure investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
frodopwns committed Apr 16, 2020
1 parent 2d608ac commit 5308d24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ func EnsureInstanceWithResult(ctx context.Context, t *testing.T, tc TestContext,
statused := ConvertToStatus(instance)
// if we expect this resource to end up with provisioned == true then failedProvisioning == true is unrecoverable
if provisioned && statused.Status.FailedProvisioning {
if strings.Contains(instance.Status.Message, "already exists") {
t.Log("")
t.Log("-------")
t.Log("unexpected failed provisioning encountered")
t.Logf("%+v\n", statused.Status)
t.Log("-------")
t.Log("")
}
return helpers.NewStop(fmt.Errorf("Failed provisioning: %s", statused.Status.Message))
}
if !strings.Contains(statused.Status.Message, message) || statused.Status.Provisioned != provisioned {
Expand Down

0 comments on commit 5308d24

Please sign in to comment.