[Openstack-operators] getting error while running the JAVA apis testcases to SAIO
shashidhar v
shashidhar.velagandula at gmail.com
Tue Mar 15 06:13:20 UTC 2011
HI,
I am trying to run the test case of JAVA APIs (package downloaded from
rackspace) to interact with the SAIO service running on a local test node .
Following is the configuration file for cloudfiles.properties file
*[shashi at shashi rackspace-java-cloudfiles-1fb920d]$ cat
src/test/resources/cloudfiles.properties *
# user properties
username=tester
password=testing
account=test
# Auth Info, including two headers that can change for different auth
services
#auth_url=http://test1:8080/auth/v1
auth_token_name=X-Auth-Token
auth_url=http://192.x.x.x:8080/v1/AUTH_26e40829-4401-461c-9d5c-8c4901a830c6
#auth_user_header=tester
#auth_pass_header=testing
#auth_user_header=X-Storage-User
#auth_pass_header=X-Storage-Pass
# cloudfs properties
version=v1
connection_timeout=15000
*[shashi at shashi rackspace-java-cloudfiles-1fb920d]$ ant test*
Buildfile: build.xml
init:
[echo] -------------------------------------------------
[echo] Building Cloudfiles
[echo] -------------------------------------------------
compile:
[echo] Compiling the source
[jar] Building jar:
/home/shashi/Desktop/rackspace-java-cloudfiles-1fb920d/dist/java-cloudfiles.jar
compile-test:
[echo] Compiling the test source
[copy] Copying 1 file to
/home/shashi/Desktop/rackspace-java-cloudfiles-1fb920d/classes
[jar] Building jar:
/home/shashi/Desktop/rackspace-java-cloudfiles-1fb920d/dist/java-cloudfiles-test.jar
test:
[junit] Running com.rackspacecloud.client.cloudfiles.FilesClientTestCase
[junit] Testsuite:
com.rackspacecloud.client.cloudfiles.FilesClientTestCase
[junit] Tests run: 44, Failures: 42, Errors: 0, Time elapsed: 0.708 sec
[junit] Tests run: 44, Failures: 42, Errors: 0, Time elapsed: 0.708 sec
[junit]
[junit] ------------- Standard Error -----------------
* [junit] java.lang.IllegalStateException: Target host must not be null,
or set in parameters.*
[junit] at
org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:651)
[junit] at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:353)
[junit] at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
[junit] at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
[junit] at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
[junit] at
com.rackspacecloud.client.cloudfiles.FilesClient.login(FilesClient.java:278)
[junit] at
com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testUnicodeContainer(FilesClientTestCase.java:1401)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at
junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1245)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:814)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1657)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:765)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[junit] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[junit] at org.apache.tools.ant.Task.perform(Task.java:348)
[junit] at org.apache.tools.ant.Target.execute(Target.java:357)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[junit] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[junit] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
[junit] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[junit] at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[junit] at org.apache.tools.ant.Main.runBuild(Main.java:698)
[junit] at org.apache.tools.ant.Main.startAnt(Main.java:199)
[junit] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[junit] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[junit] java.lang.IllegalStateException: Target host must not be null,
or set in parameters.
[junit] at
org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:651)
[junit] at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:353)
---------------
---------
--------
[junit] at
com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testFilesObjectPath(FilesClientTestCase.java:1783)
[junit]
[junit]
[junit] Testcase:
testURLs(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):
FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[junit] at
com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testURLs(FilesClientTestCase.java:1826)
[junit]
[junit]
[junit] Test com.rackspacecloud.client.cloudfiles.FilesClientTestCase
FAILED
BUILD SUCCESSFUL
Total time: 1 second
[shashi at shashi rackspace-java-cloudfiles-1fb920d]$
Can someone help me to configure the properties file properly to avoid the
above error
Thanks & Regards,
shashidhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110315/8c2c649f/attachment-0002.html>
More information about the Openstack-operators
mailing list