We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50593e3 commit c8c9420Copy full SHA for c8c9420
1 file changed
tests/integration/test_secrets.py
@@ -63,3 +63,15 @@ async def test_remove_secret(event_loop):
63
64
secrets = await model.list_secrets()
65
assert len(secrets) == 0
66
+
67
68
+@base.bootstrapped
69
+@pytest.mark.bundle
70
+async def test_grant_secret(event_loop):
71
+ async with base.CleanModel() as model:
72
+ secret = await model.add_secret(name='my-apitoken', data_args=['token=34ae35facd4'])
73
+ assert secret.startswith('secret:')
74
75
+ await model.deploy('ubuntu')
76
77
+ await model.grant_secret('my-apitoken', 'ubuntu')
0 commit comments