Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-05 Thread Andrew Phillips
Thanks, @jdaggett and @nacx! Added one minor comment, which can perhaps be addressed in the post-1.7.2 PR that was discussed to change the 404 behaviour? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39649138

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-05 Thread Andrew Phillips
> @@ -68,7 +68,16 @@ public void testListWithOptions() throws Exception { > assertTrue(container.getBytesUsed() == 0); >} > } > - > + > + public void testHead() throws Exception { > + for (String regionId : regions) { > + Container container = api.containerAp

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Everett Toews
Merged to master and 1.7.x --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39516488

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Everett Toews
Closed #89. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Jeremy Daggett
@nacx Great! If we are good to go, then I can add those changes to a new PR post-1.7.2 . I just made a note to remind me about updating the test. :) --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39515652

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Ignasi Barrera
Thanks for the cleanup. I'm OK to change that post 1.7.2 as that behavior was already there and was not the purpose of this PR. It would be better addressed in a new one. Regarding the test that throws the exception and reading it again (my apologies for not having suggested this before), I thi

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread BuildHive
[jclouds » jclouds-labs-openstack #1022](https://buildhive.cloudbees.com/job/jclouds/job/jclouds-labs-openstack/1022/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub: https://github.com/jclo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread BuildHive
[jclouds » jclouds-labs-openstack #1021](https://buildhive.cloudbees.com/job/jclouds/job/jclouds-labs-openstack/1021/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub: https://github.com/jclo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Jeremy Daggett
@nacx Do you agree with the state of this PR. Are we good to merge? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39508020

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Jeremy Daggett
> + assertEquals(container.getName(), "myContainer"); > + assertEquals(container.getObjectCount(), 42l); > + assertEquals(container.getBytesUsed(), 323479l); > + for (Entry entry : > container.getMetadata().entrySet()) { > + > assertEquals(container.getM

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Jeremy Daggett
> @@ -80,6 +80,23 @@ > @Fallback(NullOnNotFoundOr404.class) > @Path("/") > @Nullable > + ObjectList list(); > + > + /** > +* Lists up to 10,000 objects. > +* > +* @param options > +* the {@link ListContainerOptions} for controlling the > returned list.

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread CloudBees pull request builder plugin
[jclouds-labs-openstack-pull-requests #215](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/215/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39507714

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread CloudBees pull request builder plugin
[jclouds-labs-openstack-pull-requests #214](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/214/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39506929

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Ignasi Barrera
> + assertEquals(container.getName(), "myContainer"); > + assertEquals(container.getObjectCount(), 42l); > + assertEquals(container.getBytesUsed(), 323479l); > + for (Entry entry : > container.getMetadata().entrySet()) { > + > assertEquals(container.getM

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Ignasi Barrera
> @@ -80,6 +80,23 @@ > @Fallback(NullOnNotFoundOr404.class) > @Path("/") > @Nullable > + ObjectList list(); > + > + /** > +* Lists up to 10,000 objects. > +* > +* @param options > +* the {@link ListContainerOptions} for controlling the > returned list.

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread CloudBees pull request builder plugin
[jclouds-labs-openstack-pull-requests #209](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/209/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39449580

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread BuildHive
[jclouds » jclouds-labs-openstack #1014](https://buildhive.cloudbees.com/job/jclouds/job/jclouds-labs-openstack/1014/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub: https://github.com/jclo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Jeremy Daggett
> @@ -80,6 +80,23 @@ > @Fallback(NullOnNotFoundOr404.class) > @Path("/") > @Nullable > + ObjectList list(); > + > + /** > +* Lists up to 10,000 objects. > +* > +* @param options > +* the {@link ListContainerOptions} for controlling the > returned list.

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Jeremy Daggett
> + > + Container container = > api.containerApiInRegion("DFW").head("myContainer"); > + assertEquals(container.getName(), "myContainer"); > + assertEquals(container.getObjectCount(), 42l); > + assertEquals(container.getBytesUsed(), 323479l); > + fo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Ignasi Barrera
> +.addHeader(CONTAINER_READ, CONTAINER_ACL_ANYBODY_READ) > +.setBody(stringFromResource("/object_list.json"; > + > + try { > + SwiftApi api = api(server.getUrl("/").toString(), > "openstack-swift"); > + ObjectList objects = api.objectApiInRegionFor

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Ignasi Barrera
> @@ -80,6 +80,23 @@ > @Fallback(NullOnNotFoundOr404.class) > @Path("/") > @Nullable > + ObjectList list(); > + > + /** > +* Lists up to 10,000 objects. > +* > +* @param options > +* the {@link ListContainerOptions} for controlling the > returned list.

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-03 Thread Ignasi Barrera
> + > + Container container = > api.containerApiInRegion("DFW").head("myContainer"); > + assertEquals(container.getName(), "myContainer"); > + assertEquals(container.getObjectCount(), 42l); > + assertEquals(container.getBytesUsed(), 323479l); > + fo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread BuildHive
[jclouds » jclouds-labs-openstack #1012](https://buildhive.cloudbees.com/job/jclouds/job/jclouds-labs-openstack/1012/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub: https://github.com/jclo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread CloudBees pull request builder plugin
[jclouds-labs-openstack-pull-requests #207](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/207/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39396478

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread Jeremy Daggett
> @@ -123,6 +123,18 @@ public void testCopyObject() throws Exception { > public void testList() throws Exception { >for (String regionId : regions) { > ObjectApi objectApi = api.objectApiInRegionForContainer(regionId, > containerName); > + ObjectList response = object

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread BuildHive
[jclouds » jclouds-labs-openstack #1007](https://buildhive.cloudbees.com/job/jclouds/job/jclouds-labs-openstack/1007/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub: https://github.com/jclo

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread CloudBees pull request builder plugin
[jclouds-labs-openstack-pull-requests #203](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/203/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39383404

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread Andrew Phillips
> jclouds-labs-openstack-pull-requests #199 SUCCESS [Happy Checkstyle](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/199/violations/)! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-3938289

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread Andrew Phillips
> @@ -123,6 +123,18 @@ public void testCopyObject() throws Exception { > public void testList() throws Exception { >for (String regionId : regions) { > ObjectApi objectApi = api.objectApiInRegionForContainer(regionId, > containerName); > + ObjectList response = object

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread Andrew Phillips
> @@ -80,6 +80,23 @@ > @Fallback(NullOnNotFoundOr404.class) > @Path("/") > @Nullable > + ObjectList list(); > + > + /** > +* Lists up to 10,000 objects. If we're going to list this limitation here, also suggest what to do if you need to retrieve more items? Is there a differen

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread Everett Toews
Needs a live test for the head() method. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39378402

Re: [jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread CloudBees pull request builder plugin
[jclouds-labs-openstack-pull-requests #199](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/199/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/89#issuecomment-39364532

[jclouds-labs-openstack] Added missing methods to Container and Object APIs (#89)

2014-04-02 Thread Jeremy Daggett
This PR removes the dependency on the _varargs_ for the **ObjectApi.list()** method. It also adds the **ContainerApi.head()** method to get just the Container metadata, rather than retrieving the entire object. This method is utilized to determine if a container exists or not. This will need