[Pkg-puppet-devel] [facter] 100/352: (fact-79) Extend acceptance test to ruby 1.8.x platforms

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 8ebffec5426297178781894d3814f821910776ad
Author: Kylo Ginsberg <kylo at puppetlabs.com>
Date:   Fri Dec 20 16:02:02 2013 -0800

    (fact-79) Extend acceptance test to ruby 1.8.x platforms
---
 acceptance/tests/facter_json_output_validates.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/acceptance/tests/facter_json_output_validates.rb b/acceptance/tests/facter_json_output_validates.rb
index 9716b14..675e19c 100644
--- a/acceptance/tests/facter_json_output_validates.rb
+++ b/acceptance/tests/facter_json_output_validates.rb
@@ -3,11 +3,11 @@ require 'json-schema'
 
 test_name "Running facter --json should validate against the schema"
 
-confine :except, :platform => 'ubuntu-10.04'
-confine :except, :platform => 'el-6'
-confine :except, :platform => 'el-5'
-
 agents.each do |agent|
+  step "Install json gem (needed on older platforms)"
+  win_cmd_prefix = 'cmd /c ' if agent['platform'] =~ /windows/
+  on(agent, "#{win_cmd_prefix}gem install json")
+
   step "Agent #{agent}: run 'facter --json' and validate"
   on(agent, facter('--json')) do
     schema = JSON.parse(File.read("../schema/facter.json"))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list