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

Client.write method breaking changes 2.0.0 #1089

Merged
Prev Previous commit
Next Next commit
update test helpers to use write_data()
  • Loading branch information
briantist committed Oct 15, 2023
commit 7c6eb5093161f4b48d4327e4f4abef4129109202
28 changes: 17 additions & 11 deletions tests/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,22 +253,28 @@ def configure_pki(

client.sys.enable_secrets_engine(backend_type="pki", path=mount_point)

client.write(
client.write_data(
path=f"{mount_point}/root/generate/internal",
common_name=common_name,
ttl="8760h",
data=dict(
common_name=common_name,
ttl="8760h",
),
)
client.write(
client.write_data(
path=f"{mount_point}/config/urls",
issuing_certificates="http:https://127.0.0.1:8200/v1/pki/ca",
crl_distribution_points="http:https://127.0.0.1:8200/v1/pki/crl",
data=dict(
issuing_certificates="http:https://127.0.0.1:8200/v1/pki/ca",
crl_distribution_points="http:https://127.0.0.1:8200/v1/pki/crl",
),
)
client.write(
client.write_data(
path=f"{mount_point}/roles/{role_name}",
allowed_domains=common_name,
allow_subdomains=True,
generate_lease=True,
max_ttl="72h",
data=dict(
allowed_domains=common_name,
allow_subdomains=True,
generate_lease=True,
max_ttl="72h",
),
)


Expand Down