Skip to content

Commit

Permalink
Update tests for unsported OS fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Nov 14, 2014
1 parent 14b1fd7 commit 905aea9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/classes/sensu_api_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'sensu', :type => :class do
let(:facts) { { :fqdn => 'testhost.domain.com' } }
let(:facts) { { :fqdn => 'testhost.domain.com', :osfamily => 'RedHat' } }

context 'without api (default)' do

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/sensu_client_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'sensu', :type => :class do
let(:facts) { { :ipaddress => '2.3.4.5', :fqdn => 'host.domain.com' } }
let(:facts) { { :ipaddress => '2.3.4.5', :fqdn => 'host.domain.com', :osfamily => 'RedHat' } }

context 'with client (default)' do

Expand Down
1 change: 1 addition & 0 deletions spec/classes/sensu_init_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'spec_helper'

describe 'sensu', :type => :class do
let(:facts) { { :osfamily => 'RedHat' } }

it 'should compile' do should create_class('sensu') end
it { should contain_user('sensu') }
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/sensu_package_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'sensu' do
let(:facts) { { :fqdn => 'testhost.domain.com' } }
let(:facts) { { :fqdn => 'testhost.domain.com', :osfamily => 'RedHat' } }

context 'package' do
context 'defaults' do
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/sensu_rabbitmq_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'sensu', :type => :class do
let(:facts) { { :fqdn => 'hostname.domain.com' } }
let(:facts) { { :fqdn => 'hostname.domain.com', :osfamily => 'RedHat' } }
let(:params) { { :client => true } }

context 'rabbitmq config' do
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/sensu_redis_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'sensu' do
let(:facts) { { :fqdn => 'testhost.domain.com' } }
let(:facts) { { :fqdn => 'testhost.domain.com', :osfamily => 'RedHat' } }

context 'redis config' do

Expand Down
1 change: 1 addition & 0 deletions spec/classes/sensu_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

describe 'sensu' do
let(:title) { 'sensu::server' }
let(:facts) { { :osfamily => 'RedHat' } }

context 'without server (default)' do

Expand Down
2 changes: 2 additions & 0 deletions spec/defines/sensu_check_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'spec_helper'

describe 'sensu::check', :type => :define do
let(:facts) { { :osfamily => 'RedHat' } }

context 'without whitespace in name' do
let(:title) { 'mycheck' }

Expand Down

0 comments on commit 905aea9

Please sign in to comment.