Skip to content

Commit

Permalink
Remove outdated test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Jun 5, 2024
1 parent f43b395 commit b7b2272
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3663,24 +3663,6 @@ def test_get_content_copies_dict(self, model: ops.Model, fake_script: FakeScript

assert fake_script.calls(clear=True) == [['secret-get', 'secret:z', '--format=json']]

def test_set_content_invalidates_cache(self, model: ops.Model, fake_script: FakeScript):
fake_script.write('secret-get', """echo '{"foo": "bar"}'""")
fake_script.write('secret-set', """exit 0""")

secret = self.make_secret(model, id='z')
old_content = secret.get_content()
assert old_content == {'foo': 'bar'}
secret.set_content({'new': 'content'})
fake_script.write('secret-get', """echo '{"new": "content"}'""")
new_content = secret.get_content()
assert new_content == {'new': 'content'}

assert fake_script.calls(clear=True) == [
['secret-get', 'secret:z', '--format=json'],
['secret-set', 'secret:z', 'new=content'],
['secret-get', 'secret:z', '--format=json'],
]

def test_peek_content(self, model: ops.Model, fake_script: FakeScript):
fake_script.write('secret-get', """echo '{"foo": "peeked"}'""")

Expand Down

0 comments on commit b7b2272

Please sign in to comment.