-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses unit as part of validity string
- Loading branch information
1 parent
4f7e86f
commit 4f8127d
Showing
6 changed files
with
140 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,8 +60,8 @@ async def deploy(ops_test: OpsTest, request): | |
trust=True, | ||
config={ | ||
"ca-common-name": CA_COMMON_NAME, | ||
"root-ca-validity": 200, | ||
"certificate-validity": 100, | ||
"root-ca-validity": "200", | ||
"certificate-validity": "100", | ||
"ca-email-address": "[email protected]", | ||
"ca-country-name": "US", | ||
"ca-state-or-province-name": "California", | ||
|
@@ -136,9 +136,8 @@ async def test_given_tls_requirer_is_integrated_when_certificate_expires_then_ne | |
assert application | ||
await application.set_config( | ||
{ | ||
"root-ca-validity": 60, | ||
"certificate-validity": 30, | ||
"validity-unit": "seconds", | ||
"root-ca-validity": "600s", | ||
"certificate-validity": "30s", | ||
} | ||
) | ||
await ops_test.model.wait_for_idle( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,8 +50,8 @@ def test_given_valid_config_when_config_changed_then_ca_certificate_is_pushed_to | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "pizza.example.com", | ||
"certificate-validity": 100, | ||
"root-ca-validity": 200, | ||
"certificate-validity": "100", | ||
"root-ca-validity": "200", | ||
}, | ||
leader=True, | ||
) | ||
|
@@ -77,8 +77,8 @@ def test_given_valid_config_when_config_changed_then_ca_certificate_is_stored_in | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "pizza.example.com", | ||
"certificate-validity": certificate_validity, | ||
"root-ca-validity": root_ca_validity, | ||
"certificate-validity": str(certificate_validity), | ||
"root-ca-validity": str(root_ca_validity), | ||
}, | ||
leader=True, | ||
) | ||
|
@@ -111,7 +111,7 @@ def test_given_root_certificate_not_stored_when_config_changed_then_existing_cer | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "pizza.example.com", | ||
"certificate-validity": 100, | ||
"certificate-validity": "100", | ||
}, | ||
leader=True, | ||
secrets=frozenset(), | ||
|
@@ -156,8 +156,8 @@ def test_given_new_root_ca_config_when_config_changed_then_new_root_ca_is_replac | |
"ca-email-address": "[email protected]", | ||
"ca-country-name": "CA", | ||
"ca-locality-name": "Montreal", | ||
"certificate-validity": 100, | ||
"root-ca-validity": 200, | ||
"certificate-validity": "100", | ||
"root-ca-validity": "200", | ||
}, | ||
leader=True, | ||
secrets={ca_certificate_secret}, | ||
|
@@ -214,9 +214,8 @@ def test_given_root_ca_about_to_expire_then_root_ca_is_marked_expiring_and_new_o | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "example.com", | ||
"root-ca-validity": 60, | ||
"certificate-validity": 30, | ||
"validity-unit": "seconds", | ||
"root-ca-validity": "60s", | ||
"certificate-validity": "30s", | ||
}, | ||
leader=True, | ||
secrets={ca_certificate_secret}, | ||
|
@@ -291,8 +290,8 @@ def test_given_outstanding_certificate_requests_when_config_changed_then_certifi | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "example.com", | ||
"certificate-validity": 100, | ||
"root-ca-validity": 200, | ||
"certificate-validity": "100", | ||
"root-ca-validity": "200", | ||
}, | ||
leader=True, | ||
relations={tls_relation}, | ||
|
@@ -337,7 +336,7 @@ def test_given_valid_config_and_unit_is_leader_when_secret_expired_then_new_ca_c | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "pizza.example.com", | ||
"certificate-validity": 100, | ||
"certificate-validity": "100", | ||
}, | ||
leader=True, | ||
secrets={ca_certificates_secret}, | ||
|
@@ -389,7 +388,7 @@ def test_given_initial_config_when_config_changed_then_stored_ca_common_name_use | |
state_in = scenario.State( | ||
config={ | ||
"ca-common-name": "common-name-new.example.com", | ||
"certificate-validity": 100, | ||
"certificate-validity": "100", | ||
}, | ||
leader=True, | ||
secrets={ca_certificates_secret}, | ||
|
@@ -434,8 +433,8 @@ def test_given_certificate_transfer_relations_when_configure_then_ca_cert_is_adv | |
leader=True, | ||
config={ | ||
"ca-common-name": "example.com", | ||
"certificate-validity": 100, | ||
"root-ca-validity": 200, | ||
"certificate-validity": "100", | ||
"root-ca-validity": "200", | ||
}, | ||
) | ||
|
||
|
Oops, something went wrong.