Remove AsyncSshHandler.handleSshAuthenticated() 64/102964/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 08:55:29 +0000 (10:55 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 31 Oct 2022 07:18:55 +0000 (08:18 +0100)
commit99d1e49b197fe84f55f128efd86dfa3b64c793b9
tree32dcd5468715ffe301161c7edb867a6cf96f4e12
parentf66e9ee4e0847ecbcca7f5d1623c7af395f96cbb
Remove AsyncSshHandler.handleSshAuthenticated()

This method is the locked bottom of onAuthComplete(), rename it and
split out onOpenComplete(), making the flow more linear. Also switch
to use getException() to discern success/failure, fixing up badly-named
mocks.

JIRA: NETCONF-905
Change-Id: I7a0c20b872b19b66e99144d0ce83636d6b4cd400
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6de37782ed59747d2ad803e3b9836f6ed25d6986)
(cherry picked from commit 1a3e240661ae48d498c98f02036dff2a3d8f3ec6)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java