~ubuntu-branches/ubuntu/quantal/puppet/quantal

« back to all changes in this revision

Viewing changes to acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-07-14 01:56:30 UTC
  • mfrom: (1.1.29) (3.1.43 sid)
  • Revision ID: package-import@ubuntu.com-20120714015630-ntj41rkvkq4zph4y
Tags: 2.7.18-1ubuntu1
* Resynchronise with Debian. (LP: #1023931) Remaining changes:
  - debian/puppetmaster-passenger.postinst: Make sure we error if puppet
    config print doesn't work
  - debian/puppetmaster-passenger.postinst: Ensure upgrades from
    <= 2.7.11-1 fixup passenger apache configuration.
* Dropped upstreamed patches:
  - debian/patches/CVE-2012-1906_CVE-2012-1986_to_CVE-2012-1989.patch
  - debian/patches/puppet-12844
  - debian/patches/2.7.17-Puppet-July-2012-CVE-fixes.patch
* Drop Build-Depends on ruby-rspec (in universe):
  - debian/control: remove ruby-rspec from Build-Depends
  - debian/patches/no-rspec.patch: make Rakefile work anyway if rspec
    isn't installed so we can use it in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
test_name "#7117 Broke the environment criteria in auth.conf"
2
 
 
3
 
# add to auth.conf
4
 
add_2_authconf = %q{
5
 
path /
6
 
environment override
7
 
auth any
8
 
allow *
9
 
}
10
 
 
11
 
step "Create a temp auth.conf"
12
 
create_remote_file master, "/tmp/auth.conf-7117", add_2_authconf
13
 
 
14
 
on master, "chmod 644 /tmp/auth.conf-7117"
15
 
 
16
 
with_master_running_on(master, "--dns_alt_names=\"puppet, $(hostname -s), $(hostname -f)\" --rest_authconfig /tmp/auth.conf-7117 --verbose --autosign true") do
17
 
  # Run test on Agents
18
 
  step "Run agent to upload facts"
19
 
  on agents, puppet_agent("--test --server #{master}")
20
 
 
21
 
  step "Fetch agent facts from Puppet Master"
22
 
  agents.each do |host|
23
 
    on(host, "curl -k -H \"Accept: yaml\" https://#{master}:8140/override/facts/\`hostname -f\`") do
24
 
      assert_match(/--- !ruby\/object:Puppet::Node::Facts/, stdout, "Agent Facts not returned for #{host}")
25
 
    end
26
 
  end
27
 
end