mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Fix x509_certificate
integration tests (#2431)
An update to the openssl cookbook modified the defaults for `state` and `city` in the `openssl_x509` resource. That change modified the output of `issuer_dn` and `subject_dn` in InSpec's `x509_certificate` resource. This modifies the expected output of the integration tests to match these new defaults. Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
parent
c68043d041
commit
491a1b9968
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ describe x509_certificate('/tmp/mycert.pem') do
|
|||
its('signature_algorithm') { should eq 'sha256WithRSAEncryption' }
|
||||
its('validity_in_days') { should_not be < 100 }
|
||||
its('validity_in_days') { should be >= 100 }
|
||||
its('subject_dn') { should eq '/C=US/O=Foo Bar/OU=Lab/CN=www.f00bar.com' }
|
||||
its('subject_dn') { should eq '/C=US/ST= /L= /O=Foo Bar/OU=Lab/CN=www.f00bar.com' }
|
||||
its('subject.C') { should eq 'US' }
|
||||
its('issuer_dn') { should eq '/C=US/O=Foo Bar/OU=Lab/CN=www.f00bar.com' }
|
||||
its('issuer_dn') { should eq '/C=US/ST= /L= /O=Foo Bar/OU=Lab/CN=www.f00bar.com' }
|
||||
its('key_length') { should be >= 2048 }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue