Remove AsyncSshHandler.handleSshAuthenticated() 18/102718/3
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 10:06:26 +0000 (12:06 +0200)
commit6de37782ed59747d2ad803e3b9836f6ed25d6986
tree82d04b1900111eedcac4d5c02d787ac62512fa8c
parent811508380706eea604bab58f3725bc9bf64790aa
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>
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