summaryrefslogtreecommitdiff
path: root/files/puppet/modules/pixelated/spec/classes/apt_spec.rb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-02-09 10:05:07 +0100
committervarac <varacanero@zeromail.org>2017-02-09 10:05:07 +0100
commitf3eafa18540e84eb1673df6ff316ce453eb86429 (patch)
tree887dfda48190a1e5aa2e5e4af8d56535cfca7b3c /files/puppet/modules/pixelated/spec/classes/apt_spec.rb
parent410cee61b6cf5b792b4c74493c0f699260c22743 (diff)
git subrepo clone --force https://github.com/pixelated/puppet-pixelated.git files/puppet/modules/pixelated
subrepo: subdir: "files/puppet/modules/pixelated" merged: "0b29fe6" upstream: origin: "https://github.com/pixelated/puppet-pixelated.git" branch: "master" commit: "0b29fe6" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "841aa43"
Diffstat (limited to 'files/puppet/modules/pixelated/spec/classes/apt_spec.rb')
-rw-r--r--files/puppet/modules/pixelated/spec/classes/apt_spec.rb27
1 files changed, 26 insertions, 1 deletions
diff --git a/files/puppet/modules/pixelated/spec/classes/apt_spec.rb b/files/puppet/modules/pixelated/spec/classes/apt_spec.rb
index df5c33f..7fe995a 100644
--- a/files/puppet/modules/pixelated/spec/classes/apt_spec.rb
+++ b/files/puppet/modules/pixelated/spec/classes/apt_spec.rb
@@ -5,6 +5,7 @@ describe 'pixelated::apt' do
{
:operatingsystem => 'Debian',
:lsbdistid => 'Debian',
+ :domain => 'default',
:lsbdistcodename => 'jessie',
}
end
@@ -14,8 +15,32 @@ describe 'pixelated::apt' do
"define apt::sources_list($content='deb url') {}",
] }
- it { should contain_apt__sources_list('pixelated.list') }
+ it { should contain_apt__sources_list('pixelated.list').
+ with_content("deb [arch=amd64] http://packages.pixelated-project.org/debian jessie main\n") }
it { should contain_file('/srv/leap/0x287A1542472DC0E3_packages@pixelated-project.org.asc') }
it { should contain_exec('add_pixelated_key') }
+ context 'staging' do
+ let(:facts) do
+ {
+ :domain => 'staging.pixelated-project.org',
+ :lsbdistcodename => 'jessie',
+ }
+ end
+
+ it { should contain_apt__sources_list('pixelated.list').
+ with_content("deb [arch=amd64] http://packages.pixelated-project.org/debian jessie-snapshots main\n") }
+ end
+
+ context 'unstable' do
+ let(:facts) do
+ {
+ :domain => 'unstable.pixelated-project.org',
+ :lsbdistcodename => 'jessie',
+ }
+ end
+
+ it { should contain_apt__sources_list('pixelated.list').
+ with_content("deb [arch=amd64] http://packages.pixelated-project.org/debian jessie-snapshots main\n") }
+ end
end