From a319f263c914315a78fafd5a46cf164700abd6ed Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 26 Oct 2019 11:16:40 -0700 Subject: [PATCH] unit tests reflect clone pulls if-not-exists --- engine/compiler/clone_test.go | 2 +- engine/compiler/testdata/graph.json | 1 + engine/compiler/testdata/serial.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/compiler/clone_test.go b/engine/compiler/clone_test.go index e1ca870..92ae4b1 100644 --- a/engine/compiler/clone_test.go +++ b/engine/compiler/clone_test.go @@ -43,7 +43,7 @@ func TestClone(t *testing.T) { ID: "random", Image: "drone/git:latest", Name: "clone", - Pull: engine.PullDefault, + Pull: engine.PullIfNotExists, RunPolicy: engine.RunAlways, WorkingDir: "/drone/src", Volumes: []*engine.VolumeMount{ diff --git a/engine/compiler/testdata/graph.json b/engine/compiler/testdata/graph.json index ff02bc6..2de3fed 100644 --- a/engine/compiler/testdata/graph.json +++ b/engine/compiler/testdata/graph.json @@ -7,6 +7,7 @@ "image": "drone/git:latest", "labels": {}, "name": "clone", + "pull": "if-not-exists", "run_policy": "always", "volumes": [ { diff --git a/engine/compiler/testdata/serial.json b/engine/compiler/testdata/serial.json index ff02bc6..0a8addd 100644 --- a/engine/compiler/testdata/serial.json +++ b/engine/compiler/testdata/serial.json @@ -8,6 +8,7 @@ "labels": {}, "name": "clone", "run_policy": "always", + "pull": "if-not-exists", "volumes": [ { "name": "_workspace",