Skip to content

Commit

Permalink
fixing SCM test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Mar 16, 2022
1 parent ea41512 commit 27f3a2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
6 changes: 2 additions & 4 deletions pkg/engine/engine_golang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import (
"github.com/stretchr/testify/suite"
"io/ioutil"
"path"
//"path/filepath"
"github.com/packagrio/go-common/scm/mock"
"github.com/packagrio/releasr/pkg/config/mock"

"os"
"testing"
)
Expand All @@ -29,7 +27,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: 1 addition & 2 deletions pkg/engine/engine_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"path"
//"path/filepath"
mock_scm "github.com/packagrio/go-common/scm/mock"
"github.com/packagrio/releasr/pkg/config/mock"
"os"
"testing"
)
Expand All @@ -29,7 +28,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
5 changes: 1 addition & 4 deletions pkg/engine/engine_python_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import (
"io/ioutil"
"os"

//"path/filepath"
"github.com/packagrio/go-common/scm/mock"
"github.com/packagrio/releasr/pkg/config/mock"
"testing"
)

Expand All @@ -28,7 +25,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
6 changes: 2 additions & 4 deletions pkg/engine/engine_ruby_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import (
"github.com/packagrio/releasr/pkg/engine"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
//"path/filepath"
"github.com/packagrio/go-common/scm/mock"
"github.com/packagrio/releasr/pkg/config/mock"

"testing"
)

Expand All @@ -24,7 +22,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", pipelineDat, testConfig, nil)
require.NoError(t, err)

//test
Expand Down

0 comments on commit 27f3a2f

Please sign in to comment.