diff --git a/test/acs-engine-test/main.go b/test/acs-engine-test/main.go index 429930f7cc..16fb6ed38e 100644 --- a/test/acs-engine-test/main.go +++ b/test/acs-engine-test/main.go @@ -164,7 +164,10 @@ func (m *TestManager) Run() error { FailureCount: 1, } - result, _ := promote.RunPromoteToFailure(sa, promToFailInfo) + result, err := promote.RunPromoteToFailure(sa, promToFailInfo) + if err != nil { + fmt.Printf("Got error from RunPromoteToFailure: %#v\n", err) + } if result == true { success[index] = false } else { @@ -190,6 +193,12 @@ func (m *TestManager) Run() error { } + if success[index] { + fmt.Printf("Promote to Fail passed: SUCCESS [%s] [%s]\n", errorInfo.Step, testName) + } else { + fmt.Printf("Promote to Fail did not pass: ERROR [%s] [%s]\n", errorInfo.Step, testName) + } + } else { for attempt := 0; attempt < retries; attempt++ { errorInfo := m.testRun(dep, index, attempt, timeout) @@ -361,6 +370,8 @@ func (m *TestManager) testRun(d config.Deployment, index, attempt int, timeout t func isPromoteToFailureStep(step string) bool { switch step { + case stepDeployTemplate: + return true case stepValidate: return true case stepPostDeploy: diff --git a/test/acs-engine-test/promote/promote.go b/test/acs-engine-test/promote/promote.go index 4774ecc26b..9749ff3ebd 100644 --- a/test/acs-engine-test/promote/promote.go +++ b/test/acs-engine-test/promote/promote.go @@ -175,6 +175,7 @@ func RunPromoteToFailure(sa StorageAccount, testRunPromToFail DigitalSignalFilte fmt.Printf("Existing Failure Count : %v\n\n", existingFailureCount) newFailureCount := existingFailureCount.(float64) + testRunPromToFail.FailureCount + fmt.Printf("Incremented Failure Count to : %v\n\n", newFailureCount) if err = updateEntity(entity, newFailureCount, testRunPromToFail.FailureStr); err != nil { return false, err }