ssh-home.bats 974 B

123456789101112131415161718192021222324252627282930
  1. @test "invoke id command over ssh on spb" {
  2. run timeout 10 ssh -F test-tmp/config -o ControlPath=none -J zabbix.wugi.info spb id
  3. [ "$status" -eq 0 ]
  4. [[ "$output" == *uid=1000* ]]
  5. }
  6. @test "invoke id command over ssh on oracle" {
  7. run timeout 10 ssh -F test-tmp/config -o ControlPath=none oracle id
  8. [ "$status" -eq 0 ]
  9. [[ "$output" == *uid=1000* ]]
  10. }
  11. @test "invoke id command over ssh on majordomo.intr" {
  12. run timeout 10 ssh -F test-tmp/config -o ControlPath=none -J zabbix.wugi.info majordomo.intr id
  13. [ "$status" -eq 0 ]
  14. [[ "$output" == *uid=1000* ]]
  15. }
  16. @test "invoke id command over ssh on workstation.intr" {
  17. run timeout 10 ssh -F test-tmp/config -o ControlPath=none ws1.wugi.info id
  18. [ "$status" -eq 0 ]
  19. [[ "$output" == *uid=1000* ]]
  20. }
  21. @test "invoke id command over ssh on nixos.intr" {
  22. run timeout 10 ssh -F test-tmp/config -o ControlPath=none nixos.intr id
  23. [ "$status" -eq 0 ]
  24. [[ "$output" == *uid=1000* ]]
  25. }