Skip to content

Commit

Permalink
fiximg scm create functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Mar 16, 2022
1 parent 0105928 commit ed9763b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pkg/engine/engine_chef_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build chef
// +build chef

package engine_test
Expand Down Expand Up @@ -29,7 +30,7 @@ func TestEngineChef_Create(t *testing.T) {
testConfig.Set(config.PACKAGR_SCM, "github")
testConfig.Set(config.PACKAGR_PACKAGE_TYPE, "chef")
pipelineData := new(pipeline.Data)
githubScm, err := scm.Create("github", pipelineData)
githubScm, err := scm.Create("github", pipelineData, testConfig, nil)
require.NoError(t, err)

//test
Expand Down
3 changes: 2 additions & 1 deletion pkg/engine/engine_golang_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build golang
// +build golang

package engine_test
Expand Down Expand Up @@ -29,7 +30,7 @@ func TestEngineGolang_Create(t *testing.T) {
testConfig.Set(config.PACKAGR_SCM, "github")
testConfig.Set(config.PACKAGR_PACKAGE_TYPE, "golang")
pipelineData := new(pipeline.Data)
githubScm, err := scm.Create("github", pipelineData)
githubScm, err := scm.Create("github", pipelineData, testConfig, nil)
require.NoError(t, err)

//test
Expand Down
3 changes: 2 additions & 1 deletion pkg/engine/engine_node_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build node
// +build node

package engine_test
Expand Down Expand Up @@ -29,7 +30,7 @@ func TestEngineNode_Create(t *testing.T) {
testConfig.Set(config.PACKAGR_SCM, "github")
testConfig.Set(config.PACKAGR_PACKAGE_TYPE, "node")
pipelineData := new(pipeline.Data)
githubScm, err := scm.Create("github", pipelineData)
githubScm, err := scm.Create("github", pipelineData, testConfig, nil)
require.NoError(t, err)

//test
Expand Down
3 changes: 2 additions & 1 deletion pkg/engine/engine_python_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build python
// +build python

package engine_test
Expand Down Expand Up @@ -29,7 +30,7 @@ func TestEnginePython_Create(t *testing.T) {
testConfig.Set(config.PACKAGR_SCM, "github")
testConfig.Set(config.PACKAGR_PACKAGE_TYPE, "python")
pipelineData := new(pipeline.Data)
githubScm, err := scm.Create("github", pipelineData)
githubScm, err := scm.Create("github", pipelineData, testConfig, nil)
require.NoError(t, err)

//test
Expand Down
3 changes: 2 additions & 1 deletion pkg/engine/engine_ruby_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ruby
// +build ruby

package engine_test
Expand Down Expand Up @@ -29,7 +30,7 @@ func TestEngineRuby_Create(t *testing.T) {
testConfig.Set(config.PACKAGR_SCM, "github")
testConfig.Set(config.PACKAGR_PACKAGE_TYPE, "ruby")
pipelineData := new(pipeline.Data)
githubScm, err := scm.Create("github", pipelineData)
githubScm, err := scm.Create("github", pipelineData, testConfig, nil)
require.NoError(t, err)

//test
Expand Down

0 comments on commit ed9763b

Please sign in to comment.