Isolate document pull unit test
This causes the document pull unit tests to use a git repo stored locally on the machine, rather than reaching out to github Change-Id: I0add3cdf60d7fe584c0194148e539a7a290f2bc4
This commit is contained in:
parent
2b293b82b2
commit
f5846161c2
@ -83,8 +83,8 @@ func TestPull(t *testing.T) {
|
||||
currentManifest, err := dummyPullSettings.Config.CurrentContextManifest()
|
||||
require.NoError(err)
|
||||
|
||||
testGitURL := fixtures.Basic().One().URL
|
||||
dirNameFromURL := util.GitDirNameFromURL(testGitURL)
|
||||
testGitDir := fixtures.Basic().One().DotGit().Root()
|
||||
dirNameFromURL := util.GitDirNameFromURL(testGitDir)
|
||||
globalTmpDir, cleanup := testutil.TempDir(t, "airshipctlCloneTest-")
|
||||
defer cleanup(t)
|
||||
|
||||
@ -95,7 +95,7 @@ func TestPull(t *testing.T) {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
currentManifest.Repositories = map[string]*config.Repository{
|
||||
currentManifest.PrimaryRepositoryName: {
|
||||
URLString: testGitURL,
|
||||
URLString: testGitDir,
|
||||
CheckoutOptions: chkOutOpts,
|
||||
Auth: &config.RepoAuth{
|
||||
Type: "http-basic",
|
||||
|
Loading…
x
Reference in New Issue
Block a user