Add beaker tests for custom providers
Add tests to ensure the mailman_list and maillist providers work as expected. Change-Id: I7b54a364f55bde50390fef5eb017576285e59458
This commit is contained in:
parent
268b57554d
commit
1a8c4b9e6a
@ -90,4 +90,8 @@ EOF
|
||||
describe file('/etc/apache2/sites-enabled/50-lists.openstack.org.conf') do
|
||||
its(:content) { should eq expected_vhost }
|
||||
end
|
||||
|
||||
describe command('MAILMAN_SITE_DIR=/srv/mailman/openstack /usr/lib/mailman/bin/list_lists --bare') do
|
||||
its(:stdout) { should eq "kata-dev\n" }
|
||||
end
|
||||
end
|
||||
|
@ -4,3 +4,14 @@ file { '/srv/mailman':
|
||||
class { 'mailman':
|
||||
vhost_name => 'lists.openstack.org',
|
||||
}
|
||||
Maillist {
|
||||
provider => 'noaliasmailman',
|
||||
}
|
||||
maillist { 'kata-dev':
|
||||
ensure => present,
|
||||
admin => 'jonathan@openstack.org',
|
||||
password => 'listpassword',
|
||||
description => 'Kata Containers Development Mailing List (not for usage questions)',
|
||||
webserver => $listdomain,
|
||||
mailserver => $listdomain,
|
||||
}
|
||||
|
@ -1,5 +1,16 @@
|
||||
file { '/srv/mailman':
|
||||
ensure => directory,
|
||||
vcsrepo { '/opt/system-config':
|
||||
ensure => present,
|
||||
source => 'git://git.openstack.org/openstack-infra/system-config',
|
||||
provider => git,
|
||||
}
|
||||
file { '/srv/mailman/openstack/templates/en':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'list',
|
||||
mode => '0644',
|
||||
recurse => true,
|
||||
require => File['/srv/mailman/openstack/templates'],
|
||||
source => '/opt/system-config/modules/openstack_project/files/mailman/html-templates-en',
|
||||
}
|
||||
class { 'mailman':
|
||||
multihost => true,
|
||||
@ -10,3 +21,10 @@ mailman::site { 'openstack':
|
||||
install_languages => ['de', 'fr', 'it', 'ko', 'ru', 'vi', 'zh_TW'],
|
||||
require => Class['mailman'],
|
||||
}
|
||||
mailman_list { 'mailman@openstack':
|
||||
require => Mailman::Site['openstack'],
|
||||
ensure => present,
|
||||
admin => 'nobody@openstack.org',
|
||||
password => 'listpassword',
|
||||
description => 'The mailman site list',
|
||||
}
|
||||
|
@ -92,4 +92,8 @@ EOF
|
||||
describe file('/etc/apache2/sites-enabled/50-lists.openstack.org.conf') do
|
||||
its(:content) { should eq expected_vhost }
|
||||
end
|
||||
|
||||
describe command('MAILMAN_SITE_DIR=/srv/mailman/openstack /usr/lib/mailman/bin/list_lists --bare') do
|
||||
its(:stdout) { should eq "mailman\n" }
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user