-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
Set vagrant_libvirt as beaker hypervisor
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper_acceptance' | ||
describe 'zabbix::proxy class', unless: default[:platform] =~ %r{archlinux} do | ||
before(:all) do | ||
prepare_host | ||
end | ||
|
||
context 'default parameters' do | ||
it_behaves_like 'an idempotent resource' do | ||
let(:manifest) do | ||
<<-PUPPET | ||
class { 'zabbix::proxy': | ||
zabbix_server_host => '192.168.1.1', | ||
} | ||
PUPPET | ||
end | ||
end | ||
|
||
# do some basic checks | ||
describe package('zabbix-proxy-pgsql') do | ||
it { is_expected.to be_installed } | ||
end | ||
|
||
describe service('zabbix-proxy') do | ||
it { is_expected.to be_running } | ||
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 6.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 6.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 6.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 6.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 5.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 5.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8 - Zabbix 6.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 5.0
Check failure on line 26 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 5.0
|
||
it { is_expected.to be_enabled } | ||
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 6.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 6.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 6.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 6.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 5.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 5.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 5.0
Check failure on line 27 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 5.0
|
||
end | ||
end | ||
|
||
supported_proxy_versions(default[:platform]).each do |zabbix_version| | ||
context "deploys a zabbix #{zabbix_version} proxy" do | ||
it_behaves_like 'an idempotent resource' do | ||
let(:manifest) do | ||
<<-PUPPET | ||
class { 'zabbix::proxy': | ||
zabbix_server_host => '192.168.1.1', | ||
zabbix_version => "#{zabbix_version}", | ||
} | ||
PUPPET | ||
end | ||
end | ||
|
||
# do some basic checks | ||
describe package('zabbix-proxy-pgsql') do | ||
it { is_expected.to be_installed } | ||
end | ||
|
||
describe service('zabbix-proxy') do | ||
it { is_expected.to be_running } | ||
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 6.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 6.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 6.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 6.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 5.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 5.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - Rocky 8 - Zabbix 6.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - Rocky 8 - Zabbix 5.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 5.0
Check failure on line 50 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 5.0
|
||
it { is_expected.to be_enabled } | ||
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 6.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 6.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 6.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 6.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - CentOS 7 - Zabbix 5.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - CentOS 7 - Zabbix 5.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 8 - OracleLinux 7 - Zabbix 5.0
Check failure on line 51 in spec/acceptance/proxy_spec.rb GitHub Actions / Puppet / Puppet 7 - OracleLinux 7 - Zabbix 5.0
|
||
end | ||
end | ||
end | ||
end |