The config options can be part of the command line itself. So, in my example, you would run the integration tests as:
$ mvn integration-test -pl :swift -Plive -Dtest.swift-keystone.endpoint=http://some-endpoint -Djclouds.provider=swift-keystone -Djclouds.keystone.credential-type=passwordCredentials -Dtest.swift-keystone.identity=demo:demo -Dtest.swift-keystone.credential=devstack Another option is to use the EXTRA_JAVA_OPTS env variable and then simply run the integration tests $ export EXTRA_JAVA_OPTS="-Djclouds.provider=swift-keystone -Djclouds.identity=demo:demo -Djclouds.credential=devstack -Djclouds.keystone.credential-type=passwordCredentials" $ mvn integration-test -pl :swift -Plive -Shri On Fri, Apr 18, 2014 at 10:53 AM, SANDEEP BAZAR <[email protected]> wrote: > Hi Shrinand, > > Thanks for the information. I have a real Swift instance and would like to > test all its features and functionality using JClouds. For > integration-tests can you point me to exact file name/path where config > options need to be set? > > > On Fri, Apr 18, 2014 at 10:52 PM, Shrinand Javadekar < > [email protected]> wrote: > >> Hey Sandeep, >> >> The Swift implementation in jclouds can be found jclouds/apis/swift. >> There are several unit tests in there. You can run the tests as >> follows: >> >> $ cd jclouds/apis >> $ mvn -pl :swift test >> >> You can run some live tests against a real Swift instance as follows: >> $ mvn integration-test -pl :swift -Plive >> >> Note that for the integration-tests you'll have to set the following >> config options: >> -Dtest.swift-keystone.endpoint=http://some-endpoint >> -Djclouds.provider=swift-keystone >> -Djclouds.keystone.credential-type=passwordCredentials >> -Dtest.swift-keystone.identity=demo:demo >> -Dtest.swift-keystone.credential=devstack >> >> There is also a new implementation for openstack-swift in >> jclouds-labs-openstack. This implementation in jclouds-labs-openstack >> will replace the one jclouds/apis/swift in one of the forthcoming >> releases. >> >> Could you share some details about what you're trying to do? >> >> -Shri >> >> On Fri, Apr 18, 2014 at 10:06 AM, SANDEEP BAZAR <[email protected]> >> wrote: >> > Hi, >> > >> > Are there any Test Clients or Unit Test available to test end to end >> > functionality of OpenStack Swift using JClouds? >> > -- >> > >> > *Thanks and Regards* >> > >> > --------------------- >> > >> > *Sandeep Bazar* >> > >> > *Tel :* 91-20-4026366 >> > > > > -- > > *Thanks and Regards* > > --------------------- > > *Sandeep Bazar* > > *Tel :* 91-20-4026366 > > *Mob :* 91-9545253067 > > "The only thing constant in life is change." *Francois de la Rochefoucauld* > [image: Facebook] <https://www.facebook.com/sandeepbazar> [image: > Twitter]<https://twitter.com/sandeepbsp> > > <http://r1.wisestamp.com/r/landing?u=d15491110c4ca423&v=3.11.25&t=1352974492165&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>
