diff options
author | Stan Hu <stanhu@gmail.com> | 2018-02-23 23:26:21 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-24 00:08:22 +0300 |
commit | ded12e0ca53a75518d04114c074748594aabda1a (patch) | |
tree | fe4a35072a19cccc4ae845cc1d6014f4d4f1346a /spec/lib/gitlab/git_access_wiki_spec.rb | |
parent | 296a4e6825a3528917bb385123cdf62ae3d1944e (diff) |
Return a 404 instead of 403 if the repository does not exist on disksh-return-404-if-repo-does-not-exist
As mentioned in https://gitlab.com/gitlab-com/migration/issues/216, this was
leading to confusion in the Geo logs. Having the right return code also helps
with error monitoring.
Diffstat (limited to 'spec/lib/gitlab/git_access_wiki_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git_access_wiki_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git_access_wiki_spec.rb b/spec/lib/gitlab/git_access_wiki_spec.rb index 215f1ecc9c5..730ede99fc9 100644 --- a/spec/lib/gitlab/git_access_wiki_spec.rb +++ b/spec/lib/gitlab/git_access_wiki_spec.rb @@ -57,7 +57,7 @@ describe Gitlab::GitAccessWiki do # Sanity check for rm_rf expect(wiki_repo.exists?).to eq(false) - expect { subject }.to raise_error(Gitlab::GitAccess::UnauthorizedError, 'A repository for this project does not exist yet.') + expect { subject }.to raise_error(Gitlab::GitAccess::NotFoundError, 'A repository for this project does not exist yet.') end end end |