Commit 2d08f20a authored by Matthieu FAURE's avatar Matthieu FAURE

FEAT Set a functional unit-test for Redis

parent 836e70bd
Pipeline #6436 passed with stages
in 13 minutes and 38 seconds
......@@ -72,9 +72,6 @@ describe 'NextCloud class' do
# it 'applies idempotently' do
# apply_manifest(pp, catch_changes: true)
# end
# describe service('redis') do
# it { is_expected.to be_running }
# end
#
# # TODO: once actual code is created in the module, add tests here with `describe` and expectations
# end
......
......@@ -4,19 +4,24 @@ describe 'nextcloud::redis' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
# let(:pre_condition) do
# "
# class { 'nextcloud':
# db_password => 'S3cr#TPassw0rdz',
# nc_admin_username => 'ncadmin',
# nc_admin_password => 'ncadminPassword',
# manage_redis => true,
# }
# "
# end
let(:pre_condition) { 'include redis' }
it { is_expected.to compile }
let(:pre_condition) do
"
class { 'nextcloud':
db_password => 'S3cr#TPassw0rdz',
nc_admin_username => 'ncadmin',
nc_admin_password => 'ncadminPassword',
manage_redis => true,
}
"
end
it do
is_expected.to compile
is_expected.to contain_service('redis-server')
.with_enable(true)
.with_ensure('running')
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment