Skip to content

Commit

Permalink
Add integration test for set_issuers
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Austermühle <[email protected]>
  • Loading branch information
stephan2012 committed Dec 5, 2024
1 parent 40a5eba commit 108ad46
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/integration_tests/api/secrets_engines/test_pki.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,27 @@ def test_list_issuers(self):

self.assertIn("keys", pki_list_response["data"].keys())

# Set issuers
@skipIf(utils.vault_version_lt("1.11.0"), reason="Support added in version 1.11.0.")
def test_set_issuers(self):

pki_list_response = self.client.secrets.pki.list_issuers(
mount_point=self.TEST_MOUNT_POINT
)

logging.debug("pki_list_response: %s" % pki_list_response)

pki_set_response = self.client.secrets.pki.set_issuers(
{
'default': pki_list_response["data"]["keys"][0]
},
mount_point=self.TEST_MOUNT_POINT,
)

logging.debug("pki_set_response: %s" % pki_set_response)

self.assertIn("default", pki_set_response["data"].keys())

# Update issuer
@skipIf(utils.vault_version_lt("1.11.0"), reason="Support added in version 1.11.0.")
def test_update_issuer(self):
Expand Down

0 comments on commit 108ad46

Please sign in to comment.