diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /spec/finders/deployments_finder_spec.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'spec/finders/deployments_finder_spec.rb')
-rw-r--r-- | spec/finders/deployments_finder_spec.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/finders/deployments_finder_spec.rb b/spec/finders/deployments_finder_spec.rb index 65003ea97ef..5a803ee2a0d 100644 --- a/spec/finders/deployments_finder_spec.rb +++ b/spec/finders/deployments_finder_spec.rb @@ -185,39 +185,6 @@ RSpec.describe DeploymentsFinder, feature_category: :deployment_management do end end end - - context 'when remove_deployments_api_ref_sort is disabled' do - before do - stub_feature_flags(remove_deployments_api_ref_sort: false) - end - - where(:order_by, :sort, :ordered_deployments) do - 'created_at' | 'asc' | [:deployment_1, :deployment_2, :deployment_3] - 'created_at' | 'desc' | [:deployment_3, :deployment_2, :deployment_1] - 'id' | 'asc' | [:deployment_1, :deployment_2, :deployment_3] - 'id' | 'desc' | [:deployment_3, :deployment_2, :deployment_1] - 'iid' | 'asc' | [:deployment_1, :deployment_2, :deployment_3] - 'iid' | 'desc' | [:deployment_3, :deployment_2, :deployment_1] - 'ref' | 'asc' | [:deployment_2, :deployment_1, :deployment_3] # ref sorts when remove_deployments_api_ref_sort feature flag is disabled - 'ref' | 'desc' | [:deployment_3, :deployment_1, :deployment_2] # ref sorts when remove_deployments_api_ref_sort feature flag is disabled - 'updated_at' | 'asc' | [:deployment_2, :deployment_3, :deployment_1] - 'updated_at' | 'desc' | [:deployment_1, :deployment_3, :deployment_2] - 'finished_at' | 'asc' | described_class::InefficientQueryError - 'finished_at' | 'desc' | described_class::InefficientQueryError - 'invalid' | 'asc' | [:deployment_1, :deployment_2, :deployment_3] - 'iid' | 'err' | [:deployment_1, :deployment_2, :deployment_3] - end - - with_them do - it 'returns the deployments ordered' do - if ordered_deployments == described_class::InefficientQueryError - expect { subject }.to raise_error(described_class::InefficientQueryError) - else - expect(subject).to eq(ordered_deployments.map { |name| public_send(name) }) - end - end - end - end end describe 'transform `created_at` sorting to `id` sorting' do |