We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c13fe5 + f9d10d9 commit ecb6fe5Copy full SHA for ecb6fe5
2 files changed
examples/ssh/local.yaml
@@ -0,0 +1,10 @@
1
+targets:
2
+ main:
3
+ resources:
4
+ NetworkService:
5
+ address: "dut.address"
6
+ drivers:
7
+ SSHDriver:
8
+ username: "root"
9
+ password: "pass"
10
+ #keyfile: "/path/to/keyfile"
examples/ssh/test_ssh.py
@@ -0,0 +1,5 @@
+def test_ssh(target):
+ """Simple test with SSHDriver directly executing a command on the DUT"""
+ ssh_driver = target.get_driver("SSHDriver")
+ stdout = ssh_driver.run_check("cat /proc/version")
+ assert stdout
0 commit comments