Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk committed Jan 11, 2021
1 parent b832d37 commit bb27664
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/native/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func TestNative_Compile_StagesPipeline(t *testing.T) {
Version: "1",
ID: "__0",
Metadata: pipeline.Metadata{
Clone: true,
Template: false,
},
Stages: pipeline.StageSlice{
Expand Down Expand Up @@ -427,6 +428,7 @@ func TestNative_Compile_StepsPipeline(t *testing.T) {
Version: "1",
ID: "__0",
Metadata: pipeline.Metadata{
Clone: true,
Template: false,
},
Steps: pipeline.ContainerSlice{
Expand Down Expand Up @@ -616,6 +618,7 @@ func TestNative_Compile_StagesPipelineTemplate(t *testing.T) {
Version: "1",
ID: "__0",
Metadata: pipeline.Metadata{
Clone: true,
Template: false,
},
Stages: pipeline.StageSlice{
Expand Down Expand Up @@ -839,6 +842,7 @@ func TestNative_Compile_StepsPipelineTemplate(t *testing.T) {
Version: "1",
ID: "__0",
Metadata: pipeline.Metadata{
Clone: true,
Template: false,
},
Steps: pipeline.ContainerSlice{
Expand Down Expand Up @@ -1011,6 +1015,7 @@ func TestNative_Compile_InvalidType(t *testing.T) {
Version: "1",
ID: "__0",
Metadata: pipeline.Metadata{
Clone: true,
Template: false,
},
Steps: pipeline.ContainerSlice{
Expand Down
6 changes: 6 additions & 0 deletions compiler/native/transform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func TestNative_TransformStages(t *testing.T) {
want := &pipeline.Build{
ID: "__0",
Version: "v1",
Metadata: pipeline.Metadata{
Clone: true,
},
Services: pipeline.ContainerSlice{
&pipeline.Container{
ID: "service___0_postgres backend",
Expand Down Expand Up @@ -252,6 +255,9 @@ func TestNative_TransformSteps(t *testing.T) {
want := &pipeline.Build{
ID: "__0",
Version: "v1",
Metadata: pipeline.Metadata{
Clone: true,
},
Services: pipeline.ContainerSlice{
&pipeline.Container{
ID: "service___0_postgres backend",
Expand Down

0 comments on commit bb27664

Please sign in to comment.