Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391529
5_client_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
5_client_spec.rb
View Options
require
'spec_helper_acceptance'
describe
'keycloak::client define:'
do
context
'creates client'
do
it
'should run successfully'
do
pp
=<<-
EOS
include mysql::server
class { 'keycloak':
datasource_driver => 'mysql',
}
keycloak::realm { 'test': }
keycloak::client_template { 'openid-connect-clients':
realm => 'test',
}
keycloak::client { 'test.foo.bar':
realm => 'test',
redirect_uris => ['https://test.foo.bar/test1'],
client_template => 'openid-connect-clients',
secret => 'foobar',
}
EOS
apply_manifest
(
pp
,
:catch_failures
=>
true
)
apply_manifest
(
pp
,
:catch_changes
=>
true
)
end
end
context
'updates client'
do
it
'should run successfully'
do
pp
=<<-
EOS
include mysql::server
class { 'keycloak':
datasource_driver => 'mysql',
}
keycloak::realm { 'test': }
keycloak::client_template { 'openid-connect-clients':
realm => 'test',
}
keycloak::client { 'test.foo.bar':
realm => 'test',
redirect_uris => ['https://test.foo.bar/test2'],
client_template => 'openid-connect-clients',
secret => 'foobar',
}
EOS
apply_manifest
(
pp
,
:catch_failures
=>
true
)
apply_manifest
(
pp
,
:catch_changes
=>
true
)
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 6:45 PM (14 w, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398740
Attached To
R212 puppet-treydock-keycloak
Event Timeline
Log In to Comment