summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorSteve Abrams <sabrams@gitlab.com>2019-06-18 22:08:30 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-06-18 22:08:30 +0000
commit34a283f90a56914306f77384e7b54c2dbd2e467a (patch)
tree022132b6fa8aa927f0e5ac5cc3b1292ec4efe3f9 /spec/workers
parent6fa900547dbd30b0db0070f87dbeb4b05d485b9b (diff)
downloadgitlab-ce-34a283f90a56914306f77384e7b54c2dbd2e467a.tar.gz
Add 2nd response for container api bulk delete
The bulk delete api endpoint for container registries can only be called once per hour. If a user calls the endpoint more than once per hour, they will now receive a 400 error with a descriptive message.
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/cleanup_container_repository_worker_spec.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/workers/cleanup_container_repository_worker_spec.rb b/spec/workers/cleanup_container_repository_worker_spec.rb
index 5bee7294010..9be8f882785 100644
--- a/spec/workers/cleanup_container_repository_worker_spec.rb
+++ b/spec/workers/cleanup_container_repository_worker_spec.rb
@@ -35,13 +35,5 @@ describe CleanupContainerRepositoryWorker, :clean_gitlab_redis_shared_state do
subject.perform(user.id, -1, params)
end.not_to raise_error
end
-
- context 'when executed twice in short period' do
- it 'executes service only for the first time' do
- expect(service).to receive(:execute).once
-
- 2.times { subject.perform(user.id, repository.id, params) }
- end
- end
end
end