Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"6",
"7"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04",
"14.04"
]
}
],
"requirements": [
Expand Down
14 changes: 12 additions & 2 deletions spec/classes/riak_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
it { is_expected.to contain_class('riak::repository::el') }
it { is_expected.to contain_yumrepo('basho_riak') }
when 'Debian'
it { is_expected.to contain_class('riak::repository::debian') }
case facts[:operatingsystem]
when 'ubuntu'
it { is_expected.to contain_class('riak::repository::ubuntu') }
else
it { is_expected.to contain_class('riak::repository::debian') }
end
it { is_expected.to contain_apt__source('riak') }
end
end
Expand All @@ -50,7 +55,12 @@
it { is_expected.to_not contain_class('riak::repository::el') }
it { is_expected.to_not contain_yumrepo('basho_riak') }
when 'Debian'
it { is_expected.to_not contain_class('riak::repository::debian') }
case facts[:operationsystem]
when 'ubuntu'
it { is_expected.to_not contain_class('riak::repository::ubuntu') }
else
it { is_expected.to_not contain_class('riak::repository::debian') }
end
it { is_expected.to_not contain_apt__source('riak') }
end
end
Expand Down