feat(stacks): redeploy git stack api (#5112)

This commit is contained in:
Chaim Lev-Ari
2021-05-27 10:59:49 +03:00
committed by Chaim Lev-Ari
parent d982f89167
commit fea8ea6c73
7 changed files with 168 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func TestService_ClonePrivateRepository_GitHub(t *testing.T) {
defer os.RemoveAll(dst)
repositoryUrl := "https://github.com/portainer/private-test-repository.git"
err = service.CloneRepository(repositoryUrl, "refs/heads/main", dst, username, pat)
err = service.CloneRepository(dst, repositoryUrl, "refs/heads/main", username, pat)
assert.NoError(t, err)
assert.FileExists(t, filepath.Join(dst, "README.md"))
}