Remove AsyncSshHandler.handleSshAuthenticated() 32/102732/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 08:55:29 +0000 (10:55 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 13:07:23 +0000 (15:07 +0200)
commit1a3e240661ae48d498c98f02036dff2a3d8f3ec6
tree2a8cbe7176c533036f4ca8e1f164979eefa34c67
parent472c7476c32ca38469e58efb9da95dcb6cd9342e
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)
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