<br>Hi,<br><br>I am trying to build the "rackspace-java-cloudfiles" package (JAVA apis)  and run the unit tests ... but getting the errors <br><br><br><br>[shashi@shashi rackspace-java-cloudfiles-1fb920d]$ cat src/test/resources/cloudfiles.properties <br>
<br># user properties<br>username=tester<br>password=testing<br>account=test<br><br># Auth Info, including two headers that can change for different auth services<br>#auth_url=<a href="http://test1:8080/auth/v1">http://test1:8080/auth/v1</a><br>
<br>auth_token_name=X-Auth-Token<br>auth_url=<a href="http://192.168.62.63:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a">http://192.168.62.63:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a</a><br>auth_user_header=tester<br>
auth_pass_header=testing<br>auth_user_header=X-Storage-User<br>auth_pass_header=X-Storage-Pass<br><br># cloudfs properties<br>version=v1<br>connection_timeout=15000<br><br><br><br><br><br><br>[shashi@shashi rackspace-java-cloudfiles-1fb920d]$ ant test<br>
Buildfile: build.xml<br><br>init:<br>     [echo] -------------------------------------------------<br>     [echo]            Building Cloudfiles                   <br>     [echo] -------------------------------------------------<br>
<br>compile:<br>     [echo] Compiling the source<br>      [jar] Building jar: /home/shashi/Desktop/rackspace-java-cloudfiles-1fb920d/dist/java-cloudfiles.jar<br><br>compile-test:<br>     [echo] Compiling the test source<br>
     [copy] Copying 1 file to /home/shashi/Desktop/rackspace-java-cloudfiles-1fb920d/classes<br>      [jar] Building jar: /home/shashi/Desktop/rackspace-java-cloudfiles-1fb920d/dist/java-cloudfiles-test.jar<br><br>test:<br>
    [junit] Running com.rackspacecloud.client.cloudfiles.FilesClientTestCase<br>    [junit] Testsuite: com.rackspacecloud.client.cloudfiles.FilesClientTestCase<br>    [junit] Tests run: 44, Failures: 42, Errors: 0, Time elapsed: 1.606 sec<br>
    [junit] Tests run: 44, Failures: 42, Errors: 0, Time elapsed: 1.606 sec<br>    [junit] <br>    [junit] ------------- Standard Error -----------------<br>    [junit] java.lang.IllegalStateException: Target host must not be null, or set in parameters.<br>
    [junit]     at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:651)<br>    [junit]     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:353)<br>
    [junit]     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)<br>    [junit]     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)<br>    [junit]     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)<br>
    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClient.login(FilesClient.java:278)<br>    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testUnicodeContainer(FilesClientTestCase.java:1401)<br>
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)<br>    [junit]     at junit.framework.TestCase.runTest(TestCase.java:164)<br>    [junit]     at junit.framework.TestCase.runBare(TestCase.java:130)<br>    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)<br>
    [junit]     at junit.framework.TestResult.runProtected(TestResult.java:124)<br>    [junit]     at junit.framework.TestResult.run(TestResult.java:109)<br>    [junit]     at junit.framework.TestCase.run(TestCase.java:120)<br>
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:230)<br>    [junit]     at junit.framework.TestSuite.run(TestSuite.java:225)<br>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)<br>
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1245)<br>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:814)<br>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1657)<br>
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:765)<br>    [junit]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)<br>    [junit]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)<br>
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)<br>    [junit]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)<br>
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:348)<br>    [junit]     at org.apache.tools.ant.Target.execute(Target.java:357)<br>    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:385)<br>
    [junit]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)<br>    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1298)<br>    [junit]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)<br>
    [junit]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181)<br>    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:698)<br>    [junit]     at org.apache.tools.ant.Main.startAnt(Main.java:199)<br>
    [junit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)<br>    [junit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)<br>    [junit] java.lang.IllegalStateException: Target host must not be null, or set in parameters.<br>
    [junit]     at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:651)<br>    [junit]     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:353)<br>
    [junit]     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)<br>    [junit]     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)<br>    [junit]     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)<br>
    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClient.login(FilesClient.java:278)<br>    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testUnicode(FilesClientTestCase.java:1432)<br>
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)<br>    [junit]     at junit.framework.TestCase.runTest(TestCase.java:164)<br>    [junit]     at junit.framework.TestCase.runBare(TestCase.java:130)<br>    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)<br>
    [junit]     at junit.framework.TestResult.runProtected(TestResult.java:124)<br>    [junit]     at junit.framework.TestResult.run(TestResult.java:109)<br>    [junit]     at junit.framework.TestCase.run(TestCase.java:120)<br>
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:230)<br>    [junit]     at junit.framework.TestSuite.run(TestSuite.java:225)<br>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)<br>
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1245)<br>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:814)<br>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1657)<br>
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:765)<br>    [junit]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)<br>    [junit]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)<br>
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)<br>    [junit]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)<br>
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:348)<br>    [junit]     at org.apache.tools.ant.Target.execute(Target.java:357)<br>    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:385)<br>
    [junit]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)<br>    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1298)<br>    [junit]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)<br>
    [junit]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181)<br>    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:698)<br>    [junit]     at org.apache.tools.ant.Main.startAnt(Main.java:199)<br>
    [junit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)<br>    [junit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)<br>    [junit] ------------- ---------------- ---------------<br>
    [junit] Testcase: testLogin(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):      FAILED<br>    [junit] null<br>    [junit] junit.framework.AssertionFailedError<br>    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testLogin(FilesClientTestCase.java:68)<br>
    [junit] <br>    [junit] <br>    [junit] Testcase: testAccountInfo(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):        FAILED<br>    [junit] null<br>    [junit] junit.framework.AssertionFailedError<br>    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testAccountInfo(FilesClientTestCase.java:92)<br>
    [junit] <br>    [junit] <br>    [junit] Testcase: testMultipleFilesNotThere(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):      FAILED<br>    [junit] null<br><br> ===============<br>=======<br>=====<br>   <br>
  <br>    [junit] <br>    [junit] Testcase: testFilesObjectPath(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):    FAILED<br>    [junit] null<br>    [junit] junit.framework.AssertionFailedError<br>    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testFilesObjectPath(FilesClientTestCase.java:1783)<br>
    [junit] <br>    [junit] <br>    [junit] Testcase: testURLs(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):       FAILED<br>    [junit] null<br>    [junit] junit.framework.AssertionFailedError<br>    [junit]     at com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testURLs(FilesClientTestCase.java:1826)<br>
    [junit] <br>    [junit] <br>    [junit] Test com.rackspacecloud.client.cloudfiles.FilesClientTestCase FAILED<br><br>BUILD SUCCESSFUL<br>Total time: 5 seconds<br>[shashi@shashi rackspace-java-cloudfiles-1fb920d]$ <br><br>
<br>I was not clear about the properties to be set for running the "unit tests" of rackspace cloud files - java apis package , kindly help me for usage of java apis w.r.t swift <br><br><br>Thanks & Regards,<br>
shashi <br>