Skip to content

Commit

Permalink
Merge pull request #138 from MikaelSmith/fix-testing
Browse files Browse the repository at this point in the history
(maint) Add puppet-lint workarounds for CI, use valid certnames
  • Loading branch information
highb authored Aug 5, 2016
2 parents fa4cf44 + 5138313 commit 08a1816
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ end
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('relative')
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_140chars')
PuppetLint.configuration.send('disable_puppet_url_without_modules')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
PuppetLint.configuration.send('disable_documentation')
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
PuppetLint.configuration.send('disable_only_variable_string')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp" "bundle/**/*" "vendor/**/*"]

PuppetSyntax.exclude_paths = ["spec/**/*.pp", "pkg/**/*.pp"]

Expand Down
5 changes: 4 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def stop_firewall_on(host)

# Helper for setting the activemq host in erb templates.
def activemq_host
master
'activemq'
end

def install_modules_on(host)
Expand Down Expand Up @@ -123,6 +123,9 @@ def setup_puppet_on(host, opts = {})
scp_to host, "#{TEST_FILES}/client.crt", '/etc/mcollective/ssl-clients/client.pem'
on host, 'mkdir -p /usr/libexec/mcollective/plugins'

# Ensure the domain used to find activemq_host resolves to an ip address.
# The domain is set based on the certificate used for testing.
on host, puppet('resource', 'host', activemq_host, "ip=#{master['ip']}")
on host, puppet('resource', 'service', 'mcollective', 'ensure=stopped')
on host, puppet('resource', 'service', 'mcollective', 'ensure=running')
end
Expand Down

0 comments on commit 08a1816

Please sign in to comment.