Skip to content

Commit

Permalink
Skip tests that require pulling container images
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Sep 12, 2024
1 parent 213a0df commit 8f1494a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ output: []`),
}

func TestE2E(t *testing.T) {
if testing.Short() {
// This test requires pulling containers; it must not be used when count > 2
t.Skip("skipping e2e test in short mode")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -184,6 +189,11 @@ output:
}

func TestE2EMultipleOutputs(t *testing.T) {
if testing.Short() {
// This test requires pulling containers; it must not be used when count > 2
t.Skip("skipping e2e test in short mode")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -220,6 +230,11 @@ outputs:
}

func TestE2EWorkflowDefaultInput(t *testing.T) {
if testing.Short() {
// This test requires pulling containers; it must not be used when count > 2
t.Skip("skipping e2e test in short mode")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -262,6 +277,11 @@ outputs:
// referenced in the main workflow is incorporated into the
// workflow's execution.
func Test_CacheSubworkflows(t *testing.T) {
if testing.Short() {
// This test requires pulling containers; it must not be used when count > 2
t.Skip("skipping e2e test in short mode")
}

fileCache, err := loadfile.NewFileCacheUsingContext(
"fixtures/test-subworkflow",
map[string]string{
Expand Down

0 comments on commit 8f1494a

Please sign in to comment.