10 lines
648 B
Bash
10 lines
648 B
Bash
# The configurator in huh's accessible mode: without NetBox, add a static host,
|
|
# save, then connect. Menu numbers follow the order in internal/setup.
|
|
config_only </dev/null
|
|
rm -f "$XDG_CONFIG_HOME/netssh.yaml"
|
|
# no NetBox, static hosts, add, name, address, user, port, tags, back, save
|
|
out=$(python3 /tests/drive.py 2 4 1 legacy-box 10.231.0.50 admin "" legacy 5 9)
|
|
[[ $out == *"Config saved"* ]] && ok "configure saves" || bad "configure saves" "$out"
|
|
expect_out "config has the host" 'address: "10.231.0.50"' cat "$XDG_CONFIG_HOME/netssh.yaml"
|
|
expect_eq "connect to the configured host" "admin" netssh legacy-box whoami
|