Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
blechschmidt committed Jun 22, 2024
1 parent 47cd570 commit 2e44c3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ def test_virtuser(self):
assert pallium_exec_output(profile, ['whoami']) == 'johndoe'

def test_mv(self):
with tempfile.NamedTemporaryFile():
pass
profile = {
'sandbox': {
'virtuser': {
Expand All @@ -125,6 +123,10 @@ def test_mv(self):
exec_result = session.exec(['cat', '/home/johndoe/hello.txt'])
assert exec_result == 'hello world'

subprocess.call(['pallium', 'mv', '/home/johndoe/hello.txt', tmp.name, '--from', session.profile_path])
with open(tmp.name, 'r') as f:
assert f.read() == 'hello world'

def test_port_forwarding(self):
profile = {
'network': {
Expand Down

0 comments on commit 2e44c3a

Please sign in to comment.