diff --git a/pkg/engine/engine_golang_test.go b/pkg/engine/engine_golang_test.go index 73a243b..e654105 100644 --- a/pkg/engine/engine_golang_test.go +++ b/pkg/engine/engine_golang_test.go @@ -7,16 +7,17 @@ import ( "github.com/golang/mock/gomock" "github.com/packagrio/go-common/pipeline" "github.com/packagrio/go-common/scm" + "github.com/packagrio/go-common/scm/mock" "github.com/packagrio/releasr/pkg/config" + "github.com/packagrio/releasr/pkg/config/mock" "github.com/packagrio/releasr/pkg/engine" releasrUtils "github.com/packagrio/releasr/pkg/utils" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" "io/ioutil" - "path" - "github.com/packagrio/go-common/scm/mock" - "github.com/packagrio/releasr/pkg/config/mock" "os" + "path" + "net/http" "testing" ) @@ -28,7 +29,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, testConfig, nil) + githubScm, err := scm.Create("github", pipelineData, testConfig, http.Client{}) require.NoError(t, err) //test diff --git a/pkg/engine/engine_node_test.go b/pkg/engine/engine_node_test.go index 52e93cc..94acbca 100644 --- a/pkg/engine/engine_node_test.go +++ b/pkg/engine/engine_node_test.go @@ -18,6 +18,7 @@ import ( mock_scm "github.com/packagrio/go-common/scm/mock" "github.com/packagrio/releasr/pkg/config/mock" "os" + "net/http" "testing" ) @@ -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, testConfig, nil) + githubScm, err := scm.Create("github", pipelineData, testConfig, http.Client{}) require.NoError(t, err) //test diff --git a/pkg/engine/engine_python_test.go b/pkg/engine/engine_python_test.go index 1844175..2418d9a 100644 --- a/pkg/engine/engine_python_test.go +++ b/pkg/engine/engine_python_test.go @@ -13,10 +13,8 @@ import ( "github.com/stretchr/testify/suite" "io/ioutil" "os" + "net/http" - //"path/filepath" - "github.com/packagrio/go-common/scm/mock" - "github.com/packagrio/releasr/pkg/config/mock" "testing" ) @@ -28,7 +26,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, testConfig, nil) + githubScm, err := scm.Create("github", pipelineData, testConfig, http.Client{}) require.NoError(t, err) //test diff --git a/pkg/engine/engine_ruby_test.go b/pkg/engine/engine_ruby_test.go index 96e64fd..5c21ece 100644 --- a/pkg/engine/engine_ruby_test.go +++ b/pkg/engine/engine_ruby_test.go @@ -15,6 +15,8 @@ import ( "github.com/packagrio/go-common/scm/mock" "github.com/packagrio/releasr/pkg/config/mock" "testing" + "net/http" + ) func TestEngineRuby_Create(t *testing.T) { @@ -25,7 +27,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, testConfig, nil) + githubScm, err := scm.Create("github", pipelineData, testConfig, http.Client{}) require.NoError(t, err) //test