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() {
Yes, it is an inferior solution because you are not mocking EngineSSHDialog. 
Better solution is:

- Write a test case for EngineSSHDialog and test all it's methods in it. Note 
that here you don't have to chase down all 'indirectly used' configurations - 
only the ones used by EngineSSHDialog.

- Mock EngineSSHDialog in GetServerSSHKeyFingerprintQueryTest. No need to mock 
any configuration 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 <alo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Barak Azulay <bazu...@redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsl...@redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Shireesh Anjal <san...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to