summaryrefslogtreecommitdiff
path: root/qa/spec/git
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-01-28 15:30:50 -0500
committerMark Lapierre <mlapierre@gitlab.com>2019-01-30 15:16:37 -0500
commitf653952202a6734be597dd971c1155c82c6a1fba (patch)
treef24e40f8def1dfa68113d0d31ff8ecd8d2b24da9 /qa/spec/git
parent02c3c9dad5bc497e416040734bde90951d8f13a8 (diff)
downloadgitlab-ce-f653952202a6734be597dd971c1155c82c6a1fba.tar.gz
Don't use .netrc with SSH
There was a bug that required credentials when using SSH key auth when using LFS. That bug was fixed so we shouldn't need to add credentials to .netrc when using SSH anymore.
Diffstat (limited to 'qa/spec/git')
-rw-r--r--qa/spec/git/repository_spec.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/qa/spec/git/repository_spec.rb b/qa/spec/git/repository_spec.rb
index 48bcc8e8276..4a350cd6c42 100644
--- a/qa/spec/git/repository_spec.rb
+++ b/qa/spec/git/repository_spec.rb
@@ -115,16 +115,5 @@ describe QA::Git::Repository do
.to eq("machine foo login user password foo\n")
end
end
-
- describe '#use_ssh_key' do
- it 'does not add credentials to .netrc' do
- key = Struct.new(:private_key).new('foo')
-
- expect(repository).to receive(:try_add_credentials_to_netrc).and_call_original
- expect(repository).not_to receive(:save_netrc_content)
-
- repository.use_ssh_key(key)
- end
- end
end
end