QA: Extend AssertCommand to allow not forwarding the agent
authorHrvoje Ribicic <riba@google.com>
Fri, 6 Nov 2015 16:01:42 +0000 (16:01 +0000)
committerHrvoje Ribicic <riba@google.com>
Fri, 20 Nov 2015 10:14:28 +0000 (11:14 +0100)
commite90da976de6cbae6831f8c11dd96c0eab7e29abe
tree33518b9baca056a673176f6a1e0afe20f8f89c97
parent4e9ad0795bd7d94f122753570dd5b783537b94c0
QA: Extend AssertCommand to allow not forwarding the agent

When testing SSH-related behavior in Ganeti, having the SSH agent
forwarded in all the command-running utilities can produce spurious
errors, or worse yet, allow real ones to sneak by. In this patch, the
AssertCommand function is extended to allow disabling of agent
forwarding. This also switches off connection multiplexing, as the
multiplexed connection forwards agents implicitly.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
qa/qa_utils.py