We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77bc0dc commit 0dc32a5Copy full SHA for 0dc32a5
1 file changed
tests/integration/test_machine.py
@@ -7,6 +7,7 @@
7
import pytest
8
9
from .. import base
10
+from juju.machine import Machine
11
12
13
@base.bootstrapped
@@ -65,3 +66,12 @@ async def test_scp(event_loop):
65
66
with NamedTemporaryFile() as f:
67
await machine.scp_from('testfile', f.name, scp_opts='-p')
68
assert f.read() == b'testcontents'
69
+
70
71
+async def test_machine_ssh():
72
+ async with base.CleanModel() as model:
73
+ machine: Machine = await model.add_machine()
74
+ await machine.wait()
75
+ out = await machine.ssh("echo hello world!")
76
77
+ assert out == "hello world!\n"
0 commit comments