@@ -0,0 +1,3255 @@
+/*%0A * Copyright 2014-2016 Andrew Gaul %3Candrew@gaul.org%3E%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.gaul.s3proxy;%0A%0Aimport java.io.IOException;%0Aimport java.util.Properties;%0Aimport java.util.concurrent.ExecutionException;%0Aimport java.util.concurrent.TimeUnit;%0Aimport java.util.concurrent.TimeoutException;%0A%0Aimport com.google.common.base.Throwables;%0Aimport com.google.common.util.concurrent.Uninterruptibles;%0A%0Aimport org.jclouds.Constants;%0Aimport org.jclouds.blobstore.BlobStoreContext;%0Aimport org.jclouds.s3.services.BucketsLiveTest;%0Aimport org.testng.SkipException;%0Aimport org.testng.annotations.AfterClass;%0Aimport org.testng.annotations.Test;%0A%0A@Test(testName = %22JcloudsBucketsLiveTest%22)%0Apublic final class JcloudsBucketsLiveTest extends BucketsLiveTest %7B%0A    protected static final int AWAIT_CONSISTENCY_TIMEOUT_SECONDS =%0A            Integer.parseInt(%0A                    System.getProperty(%0A                            %22test.blobstore.await-consistency-timeout-seconds%22,%0A                            %220%22));%0A    private S3Proxy s3Proxy;%0A    private BlobStoreContext context;%0A%0A    @AfterClass%0A    public void tearDown() throws Exception %7B%0A        s3Proxy.stop();%0A        context.close();%0A    %7D%0A%0A    @Override%0A    protected void awaitConsistency() %7B%0A        Uninterruptibles.sleepUninterruptibly(%0A                AWAIT_CONSISTENCY_TIMEOUT_SECONDS, TimeUnit.SECONDS);%0A    %7D%0A%0A    @Override%0A    protected Properties setupProperties() %7B%0A        TestUtils.S3ProxyLaunchInfo info;%0A        try %7B%0A            info = TestUtils.startS3Proxy();%0A            s3Proxy = info.getS3Proxy();%0A            context = info.getBlobStore().getContext();%0A        %7D catch (Exception e) %7B%0A            throw Throwables.propagate(e);%0A        %7D%0A        Properties props = super.setupProperties();%0A        props.setProperty(Constants.PROPERTY_IDENTITY, info.getS3Identity());%0A        props.setProperty(Constants.PROPERTY_CREDENTIAL,%0A                info.getS3Credential());%0A        props.setProperty(Constants.PROPERTY_ENDPOINT,%0A                info.getEndpoint().toString());%0A        props.setProperty(Constants.PROPERTY_STRIP_EXPECT_HEADER, %22true%22);%0A        endpoint = info.getEndpoint().toString();%0A        return props;%0A    %7D%0A%0A    @Override%0A    @Test%0A    public void testUpdateBucketACL() throws InterruptedException,%0A           ExecutionException, TimeoutException, IOException, Exception %7B%0A        throw new SkipException(%22XML ACLs not supported%22);%0A    %7D%0A%0A    @Override%0A    @Test%0A    public void testBucketPayer() throws Exception %7B%0A        throw new SkipException(%22bucket payer not supported%22);%0A    %7D%0A%0A    @Override%0A    @Test%0A    public void testBucketLogging() throws Exception %7B%0A        throw new SkipException(%22bucket logging not supported%22);%0A    %7D%0A%7D%0A

Add JcloudsBucketsLiveTest