init commit for coverting to podman
This commit is contained in:
@@ -32,7 +32,7 @@ func TestParse(t *testing.T) {
|
||||
},
|
||||
&Pipeline{
|
||||
Kind: "pipeline",
|
||||
Type: "docker",
|
||||
Type: "podman",
|
||||
Name: "default",
|
||||
Version: "1",
|
||||
Environment: map[string]string{
|
||||
@@ -48,8 +48,8 @@ func TestParse(t *testing.T) {
|
||||
Clone: manifest.Clone{
|
||||
Depth: 50,
|
||||
},
|
||||
Deps: []string{"dependency"},
|
||||
PullSecrets: []string{"dockerconfigjson"},
|
||||
Deps: []string{"dependency"},
|
||||
PullSecrets: []string{"podmanconfigjson"},
|
||||
Trigger: manifest.Conditions{
|
||||
Branch: manifest.Condition{
|
||||
Include: []string{"master"},
|
||||
@@ -130,7 +130,7 @@ func TestParseNoMatch(t *testing.T) {
|
||||
func TestMatch(t *testing.T) {
|
||||
r := &manifest.RawResource{
|
||||
Kind: "pipeline",
|
||||
Type: "docker",
|
||||
Type: "podman",
|
||||
}
|
||||
if match(r) == false {
|
||||
t.Errorf("Expect match, got false")
|
||||
@@ -138,7 +138,7 @@ func TestMatch(t *testing.T) {
|
||||
|
||||
r = &manifest.RawResource{
|
||||
Kind: "approval",
|
||||
Type: "docker",
|
||||
Type: "podman",
|
||||
}
|
||||
if match(r) == true {
|
||||
t.Errorf("Expect kind mismatch, got true")
|
||||
|
||||
@@ -16,7 +16,7 @@ var (
|
||||
// Defines the Resource Kind and Type.
|
||||
const (
|
||||
Kind = "pipeline"
|
||||
Type = "docker"
|
||||
Type = "podman"
|
||||
)
|
||||
|
||||
// Pipeline is a pipeline resource that executes pipelines
|
||||
|
||||
@@ -39,7 +39,7 @@ func TestGetters(t *testing.T) {
|
||||
pipeline := &Pipeline{
|
||||
Version: "1.0.0",
|
||||
Kind: "pipeline",
|
||||
Type: "docker",
|
||||
Type: "podman",
|
||||
Name: "default",
|
||||
Deps: []string{"before"},
|
||||
Platform: platform,
|
||||
|
||||
4
engine/resource/testdata/linterr.yml
vendored
4
engine/resource/testdata/linterr.yml
vendored
@@ -1,6 +1,6 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: podman
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
@@ -12,4 +12,4 @@ steps:
|
||||
- go build
|
||||
- go test
|
||||
|
||||
...
|
||||
...
|
||||
|
||||
4
engine/resource/testdata/malformed.yml
vendored
4
engine/resource/testdata/malformed.yml
vendored
@@ -1,8 +1,8 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: podman
|
||||
|
||||
steps:
|
||||
foo: bar
|
||||
|
||||
...
|
||||
...
|
||||
|
||||
4
engine/resource/testdata/manifest.yml
vendored
4
engine/resource/testdata/manifest.yml
vendored
@@ -10,7 +10,7 @@ data: f0e4c2f76c58916ec25
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: podman
|
||||
name: default
|
||||
version: 1
|
||||
|
||||
@@ -54,7 +54,7 @@ services:
|
||||
command: [ "--debug" ]
|
||||
|
||||
image_pull_secrets:
|
||||
- dockerconfigjson
|
||||
- podmanconfigjson
|
||||
|
||||
trigger:
|
||||
branch: [ master ]
|
||||
|
||||
4
engine/resource/testdata/nilstep.yml
vendored
4
engine/resource/testdata/nilstep.yml
vendored
@@ -1,9 +1,9 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: podman
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- ~
|
||||
|
||||
...
|
||||
...
|
||||
|
||||
4
engine/resource/testdata/nomatch.yml
vendored
4
engine/resource/testdata/nomatch.yml
vendored
@@ -1,5 +1,5 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
type: podman
|
||||
|
||||
...
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user