From 09fdc562b5d8452c45c2e07e2e32c08e3134de38 Mon Sep 17 00:00:00 2001 From: codihuston <56605211+codihuston@users.noreply.github.com> Date: Mon, 15 Jul 2024 11:51:59 -0400 Subject: [PATCH] Rename policy load validate query paramter to dryRun --- CHANGELOG.md | 8 +++++++- conjurapi/client.go | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad2c82d..87da8bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [0.12.3] - 2024-07-15 + +### Changed +- Rename `validate` query parameter to `dryRun` (CNJR-4593) + ## [0.12.2] - 2024-07-15 ### Changed @@ -202,7 +207,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Initial version -[Unreleased]: https://github.com/cyberark/conjur-api-go/compare/v0.12.2...HEAD +[Unreleased]: https://github.com/cyberark/conjur-api-go/compare/v0.12.3...HEAD +[v0.12.3]: https://github.com/cyberark/conjur-api-go/compare/v0.12.2...v0.12.3 [v0.12.2]: https://github.com/cyberark/conjur-api-go/compare/v0.12.1...v0.12.2 [v0.12.1]: https://github.com/cyberark/conjur-api-go/compare/v0.12.0...v0.12.1 [v0.12.0]: https://github.com/cyberark/conjur-api-go/compare/v0.11.4...v0.12.0 diff --git a/conjurapi/client.go b/conjurapi/client.go index ebe347e..8875b4b 100644 --- a/conjurapi/client.go +++ b/conjurapi/client.go @@ -492,7 +492,7 @@ func (c *Client) LoadPolicyRequest(mode PolicyMode, policyID string, policy io.R ) if validate { - routerUrl = routerUrl.withQuery("validate=true") + routerUrl = routerUrl.withQuery("dryRun=true") } policyURL := routerUrl.String()