Small demonstration of the unexpected beahvior observed regarding secret IDs
Initially they had the shape of
- `secret:<secret ID>`
However as --demonstrated here-- in Juju 3.1 now they appear as
- `secret://<model UUID >/<secret ID>
Demonstration of the issue is visible in the correpsonding Integration Test -- run successfully by the corresponding pipeline.
async def test_secret_id_label(ops_test: OpsTest):
"""Testing add_secret() return value format
NOTE: This shouldn't work
"""
secret_data = await helper_execute_action(ops_test, "set-secret", {"key": "key1", "value": "value1"})
secret_labelled_data = await helper_execute_action(
ops_test, "set-secret-labelled", {"key": "key2", "value": "value2"}
)
assert "//" in secret_labelled_data["secret-id"]
assert "//" in secret_data["secret-id"]