Page MenuHomeSoftware Heritage

5_client_spec.rb
No OneTemporary

5_client_spec.rb

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

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

Event Timeline