Skip to content

Commit

Permalink
Add tests for bruteforce properties
Browse files Browse the repository at this point in the history
  • Loading branch information
TuningYourCode committed Jun 13, 2024
1 parent 2bc2c9e commit 0ea7130
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion spec/acceptance/2_realm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,15 @@ class { 'keycloak': }
default_locale => 'en',
supported_locales => ['en','de'],
custom_properties => {
'failureFactor' => 60,
'revokeRefreshToken' => true,
},
failure_factor => 60,
permanent_lockout => true,
max_failure_wait_seconds => 999,
minimum_quick_login_wait_seconds => 40,
wait_increment_seconds => 10,
quick_login_check_milli_seconds => 10,
max_delta_time_seconds => 3600,
}
PUPPET_PP

Expand Down Expand Up @@ -263,6 +269,12 @@ class { 'keycloak': }
expect(data['adminTheme']).to eq('keycloak.v2')
expect(data['emailTheme']).to eq('keycloak.v2')
expect(data['failureFactor']).to eq(60)
expect(data['permanentLockout']).to eq(true)
expect(data['maxFailureWaitSeconds']).to eq(999)
expect(data['minimumQuickLoginWaitSeconds']).to eq(40)
expect(data['waitIncrementSeconds']).to eq(10)
expect(data['quickLoginCheckMilliSeconds']).to eq(10)
expect(data['maxDeltaTimeSeconds']).to eq(3600)
expect(data['revokeRefreshToken']).to eq(true)
expect(data['internationalizationEnabled']).to eq(true)
expect(data['defaultLocale']).to eq('en')
Expand Down

0 comments on commit 0ea7130

Please sign in to comment.