Skip to content
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
Next Next commit
test(executor): add kubernetes runtime to CreateBuild test
  • Loading branch information
jbrockopp authored and cognifloyd committed Feb 28, 2023
commit d0fefc9a3bb629c91676b3d68ac9395a35b578fc
47 changes: 47 additions & 0 deletions executor/linux/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ func TestLinux_CreateBuild(t *testing.T) {
build: _build,
pipeline: "testdata/build/secrets/basic.yml",
},
{
name: "kubernetes-basic secrets pipeline",
failure: false,
logError: false,
runtime: constants.DriverKubernetes,
build: _build,
pipeline: "testdata/build/secrets/basic.yml",
},
{
name: "docker-basic services pipeline",
failure: false,
Expand All @@ -77,6 +85,14 @@ func TestLinux_CreateBuild(t *testing.T) {
build: _build,
pipeline: "testdata/build/services/basic.yml",
},
{
name: "kubernetes-basic services pipeline",
failure: false,
logError: false,
runtime: constants.DriverKubernetes,
build: _build,
pipeline: "testdata/build/services/basic.yml",
},
{
name: "docker-basic steps pipeline",
failure: false,
Expand All @@ -85,6 +101,14 @@ func TestLinux_CreateBuild(t *testing.T) {
build: _build,
pipeline: "testdata/build/steps/basic.yml",
},
{
name: "kubernetes-basic steps pipeline",
failure: false,
logError: false,
runtime: constants.DriverKubernetes,
build: _build,
pipeline: "testdata/build/steps/basic.yml",
},
{
name: "docker-basic stages pipeline",
failure: false,
Expand All @@ -93,6 +117,14 @@ func TestLinux_CreateBuild(t *testing.T) {
build: _build,
pipeline: "testdata/build/stages/basic.yml",
},
{
name: "kubernetes-basic stages pipeline",
failure: false,
logError: false,
runtime: constants.DriverKubernetes,
build: _build,
pipeline: "testdata/build/stages/basic.yml",
},
{
name: "docker-steps pipeline with empty build",
failure: true,
Expand All @@ -101,6 +133,14 @@ func TestLinux_CreateBuild(t *testing.T) {
build: new(library.Build),
pipeline: "testdata/build/steps/basic.yml",
},
{
name: "kubernetes-steps pipeline with empty build",
failure: true,
logError: false,
runtime: constants.DriverKubernetes,
build: new(library.Build),
pipeline: "testdata/build/steps/basic.yml",
},
}

// run test
Expand Down Expand Up @@ -1457,6 +1497,13 @@ func TestLinux_ExecBuild(t *testing.T) {
runtime: constants.DriverDocker,
pipeline: "testdata/build/stages/basic.yml",
},
{
name: "kubernetes-basic stages pipeline",
failure: false,
logError: false,
runtime: constants.DriverKubernetes,
pipeline: "testdata/build/stages/basic.yml",
},
{
name: "docker-stages pipeline with image not found",
failure: true,
Expand Down