-
Story
-
Resolution: Done
-
Minor
-
None
-
None
-
False
-
None
-
False
We were testing with forcing a failure in upgrade.go to catch a condition where a test didn't run due to a previous failure
err != nil {
//before returning the err force a failure in a test scenario
disruption.RecordJUnit(f, "[sig-cluster-lifecycle] intentional test failure", func() (error, bool)
)
recordClusterEvent(kubeClient, uid, "Upgrade", "UpgradeFailed", fmt.Sprintf("failed to acknowledge version: %v", err), true)
return err
} else {
//force the failure here as well just to make sure we get our signal
disruption.RecordJUnit(f, "[sig-cluster-lifecycle] intentional test failure", func() (error, bool)
)
}
The else condition above fired and the test failed. However the job succeeded. Question is how did the job succeed with a failed test.