mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-06 02:36:54 +00:00
* replaced dependencies to github.com/armosec/go-git-url by github.com/kubescape/go-git-url * fixes #789 NOTE: this requires kubescape/go-git-url#2 to be merged, a new release of that repo to be cut, in order to finalize the dependency update. Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
17 lines
310 B
Go
17 lines
310 B
Go
package cautils
|
|
|
|
import (
|
|
"testing"
|
|
|
|
giturl "github.com/kubescape/go-git-url"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEnsureRemoteParsed(t *testing.T) {
|
|
const remote = "git@gitlab.com:foobar/gitlab-tests/sample-project.git"
|
|
|
|
require.NotPanics(t, func() {
|
|
_, _ = giturl.NewGitURL(remote)
|
|
})
|
|
}
|