Skip to content

Commit

Permalink
Adjust additional keycloak_required_action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TuningYourCode committed Sep 26, 2024
1 parent f6b26c4 commit 4c04508
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/unit/puppet/type/keycloak_required_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
{
name: 'foo',
realm: 'test',
alias: 'something',
provider_id: 'some-provider'
}
end
Expand All @@ -33,7 +32,6 @@
it 'handles componsite name' do
component = described_class.new(name: 'foo on test')
expect(component[:name]).to eq('foo on test')
expect(component[:alias]).to eq('foo')
expect(component[:provider_id]).to eq('foo')
expect(component[:realm]).to eq('test')
end
Expand All @@ -50,7 +48,6 @@
:name,
:display_name,
:provider_id,

Check failure on line 50 in spec/unit/puppet/type/keycloak_required_action_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.8 fixtures=.fixtures.yml)

Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array. (https://rubystyle.guide#no-trailing-array-commas)

Check failure on line 50 in spec/unit/puppet/type/keycloak_required_action_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 8 (Ruby 3.2.3 fixtures=.fixtures.yml)

Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array. (https://rubystyle.guide#no-trailing-array-commas)

Check failure on line 50 in spec/unit/puppet/type/keycloak_required_action_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 7 (Ruby 2.7.7 fixtures=.fixtures-latest.yml)

Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array. (https://rubystyle.guide#no-trailing-array-commas)

Check failure on line 50 in spec/unit/puppet/type/keycloak_required_action_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet 8 (Ruby 3.2.2 fixtures=.fixtures-latest.yml)

Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array. (https://rubystyle.guide#no-trailing-array-commas)
:alias
].each do |p|
it "accepts a #{p}" do
config[p] = 'foo'
Expand Down Expand Up @@ -165,8 +162,7 @@

it 'requires alias' do
config.delete(:provider_id)
config.delete(:alias)
expect { resource }.to raise_error(%r{must have a alias defined})
expect { resource }.to raise_error(%r{must have a provider_id defined})
end

it 'does not require provider_id for absent' do
Expand Down

0 comments on commit 4c04508

Please sign in to comment.