Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created April 5, 2013 19:26
Show Gist options
  • Save chrisa/5321918 to your computer and use it in GitHub Desktop.
Save chrisa/5321918 to your computer and use it in GitHub Desktop.
~/Projects/venda/chef/upstream-cookbooks/x509 ➔ bundle exec rspec spec/**/*_spec.rb
............FFFF
Failures:
1) x509_certificate install new cert when certbag shows up should update certificate
Failure/Error: .with(:content, 'test-cert-text')
expected that the recipe would include Resource[file[/tmp/cert] @name="/tmp/cert"] with action expected to be [:create] but it is [:nothing], and content expected to be test-cert-text but it is
# ./spec/providers/x509_certificate_spec.rb:216:in `block (3 levels) in <top (required)>'
2) x509_certificate install new cert and cacert when certbag shows up should update certificate and install cacert
Failure/Error: .with(:content, 'test-cert-text')
expected that the recipe would include Resource[file[/tmp/cert] @name="/tmp/cert"] with action expected to be [:create] but it is [:nothing], and content expected to be test-cert-text but it is
# ./spec/providers/x509_certificate_spec.rb:281:in `block (3 levels) in <top (required)>'
3) x509_certificate handle mismatched key/cert when certbag shows up should not touch cert or key
Failure/Error: node['csr_outbox'].should_not have_key('ssl.example.com')
expected #has_key?("ssl.example.com") to return false, got true
# ./spec/providers/x509_certificate_spec.rb:349:in `block (3 levels) in <top (required)>'
4) x509_certificate handle missing key when certbag shows up should not touch cert or key
Failure/Error: node['csr_outbox'].should_not have_key('ssl.example.com')
expected #has_key?("ssl.example.com") to return false, got true
# ./spec/providers/x509_certificate_spec.rb:393:in `block (3 levels) in <top (required)>'
Finished in 5.47 seconds
16 examples, 4 failures
Failed examples:
rspec ./spec/providers/x509_certificate_spec.rb:181 # x509_certificate install new cert when certbag shows up should update certificate
rspec ./spec/providers/x509_certificate_spec.rb:245 # x509_certificate install new cert and cacert when certbag shows up should update certificate and install cacert
rspec ./spec/providers/x509_certificate_spec.rb:312 # x509_certificate handle mismatched key/cert when certbag shows up should not touch cert or key
rspec ./spec/providers/x509_certificate_spec.rb:374 # x509_certificate handle missing key when certbag shows up should not touch cert or key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment