diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /spec/requests/api/feature_flags_spec.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'spec/requests/api/feature_flags_spec.rb')
-rw-r--r-- | spec/requests/api/feature_flags_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/requests/api/feature_flags_spec.rb b/spec/requests/api/feature_flags_spec.rb index 8edf8825fb2..8c8c6803a38 100644 --- a/spec/requests/api/feature_flags_spec.rb +++ b/spec/requests/api/feature_flags_spec.rb @@ -417,7 +417,7 @@ RSpec.describe API::FeatureFlags do version: 'new_version_flag', strategies: [{ name: 'flexibleRollout', - parameters: { groupId: 'default', rollout: '50', stickiness: 'DEFAULT' }, + parameters: { groupId: 'default', rollout: '50', stickiness: 'default' }, scopes: [{ environment_scope: 'staging' }] @@ -434,7 +434,7 @@ RSpec.describe API::FeatureFlags do expect(feature_flag.version).to eq('new_version_flag') expect(feature_flag.strategies.map { |s| s.slice(:name, :parameters).deep_symbolize_keys }).to eq([{ name: 'flexibleRollout', - parameters: { groupId: 'default', rollout: '50', stickiness: 'DEFAULT' } + parameters: { groupId: 'default', rollout: '50', stickiness: 'default' } }]) expect(feature_flag.strategies.first.scopes.map { |s| s.slice(:environment_scope).deep_symbolize_keys }).to eq([{ environment_scope: 'staging' @@ -630,7 +630,7 @@ RSpec.describe API::FeatureFlags do strategies: [{ id: strategy.id, name: 'flexibleRollout', - parameters: { groupId: 'default', rollout: '10', stickiness: 'DEFAULT' } + parameters: { groupId: 'default', rollout: '10', stickiness: 'default' } }] } @@ -642,7 +642,7 @@ RSpec.describe API::FeatureFlags do expect(result).to eq([{ id: strategy.id, name: 'flexibleRollout', - parameters: { groupId: 'default', rollout: '10', stickiness: 'DEFAULT' } + parameters: { groupId: 'default', rollout: '10', stickiness: 'default' } }]) end @@ -677,7 +677,7 @@ RSpec.describe API::FeatureFlags do params = { strategies: [{ name: 'flexibleRollout', - parameters: { groupId: 'default', rollout: '10', stickiness: 'DEFAULT' } + parameters: { groupId: 'default', rollout: '10', stickiness: 'default' } }] } @@ -694,7 +694,7 @@ RSpec.describe API::FeatureFlags do parameters: {} }, { name: 'flexibleRollout', - parameters: { groupId: 'default', rollout: '10', stickiness: 'DEFAULT' } + parameters: { groupId: 'default', rollout: '10', stickiness: 'default' } }]) end |