diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-01 14:56:29 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-01 14:56:29 +0300 |
commit | edb9db37ede4aff12f06338e4fd8f30039cc8183 (patch) | |
tree | 460bbcce4dd97fea12de3dd609345912636eadb9 /spec/lib/gitlab/checks | |
parent | cc5890f287b9dc5c117470d5b0925ba7f6d07485 (diff) |
Add "deny disk access" Gitaly feature (tripswitch)
Diffstat (limited to 'spec/lib/gitlab/checks')
-rw-r--r-- | spec/lib/gitlab/checks/lfs_integrity_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/checks/lfs_integrity_spec.rb b/spec/lib/gitlab/checks/lfs_integrity_spec.rb index 7201e4f7bf6..ec22e3a198e 100644 --- a/spec/lib/gitlab/checks/lfs_integrity_spec.rb +++ b/spec/lib/gitlab/checks/lfs_integrity_spec.rb @@ -6,7 +6,9 @@ describe Gitlab::Checks::LfsIntegrity do let(:project) { create(:project, :repository) } let(:repository) { project.repository } let(:newrev) do - operations = BareRepoOperations.new(repository.path) + operations = Gitlab::GitalyClient::StorageSettings.allow_disk_access do + BareRepoOperations.new(repository.path) + end # Create a commit not pointed at by any ref to emulate being in the # pre-receive hook so that `--not --all` returns some objects |