From ceb0e02f8b9f7aae22f3c34775702d19da36e1f3 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 31 May 2016 15:47:56 -0600 Subject: [PATCH 1/2] test: use noop credential helper for auth tests --- test/cmd/git-credential-lfsnoop.go | 4 ++++ test/test-credentials-no-prompt.sh | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 test/cmd/git-credential-lfsnoop.go diff --git a/test/cmd/git-credential-lfsnoop.go b/test/cmd/git-credential-lfsnoop.go new file mode 100644 index 00000000..da29a2ca --- /dev/null +++ b/test/cmd/git-credential-lfsnoop.go @@ -0,0 +1,4 @@ +package main + +func main() { +} diff --git a/test/test-credentials-no-prompt.sh b/test/test-credentials-no-prompt.sh index b19b554a..e2bcfadf 100755 --- a/test/test-credentials-no-prompt.sh +++ b/test/test-credentials-no-prompt.sh @@ -34,8 +34,9 @@ begin_test "attempt private access without credential helper" git add .gitattributes git commit -m "initial commit" - git config --unset credential.helper - git config --global --unset credential.helper + git config --global credential.helper lfsnoop + git config credential.helper lfsnoop + git config -l GIT_TERMINAL_PROMPT=0 git push origin master 2>&1 | tee push.log grep "Authorization error: $GITSERVER/$reponame" push.log || From 5c694a58de709eaf0e0dfcfe97e806785d25e4a7 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 31 May 2016 16:12:18 -0600 Subject: [PATCH 2/2] test: useHttpPath in auth tests --- test/test-credentials-no-prompt.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test-credentials-no-prompt.sh b/test/test-credentials-no-prompt.sh index e2bcfadf..f5dd94f4 100755 --- a/test/test-credentials-no-prompt.sh +++ b/test/test-credentials-no-prompt.sh @@ -34,6 +34,7 @@ begin_test "attempt private access without credential helper" git add .gitattributes git commit -m "initial commit" + git config credential.usehttppath true git config --global credential.helper lfsnoop git config credential.helper lfsnoop git config -l