From f5846161c2b107052744e0a1b41bcb772d9da586 Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Tue, 19 May 2020 16:43:23 -0500 Subject: [PATCH] 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 --- pkg/document/pull/pull_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/document/pull/pull_test.go b/pkg/document/pull/pull_test.go index dea563a4e..1cbdf5a98 100644 --- a/pkg/document/pull/pull_test.go +++ b/pkg/document/pull/pull_test.go @@ -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",