summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/puppet_apply_basics.rb
blob: 23c57d84d3ce069f084cb1baac05fd7c0fd20b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Ported from a collection of small spec tests in acceptance.
#
# Unified into a single file because they are literally one-line tests!

test_name "Trivial puppet tests"

step "check that puppet apply displays notices"
agents.each do |host|
  apply_manifest_on(host, "notice 'Hello World'") do
    assert_match(/notice:.*Hello World/, stdout, "#{host}: missing notice!")
  end
end

step "verify help displays something for puppet master"
on master, puppet_master("--help") do
  assert_match(/puppet master/, stdout, "improper help output")
end