Skip to content

Commit

Permalink
Fix realm unit tests for webauthn properties
Browse files Browse the repository at this point in the history
  • Loading branch information
TuningYourCode committed Jun 17, 2024
1 parent 53ae965 commit fb6421a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/unit/puppet/type/keycloak_realm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
# Test enumerable properties
describe 'enumerable properties' do
{
web_authn_policy_attestation_conveyance_preference: ['none', 'indirect', 'direct'],
web_authn_policy_authenticator_attachment: ['platform', 'cross-platform'],
web_authn_policy_require_resident_key: ['Yes', 'No'],
web_authn_policy_user_verification_requirement: ['required', 'preferred', 'discouraged']
web_authn_policy_attestation_conveyance_preference: [:none, :indirect, :direct, :not_specified],
web_authn_policy_authenticator_attachment: [:platform, :cross_platform, :not_specified],
web_authn_policy_require_resident_key: [:Yes, :No, :not_specified],
web_authn_policy_user_verification_requirement: [:required, :preferred, :discouraged, :not_specified],

Check failure on line 86 in spec/unit/puppet/type/keycloak_realm_spec.rb

View workflow job for this annotation

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

Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.

Check failure on line 86 in spec/unit/puppet/type/keycloak_realm_spec.rb

View workflow job for this annotation

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

Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.

Check failure on line 86 in spec/unit/puppet/type/keycloak_realm_spec.rb

View workflow job for this annotation

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

Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.

Check failure on line 86 in spec/unit/puppet/type/keycloak_realm_spec.rb

View workflow job for this annotation

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

Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.
}.each do |p, values|
values.each do |v|
it "accepts #{v} for #{p}" do
Expand All @@ -103,7 +103,7 @@
config[p] = ''
expect {
resource
}.to raise_error(%r{''})
}.to raise_error(%r{'Invalid value ""'})
end

it "does not accept nil for #{p}" do
Expand Down Expand Up @@ -265,7 +265,7 @@
:events_listeners,
:supported_locales,
:roles,
:web_authn_policy_create_timeout,
:web_authn_policy_signature_algorithms,
:web_authn_policy_acceptable_aaguids
].each do |p|
it "accepts array for #{p}" do
Expand Down

0 comments on commit fb6421a

Please sign in to comment.