diff --git a/.zuul.yaml b/.zuul.yaml index ab67c13..d955862 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,5 +2,5 @@ templates: - puppet-openstack-check-jobs - puppet-openstack-module-unit-jobs - - puppet-openstack-integration-jobs-scenario001 + - puppet-openstack-litmus-jobs - release-notes-jobs-python3 diff --git a/spec/acceptance/basic_qdr_spec.rb b/spec/acceptance/basic_qdr_spec.rb new file mode 100644 index 0000000..2972895 --- /dev/null +++ b/spec/acceptance/basic_qdr_spec.rb @@ -0,0 +1,36 @@ +require 'spec_helper_acceptance' + +describe 'basic qdr' do + + context 'default parameters' do + + it 'should work with no errors' do + pp= <<-EOS + include openstack_integration + include openstack_integration::repos + + # NOTE(tkajinam): qpid dispatch router is not available for Ubuntu Jammy + if $facts['os']['family'] == 'RedHat' { + class { 'qdr': + listener_addr => $::openstack_integration::config::host, + listener_port => $::openstack_integration::config::messaging_default_port, + listener_sasl_mech => 'PLAIN', + listener_auth_peer => true, + router_worker_threads => 2, + } + + qdr_user { 'testuser': + password => 'secret', + provider => 'sasl', + require => Class['qdr'], + } + } + EOS + + + # Run it twice and test for idempotency + apply_manifest(pp, :catch_failures => true) + apply_manifest(pp, :catch_changes => true) + end + end +end