unit tests reflect clone pulls if-not-exists
This commit is contained in:
@@ -43,7 +43,7 @@ func TestClone(t *testing.T) {
|
|||||||
ID: "random",
|
ID: "random",
|
||||||
Image: "drone/git:latest",
|
Image: "drone/git:latest",
|
||||||
Name: "clone",
|
Name: "clone",
|
||||||
Pull: engine.PullDefault,
|
Pull: engine.PullIfNotExists,
|
||||||
RunPolicy: engine.RunAlways,
|
RunPolicy: engine.RunAlways,
|
||||||
WorkingDir: "/drone/src",
|
WorkingDir: "/drone/src",
|
||||||
Volumes: []*engine.VolumeMount{
|
Volumes: []*engine.VolumeMount{
|
||||||
|
|||||||
1
engine/compiler/testdata/graph.json
vendored
1
engine/compiler/testdata/graph.json
vendored
@@ -7,6 +7,7 @@
|
|||||||
"image": "drone/git:latest",
|
"image": "drone/git:latest",
|
||||||
"labels": {},
|
"labels": {},
|
||||||
"name": "clone",
|
"name": "clone",
|
||||||
|
"pull": "if-not-exists",
|
||||||
"run_policy": "always",
|
"run_policy": "always",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
|
|||||||
1
engine/compiler/testdata/serial.json
vendored
1
engine/compiler/testdata/serial.json
vendored
@@ -8,6 +8,7 @@
|
|||||||
"labels": {},
|
"labels": {},
|
||||||
"name": "clone",
|
"name": "clone",
|
||||||
"run_policy": "always",
|
"run_policy": "always",
|
||||||
|
"pull": "if-not-exists",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "_workspace",
|
"name": "_workspace",
|
||||||
|
|||||||
Reference in New Issue
Block a user