diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-06 17:08:09 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-06 17:08:09 +0000 |
commit | 199e2d62ebea9939e48d442c6a866d26d0aede4f (patch) | |
tree | 2b53de970e41ea67777b263462b623658905e382 /spec/gitlab_shell_spec.rb | |
parent | a6e5b9a17821dab311e71fa83d2a973cb5361edb (diff) | |
parent | 416c7a89c38ca19259a2b82124c2681898e3d314 (diff) | |
download | gitlab-shell-199e2d62ebea9939e48d442c6a866d26d0aede4f.tar.gz |
Merge branch '1648-remove-git-annex-support' into 'master'
v5.0.0
Remove git annex support
See merge request !122
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r-- | spec/gitlab_shell_spec.rb | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index b9b8659..d19b076 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -99,20 +99,6 @@ describe GitlabShell do end end - describe 'git-annex' do - let(:repo_name) { 'dzaporozhets/gitlab.git' } - let(:ssh_args) { %W(git-annex-shell inannex /~/dzaporozhets/gitlab.git SHA256E) } - - before do - GitlabConfig.any_instance.stub(git_annex_enabled?: true) - - subject.send :parse_cmd, ssh_args - end - - its(:repo_name) { should == 'dzaporozhets/gitlab.git' } - its(:command) { should == 'git-annex-shell' } - end - describe 'git-lfs' do let(:repo_name) { 'dzaporozhets/gitlab.git' } let(:ssh_args) { %W(git-lfs-authenticate dzaporozhets/gitlab.git download) } @@ -230,58 +216,6 @@ describe GitlabShell do end end - describe 'git-annex' do - let(:repo_name) { 'dzaporozhets/gitlab.git' } - - before do - GitlabConfig.any_instance.stub(git_annex_enabled?: true) - end - - context 'initialization' do - let(:ssh_cmd) { "git-annex-shell inannex /~/gitlab-ci.git SHA256E" } - - before do - # Create existing project - FileUtils.mkdir_p(repo_path) - cmd = %W(git --git-dir=#{repo_path} init --bare) - system(*cmd) - - subject.exec(ssh_cmd) - end - - it 'should init git-annex' do - File.exists?(repo_path).should be_true - end - - context 'with git-annex-shell gcryptsetup' do - let(:ssh_cmd) { "git-annex-shell gcryptsetup /~/dzaporozhets/gitlab.git" } - - it 'should not init git-annex' do - File.exists?(File.join(tmp_repos_path, 'dzaporozhets/gitlab.git/annex')).should be_false - end - end - - context 'with git-annex and relative path without ~/' do - # Using a SSH URL on a custom port will generate /dzaporozhets/gitlab.git - let(:ssh_cmd) { "git-annex-shell inannex dzaporozhets/gitlab.git SHA256E" } - - it 'should init git-annex' do - File.exists?(File.join(tmp_repos_path, "dzaporozhets/gitlab.git/annex")).should be_true - end - end - end - - context 'execution' do - let(:ssh_cmd) { "git-annex-shell commit /~/gitlab-ci.git SHA256" } - - after { subject.exec(ssh_cmd) } - - it "should execute the command" do - subject.should_receive(:exec_cmd).with("git-annex-shell", "commit", repo_path, "SHA256") - end - end - end - context 'with an API command' do before do allow(subject).to receive(:continue?).and_return(true) |