Skip to content

Commit

Permalink
Revert "fix zaza.model.run_on_unit" (#277)
Browse files Browse the repository at this point in the history
Reverts #257

Since the issue
[#649](openstack-charmers/zaza#649) was fixed.
  • Loading branch information
rgildein authored Mar 6, 2024
1 parent 01aa854 commit 1a1510a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/functional/tests/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def test_scp_from_unit(self):
test_file = "test.txt"
path = f"/tmp/{test_file}"
exp_path = os.path.join(tmp_dir, test_file)
zaza.sync_wrapper(self.model.connect)()
zaza.sync_wrapper(self.model._model.units[TESTED_UNIT].run)(f"echo 'test' > {path}")
zaza.model.run_on_unit(unit_name=TESTED_UNIT, command=f"echo 'test' > {path}")

zaza.sync_wrapper(self.model.scp_from_unit)(TESTED_UNIT, path, tmp_dir)
self.assertTrue(os.path.exists(exp_path))
Expand Down

0 comments on commit 1a1510a

Please sign in to comment.