MCPcopy
hub / github.com/argoproj/argo-workflows / TestIncorrectPodGCStrategy

Function TestIncorrectPodGCStrategy

workflow/validate/validate_test.go:1705–1709  ·  view source on GitHub ↗

TestIncorrectPodGCStrategy verifies pod gc strategy is correct.

(t *testing.T)

Source from the content-addressed store, hash-verified

1703
1704// TestIncorrectPodGCStrategy verifies pod gc strategy is correct.
1705func 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
1711func TestInvalidPodGCLabelSelector(t *testing.T) {
1712 wf := unmarshalWf(`

Callers

nothing calls this directly

Calls 4

TestContextFunction · 0.92
unmarshalWfFunction · 0.85
ValidateWorkflowFunction · 0.85
ContextMethod · 0.65

Tested by

no test coverage detected