devlopment branch (#1736)

This commit is contained in:
zryfish
2020-01-02 20:52:00 +08:00
committed by GitHub
parent ff0ffe8650
commit eceadec69c
440 changed files with 61524 additions and 3699 deletions

View File

@@ -34,8 +34,10 @@ func TestGitReadVerifyWithBasicAuth(t *testing.T) {
"remote": "git@fdsfs41342`@@@2414!!!!github.com:kubesphere/kubesphere.git",
},
}
verifier := gitVerifier{informers: nil}
for _, item := range shouldSuccess {
err := gitReadVerifyWithBasicAuth(item["username"], item["password"], item["remote"])
err := verifier.gitReadVerifyWithBasicAuth(item["username"], item["password"], item["remote"])
if err != nil {
t.Errorf("should could access repo [%s] with %s:%s, %v", item["username"], item["password"], item["remote"], err)
@@ -43,7 +45,7 @@ func TestGitReadVerifyWithBasicAuth(t *testing.T) {
}
for _, item := range shouldFailed {
err := gitReadVerifyWithBasicAuth(item["username"], item["password"], item["remote"])
err := verifier.gitReadVerifyWithBasicAuth(item["username"], item["password"], item["remote"])
if err == nil {
t.Errorf("should could access repo [%s] with %s:%s ", item["username"], item["password"], item["remote"])
}