Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(controller): Add memoization tests. See #3214 (#3455) #3466

Merged
merged 2 commits into from Jul 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions workflow/controller/operator_test.go
Expand Up @@ -3983,7 +3983,6 @@ func TestResubmitMemoization(t *testing.T) {
kind: Workflow
metadata:
name: my-wf
namespace: argo
spec:
entrypoint: main
templates:
Expand All @@ -3993,7 +3992,8 @@ spec:
status:
phase: Failed
nodes:
my-wf-lzarl:
my-wf:
name: my-wf
phase: Failed
`)
wf, err := util.FormulateResubmitWorkflow(wf, true)
Expand All @@ -4013,5 +4013,9 @@ status:
assert.Fail(t, "invalid template")
}
}
list, err := controller.kubeclientset.CoreV1().Pods("").List(metav1.ListOptions{})
if assert.NoError(t, err) {
assert.Len(t, list.Items, 1)
}
}
}