Skip to content

Commit

Permalink
Fixes #2 - all tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
edestecd committed Jan 6, 2017
1 parent 38f6c32 commit e765056
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
fixtures:
repositories:
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
archive: "https://github.com/voxpupuli/puppet-archive.git"
openssl: "https://github.com/camptocamp/puppet-openssl.git"
profiled: "https://github.com/unibet/puppet-profiled.git"
# remove this after you get rid of all the cache_data calls
extlib: "https://github.com/voxpupuli/puppet-extlib.git"
symlinks:
shibidp: "#{source_dir}"
5 changes: 4 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"tags": ["shibboleth"],
"dependencies": [
{"name": "puppetlabs/stdlib", "version_requirement": ">= 4.2.0 < 5.0.0"},
{"name": "puppet/archive", "version_requirement": ">= 0.5.0 < 1.0.0"}
{"name": "puppetlabs/concat", "version_requirement": ">= 1.1.1 < 3.0.0"},
{"name": "puppet/archive", "version_requirement": ">= 0.5.0 < 1.0.0"},
{"name": "camptocamp/openssl", "version_requirement": ">= 1.8.2 < 2.0.0"},
{"name": "unibet/profiled", "version_requirement": ">= 0.1.4 < 1.0.0"}
],
"operatingsystem_support": [
{
Expand Down
15 changes: 15 additions & 0 deletions spec/classes/shibidp_jetty_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'spec_helper'

describe 'shibidp::jetty', :type => :class do
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts.merge(:environment => 'test', :root_home => '/root', :service_provider => 'systemd')
end

context 'with defaults' do
it { is_expected.to compile.with_all_deps }
end
end
end
end
15 changes: 15 additions & 0 deletions spec/classes/shibidp_simplesp_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'spec_helper'

describe 'shibidp::simplesp', :type => :class do
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts.merge(:environment => 'test', :root_home => '/root', :service_provider => 'systemd')
end

context 'with defaults' do
it { is_expected.to compile.with_all_deps }
end
end
end
end
1 change: 0 additions & 1 deletion spec/classes/shibidp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
it { is_expected.to contain_class('shibidp::metadata') }
it { is_expected.to contain_class('shibidp::attribute_resolver') }
it { is_expected.to contain_class('shibidp::attribute_filter') }
it { is_expected.to contain_class('shibidp::jetty') }
end
end
end
Expand Down

0 comments on commit e765056

Please sign in to comment.