Shireesh Anjal has posted comments on this change.
Change subject: gluster: replace VdsInstallerSSH: with the SSHDialog
......................................................................
Patch Set 3: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/GetServerSSHKeyFingerprintQueryTest.java
Line 19: String serverName = "localhost";
Line 20: String fingerPrint =
"b5:ad:16:19:06:9f:b3:41:69:eb:1c:42:1d:12:b5:31";
Line 21:
Line 22: @BeforeClass
Line 23: public static void init() {
As far as my understanding goes, MockConfigRule was written for precisely this
purpose, and is being used in about 127 places throughout the code base. I was
using a different approach in GlusterManagerTest at first, and was asked by
reviewers to use MockConfigRule instead.
Also, the config dependency is coming from EngineSSHDialog class. This class
should have a test class (EngineSSHDialogTest) which tests the methods present
in it including getServerFingerprint(), and getServerFingerprint() should just
be mocked here.
Line 24: IConfigUtilsInterface confInstance = new
DefaultValuesConfigUtil();
Line 25: Config.setConfigUtils(confInstance);
Line 26: }
Line 27:
--
To view, visit http://gerrit.ovirt.org/9160
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I48e02991635a5eb2c954da392cdd5f68219120b3
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Shireesh Anjal <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches