[Openstack-operators] Swift - usage of JAVA apis bindings from rackspace ??
shashidhar v
shashidhar.velagandula at gmail.com
Wed Apr 6 06:53:34 UTC 2011
Hi,
I am trying to build the "rackspace-java-cloudfiles" package (JAVA apis)
and run the unit tests ... but getting the errors
[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.168.62.63:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a
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: 1.606 sec
[junit] Tests run: 44, Failures: 42, Errors: 0, Time elapsed: 1.606 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
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.testUnicode(FilesClientTestCase.java:1432)
[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] ------------- ---------------- ---------------
[junit] Testcase:
testLogin(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):
FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[junit] at
com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testLogin(FilesClientTestCase.java:68)
[junit]
[junit]
[junit] Testcase:
testAccountInfo(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):
FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[junit] at
com.rackspacecloud.client.cloudfiles.FilesClientTestCase.testAccountInfo(FilesClientTestCase.java:92)
[junit]
[junit]
[junit] Testcase:
testMultipleFilesNotThere(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):
FAILED
[junit] null
===============
=======
=====
[junit]
[junit] Testcase:
testFilesObjectPath(com.rackspacecloud.client.cloudfiles.FilesClientTestCase):
FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[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: 5 seconds
[shashi at shashi rackspace-java-cloudfiles-1fb920d]$
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
Thanks & Regards,
shashi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110406/c7ce5a69/attachment-0002.html>
More information about the Openstack-operators
mailing list