Mike A
unread,Oct 13, 2009, 4:19:58 PM10/13/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to XAM Developers Group
The released version of the SDK (1.0.1) contains an error in the unit
tests of the Java Reference VIM. If you reconfigure the unit tests to
use a different store directory, two unit tests will fail. This is a
fault in the unit test and not in the Reference VIM itself. If you
wish, you can fix the unit tests by applying a patch contained in the
following diffs.
SNIA has a defect filed to reflect this.
===================================================================
--- test/org/snia/xam/vim/reference/ReferenceXAMTest.java (revision
502)
+++ test/org/snia/xam/vim/reference/ReferenceXAMTest.java (working
copy)
@@ -136,23 +136,6 @@
return suite;
}
- public XRI getXRI() throws Exception
- {
- if (null == xri) {
- XRI xriObj = new XRI();
- xriObj.setVimInfo(TestConstants.VIM_NAME);
- String ip = "";
- try {
- ip = InetAddress.getLocalHost().getHostAddress();
- } catch (Exception ex) {
- throw new XAMException("Error getting local host
address.",
- ex);
- }
- xriObj.setSystem(ip);
- xri = xriObj;
- }
- return xri;
- }
public XSystem connectAndAuthenticate(boolean useXAMLib) throws
Exception
{
XSystem xs = doConnection(useXAMLib);
@@ -200,7 +183,7 @@
// Initialization phase is done.
xsystem.deleteField( XSystem.XAM_XSYSTEM_INITIALIZING );
- xsystem.connect(getXRI().toString());
+ xsystem.connect(s_xri);
}
Assert.assertTrue("Connect failed. Null XSystem
returned.",
xsystem !=
null);