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 all commits
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
16 changes: 16 additions & 0 deletions engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ output: []`),
}

func TestE2E(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

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

func TestE2EMultipleOutputs(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

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

func TestE2EWorkflowDefaultInput(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -262,6 +274,10 @@ outputs:
// referenced in the main workflow is incorporated into the
// workflow's execution.
func Test_CacheSubworkflows(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

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