1 require 'spec_helper_acceptance'
3 describe 'rabbitmq vhost:' do
4 context 'create vhost resource' do
5 it 'runs successfully' do
7 if $facts['os']['family'] == 'RedHat' {
8 class { 'erlang': epel_enable => true }
9 Class['erlang'] -> Class['rabbitmq']
12 service_manage => true,
14 delete_guest_user => true,
18 rabbitmq_vhost { 'myhost':
23 apply_manifest(pp, catch_failures: true)
24 apply_manifest(pp, catch_changes: true)
27 # rubocop:disable RSpec/MultipleExpectations
29 shell('rabbitmqctl list_vhosts') do |r|
30 expect(r.stdout).to match(%r{myhost})
31 expect(r.exit_code).to be_zero
34 # rubocop:enable RSpec/MultipleExpectations