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

Skip tests that require pulling container images #209

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
dbutenhof marked this conversation as resolved.
Show resolved Hide resolved
}

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
Loading