Skip to content

Commit

Permalink
Updated rspec-system tests and version bump for the next forge release
Browse files Browse the repository at this point in the history
0.0.5
  • Loading branch information
dgolja committed Oct 18, 2014
1 parent 3173c20 commit 8ced467
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2014-10-07 - Dejan Golja <[email protected]> - 0.0.5
* bugfix for https keys

2014-08-17 - Dejan Golja <[email protected]> - 0.0.4
* Update metadata.json and removed Modulefile due to
as of Puppet 3.6 the Modulefile has been deprecated
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
],
"license": "ASL 2.0",
"name": "golja-gnupg",
"project_page": "http://github.com/n1tr0g/golja-gnupg.git",
"project_page": "https://github.com/n1tr0g/golja-gnupg",
"source": "git://github.com/n1tr0g/golja-gnupg.git",
"summary": "Manage gnupg package and public keys",
"version": "0.0.4",
"version": "0.0.5",
"tags": ["gnupg", "pgp", "ubuntu", "debian", "redhat", "centos"],
"issues_url": "https://github.com/n1tr0g/golja-gnupg/issues"
}
26 changes: 25 additions & 1 deletion spec/system/gnupg_key_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
end
end

it 'should install a key from a URL address' do
it 'should install a key from a HTTP URL address' do
pp = <<-EOS.unindent
gnupg_key { 'jenkins_key':
ensure => present,
Expand All @@ -32,6 +32,30 @@
end
end

it 'should install a key from a HTTPS URL address' do
pp = <<-EOS.unindent
gnupg_key { 'newrelic_key':
ensure => present,
user => 'root',
key_source => 'https://download.newrelic.com/548C16BF.gpg',
key_id => '548C16BF',
}
EOS

puppet_apply(pp) do |r|
r.exit_code.should == 2
r.refresh
r.exit_code.should == 0
end

# check that gnupg installed the key
gpg("--list-keys 548C16BF") do |r|
r.stdout.should =~ /548C16BF/
r.stderr.should == ''
r.exit_code == 0
end
end

it 'should install a key from a key server' do
pp = <<-EOS.unindent
gnupg_key { 'root_key_foo':
Expand Down

0 comments on commit 8ced467

Please sign in to comment.