-
Notifications
You must be signed in to change notification settings - Fork 29
/
basic_spec.rb
37 lines (28 loc) · 924 Bytes
/
basic_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'spec_helper_acceptance'
describe 'basic installation' do
let(:pp) { 'include pulpcore' }
it_behaves_like 'a idempotent resource'
describe service('httpd') do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end
describe service('pulpcore-api') do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end
describe service('pulpcore-content') do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end
describe service('pulpcore-resource-manager') do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end
describe port(80) do
it { is_expected.to be_listening }
end
describe command("curl -s http://#{host_inventory['fqdn']}/pulp/api/v3/status/ -w '%{response_code}' -o /dev/null") do
its(:stdout) { is_expected.to eq("200") }
its(:exit_status) { is_expected.to eq 0 }
end
end