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

Let each test use a different certificate file name #116

Merged
merged 1 commit into from
Mar 11, 2022
Merged
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
6 changes: 3 additions & 3 deletions tests/tests_basic_ipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_basic_ipa
dns: ipaserver.test.local
principal: HTTP/ipaserver.test.local@TEST.LOCAL
ca: ipa
Expand All @@ -29,8 +29,8 @@
become: true
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_basic_ipa.crt
key_path: /etc/pki/tls/private/mycert_basic_ipa.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_basic_self_signed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_basic_self_signed
dns: www.example.com
ca: self-sign
roles:
Expand All @@ -14,8 +14,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_basic_self_signed.crt
key_path: /etc/pki/tls/private/mycert_basic_self_signed.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_dns_ip_email.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
vars:
certificate_requests:
- name: mycert
- name: mycert_dns_ip_email
common_name: My Certificate with SAN
dns:
- sub1.example.com
Expand All @@ -25,8 +25,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_dns_ip_email.crt
key_path: /etc/pki/tls/private/mycert_dns_ip_email.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_fs_attrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
hosts: all
vars:
certificate_requests:
- name: mycert
- name: mycert_fs_attrs
dns: www.example.com
owner: ftp
group: ftp
Expand All @@ -32,8 +32,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_fs_attrs.crt
key_path: /etc/pki/tls/private/mycert_fs_attrs.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_key_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_key_size
dns: www.example.com
ca: self-sign
key_size: 4096
Expand All @@ -15,8 +15,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_key_size.crt
key_path: /etc/pki/tls/private/mycert_key_size.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
7 changes: 4 additions & 3 deletions tests/tests_key_usage_and_extended_key_usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_key_usage_and_extended_key_usage
dns: www.example.com
key_usage:
- digitalSignature
Expand All @@ -23,8 +23,9 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_key_usage_and_extended_key_usage.crt
key_path: >-
/etc/pki/tls/private/mycert_key_usage_and_extended_key_usage.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_many_self_signed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
vars:
certificate_requests:
- name: mycert
- name: mycert_many_self_signed
dns: www.example.com
ca: self-sign
- name: other-cert
Expand All @@ -19,8 +19,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_many_self_signed.crt
key_path: /etc/pki/tls/private/mycert_many_self_signed.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_no_auto_renew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_no_auto_renew
dns: www.example.com
ca: self-sign
auto_renew: no
Expand All @@ -18,8 +18,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_no_auto_renew.crt
key_path: /etc/pki/tls/private/mycert_no_auto_renew.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_not_wait_for_cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
vars:
certificate_wait: false
certificate_requests:
- name: mycert
- name: mycert_not_wait_for_cert
dns: www.example.com
ca: self-sign
roles:
Expand All @@ -15,8 +15,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_not_wait_for_cert.crt
key_path: /etc/pki/tls/private/mycert_not_wait_for_cert.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_principal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
vars:
certificate_requests:
- name: mycert
- name: mycert_principal
dns: www.example.com
principal: HTTP/www.example.com@EXAMPLE.COM
ca: self-sign
Expand All @@ -14,8 +14,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_principal.crt
key_path: /etc/pki/tls/private/mycert_principal.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
vars:
certificate_requests:
- name: mycert
- name: mycert_provider
dns: www.example.com
ca: self-sign
provider: certmonger
Expand All @@ -14,8 +14,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_provider.crt
key_path: /etc/pki/tls/private/mycert_provider.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_run_hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_run_hooks
dns: www.example.com
ca: self-sign
run_before: >
Expand All @@ -18,8 +18,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_run_hooks.crt
key_path: /etc/pki/tls/private/mycert_run_hooks.key
subject:
- name: commonName
oid: 2.5.4.3
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_subject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_subject
dns: www.example.com
common_name: Some other common name
country: US
Expand All @@ -20,8 +20,8 @@
hosts: all
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_subject.crt
key_path: /etc/pki/tls/private/mycert_subject.key
subject:
- name: countryName
oid: 2.5.4.6
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_subject_complex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

vars:
certificate_requests:
- name: mycert
- name: mycert_subject_complex
dns: www.example.com
common_name: '# \\Every"thing+that,ne;eds<escap>ing\0 '
contact_email: admin@example.com
Expand All @@ -18,8 +18,8 @@
become: true
vars:
certificates:
- path: /etc/pki/tls/certs/mycert.crt
key_path: /etc/pki/tls/private/mycert.key
- path: /etc/pki/tls/certs/mycert_subject_complex.crt
key_path: /etc/pki/tls/private/mycert_subject_complex.key
subject:
- name: emailAddress
oid: 1.2.840.113549.1.9.1
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_wrong_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
vars:
certificate_requests:
- name: mycert
- name: mycert_wrong_provider
dns: www.example.com
ca: self-sign
provider: fake-provider
Expand Down