Skip to content

Commit 7691519

Browse files
authored
Merge pull request #1354 from merico-dev/fix-app-domain-ut-error
fix: app domain ut error
2 parents 617680e + e30753b commit 7691519

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/pkg/configmanager/pipelineDefault_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var _ = Describe("jenkinsGenerator func", func() {
2727
FrameWork: "test_framework",
2828
},
2929
Repo: &git.RepoInfo{
30-
CloneURL: "test.scm.com",
30+
CloneURL: "https://test.scm.com",
3131
},
3232
}
3333
})
@@ -47,7 +47,7 @@ var _ = Describe("jenkinsGenerator func", func() {
4747
},
4848
},
4949
"scm": RawOptions{
50-
"url": git.ScmURL("test.scm.com"),
50+
"url": git.ScmURL("https://test.scm.com"),
5151
},
5252
"jenkins": RawOptions{
5353
"url": "test.jenkins.com",
@@ -87,7 +87,7 @@ var _ = Describe("pipelineArgocdAppGenerator func", func() {
8787
"source": RawOptions{
8888
"valuefile": "values.yaml",
8989
"path": "helm/test_app",
90-
"repoURL": "scm.test.com",
90+
"repoURL": "https://scm.test.com",
9191
},
9292
"imageRepo": RawOptions{
9393
"owner": "test_user",

pkg/util/scm/git/repoinfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var _ = Describe("RepoInfo struct", func() {
6666
})
6767
It("should return owner", func() {
6868
result := repoInfo.GetCloneURL()
69-
Expect(result).Should(Equal("exist.com"))
69+
Expect(result).Should(Equal("https://exist.com"))
7070
})
7171
})
7272
When("url field is not configured, other fields exist", func() {

0 commit comments

Comments
 (0)