TestIncorrectPodGCStrategy verifies pod gc strategy is correct.
(t *testing.T)
| 1703 | |
| 1704 | // TestIncorrectPodGCStrategy verifies pod gc strategy is correct. |
| 1705 | func TestIncorrectPodGCStrategy(t *testing.T) { |
| 1706 | wf := unmarshalWf(invalidPodGC) |
| 1707 | err := ValidateWorkflow(logging.TestContext(t.Context()), wftmplGetter, cwftmplGetter, wf, nil, ValidateOpts{}) |
| 1708 | require.EqualError(t, err, "podGC.strategy unknown strategy 'Foo'") |
| 1709 | } |
| 1710 | |
| 1711 | func TestInvalidPodGCLabelSelector(t *testing.T) { |
| 1712 | wf := unmarshalWf(` |
nothing calls this directly
no test coverage detected