Skip to content

Commit

Permalink
fix(test): fix TestWFDefaultWithWFTAndWf flakiness (#4507)
Browse files Browse the repository at this point in the history
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
  • Loading branch information
sarabala1979 committed Nov 11, 2020
1 parent 64ae330 commit 2dab2d1
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions workflow/controller/operator_wfdefault_test.go
Expand Up @@ -20,11 +20,7 @@ var wfDefaults = `
spec:
entrypoint: whalesay
activeDeadlineSeconds: 7200
arguments:
artifacts:
-
name: message
path: /tmp/message
arguments:
parameters:
-
name: message
Expand Down Expand Up @@ -77,11 +73,7 @@ metadata:
workflows.argoproj.io/archive-strategy: "false"
spec:
activeDeadlineSeconds: 7200
arguments:
artifacts:
-
name: message
path: /tmp/message
arguments:
parameters:
-
name: message
Expand Down Expand Up @@ -141,13 +133,6 @@ var storedSpecResult = `
{
"activeDeadlineSeconds": 7200,
"arguments": {
"artifacts": [
{
"name": "message",
"path": "/tmp/message",
"url": "http://artifactory:8081/artifactory/generic-local/hello_world.tgz"
}
],
"parameters": [
{
"name": "message",
Expand Down Expand Up @@ -263,7 +248,6 @@ func TestWFDefaultWithWFTAndWf(t *testing.T) {
TTLStrategy: &ttlStrategy,
},
}
//resultSpec.Arguments.Parameters = append(resultSpec.Arguments.Parameters, args.Parameters...)
resultSpec.Entrypoint = "Test"
resultSpec.TTLStrategy = &ttlStrategy
resultSpec.WorkflowTemplateRef = &wfv1.WorkflowTemplateRef{Name: "workflow-template-submittable"}
Expand All @@ -276,10 +260,12 @@ func TestWFDefaultWithWFTAndWf(t *testing.T) {

t.Run("SubmitComplexWorkflowRefWithArguments", func(t *testing.T) {
param := wfv1.Parameter{
Name: "Test",
Name: "Test",
Value: wfv1.Int64OrStringPtr("welcome"),
}
art := wfv1.Artifact{
Name: "TestA",
Path: "tmp/test",
}

ttlStrategy := wfv1.TTLStrategy{
Expand Down

0 comments on commit 2dab2d1

Please sign in to comment.