redis_spec.rb 625 Bytes
Newer Older
1 2 3 4 5 6 7
require 'spec_helper'

describe 'nextcloud::redis' do
  on_supported_os.each do |os, os_facts|
    context "on #{os}" do
      let(:facts) { os_facts }

8 9 10 11 12 13 14 15 16 17 18
      let(:pre_condition) do
        "
        class { 'nextcloud':
          db_password       => 'S3cr#TPassw0rdz',
          nc_admin_username => 'ncadmin',
          nc_admin_password => 'ncadminPassword',
          manage_redis      => true,
        }
        "
      end

19
      it { is_expected.to compile }
20 21 22 23 24
      it do
        is_expected.to contain_service('redis-server')
          .with_enable(true)
          .with_ensure('running')
      end
25 26 27
    end
  end
end