Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18154 from ycliuhw/merge-secret-update
juju#18154 On the uniter side, all relation-set calls are merged if they are made within the same context. However, secret-set currently overwrites previous calls. This PR updates secret-set to follow the same merging logic as relation-set. ## Checklist - [x] Code style: imports ordered, good names, simple structure, etc - [x] Comments saying why design decisions were made - [x] Go unit tests, with comments saying what you're testing - [ ] ~[Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing~ - [ ] ~[doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~ ## QA steps ``` juju exec -u snappass-test/0 -- secret-add token=1 secret://f00ef518-9c1e-4411-889c-f4f37ca4c6f7/crt2hh7mp25c782slkh0 juju show-secret crt2hh7mp25c782slkh0 --reveal crt2hh7mp25c782slkh0: revision: 1 owner: snappass-test created: 2024-09-30T04:27:49Z updated: 2024-09-30T04:27:49Z content: token: "1" juju exec -u snappass-test/0 -- "secret-set crt2hh7mp25c782slkh0 --label=ll;secret-set crt2hh7mp25c782slkh0 --description lll" juju show-secret crt2hh7mp25c782slkh0 --reveal crt2hh7mp25c782slkh0: revision: 2 owner: snappass-test description: lll label: ll created: 2024-09-30T04:27:49Z updated: 2024-09-30T04:28:24Z content: token: "1" ``` ## Documentation changes No ## Links **Launchpad bug:** https://bugs.launchpad.net/bugs/2081034 **Jira card:** [JUJU-6804](https://warthogs.atlassian.net/browse/JUJU-6804) [JUJU-6804]: https://warthogs.atlassian.net/browse/JUJU-6804?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information