Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tested Ubuntu versions to metadata.json #71

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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