Skip to content

Commit

Permalink
Reapply "Upgrade to jclouds 2.6.0-SNAPSHOT"
Browse files Browse the repository at this point in the history
This reverts commit e1e1a9e.
References #473.
  • Loading branch information
gaul committed Feb 25, 2024
1 parent bf879d6 commit 90d6abc
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 28 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
</dependency>
</dependencies>
<configuration>
<parallel>all</parallel>
<parallel>classes</parallel>
<threadCount>1</threadCount>
<argLine>-Xmx512m</argLine>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
Expand Down Expand Up @@ -361,7 +361,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<jclouds.version>2.5.0</jclouds.version>
<jclouds.version>2.6.0-SNAPSHOT</jclouds.version>
<jetty.version>11.0.20</jetty.version>
<slf4j.version>2.0.11</slf4j.version>
<shade.prefix>${project.groupId}.shaded</shade.prefix>
Expand Down Expand Up @@ -466,7 +466,7 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
<!-- we need to use the same version as in jclouds because we pull in their tests -->
<version>1.7.1</version>
<version>3.24.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
Expand Down Expand Up @@ -509,7 +509,7 @@
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8.21</version>
<version>7.5</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import org.jclouds.s3.domain.S3Object;
import org.jclouds.s3.reference.S3Constants;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

@SuppressWarnings("UnstableApiUsage")
Expand All @@ -64,10 +64,11 @@ public final class EncryptedBlobStoreLiveTest extends S3ClientLiveTest {
private S3Proxy s3Proxy;
private BlobStoreContext context;

@AfterClass
public void tearDown() throws Exception {
s3Proxy.stop();
@AfterSuite
@Override
public void destroyResources() throws Exception {
context.close();
s3Proxy.stop();
}

@Override
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/org/gaul/s3proxy/JcloudsBucketsLiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.jclouds.s3.reference.S3Constants;
import org.jclouds.s3.services.BucketsLiveTest;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

@Test(testName = "JcloudsBucketsLiveTest")
Expand All @@ -46,10 +46,11 @@ public final class JcloudsBucketsLiveTest extends BucketsLiveTest {
private BlobStoreContext context;
private String blobStoreType;

@AfterClass
public void tearDown() throws Exception {
s3Proxy.stop();
@AfterSuite
@Override
public void destroyResources() throws Exception {
context.close();
s3Proxy.stop();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.jclouds.s3.blobstore.integration.S3BlobIntegrationLiveTest;
import org.jclouds.s3.reference.S3Constants;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

@Test(testName = "JcloudsS3BlobIntegrationLiveTest")
Expand All @@ -42,10 +42,11 @@ public final class JcloudsS3BlobIntegrationLiveTest
private BlobStoreContext context;
private String blobStoreType;

@AfterClass
public void tearDown() throws Exception {
s3Proxy.stop();
@AfterSuite
@Override
public void destroyResources() throws Exception {
context.close();
s3Proxy.stop();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.jclouds.blobstore.BlobStoreContext;
import org.jclouds.s3.blobstore.integration.S3BlobSignerLiveTest;
import org.jclouds.s3.reference.S3Constants;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

@Test(testName = "JcloudsS3BlobSignerLiveTest")
Expand All @@ -38,10 +38,11 @@ public final class JcloudsS3BlobSignerLiveTest extends S3BlobSignerLiveTest {
private S3Proxy s3Proxy;
private BlobStoreContext context;

@AfterClass
public void tearDown() throws Exception {
s3Proxy.stop();
@AfterSuite
@Override
public void destroyResources() throws Exception {
context.close();
s3Proxy.stop();
}

@Override
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/org/gaul/s3proxy/JcloudsS3ClientLiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.jclouds.s3.domain.S3Object;
import org.jclouds.s3.reference.S3Constants;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

@Test(testName = "JcloudsS3ClientLiveTest")
Expand All @@ -50,10 +50,11 @@ public final class JcloudsS3ClientLiveTest extends S3ClientLiveTest {
private BlobStoreContext context;
private String blobStoreType;

@AfterClass
public void tearDown() throws Exception {
s3Proxy.stop();
@AfterSuite
@Override
public void destroyResources() throws Exception {
context.close();
s3Proxy.stop();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.jclouds.s3.blobstore.integration.S3ContainerIntegrationLiveTest;
import org.jclouds.s3.reference.S3Constants;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

@Test(testName = "JcloudsS3ContainerIntegrationLiveTest")
Expand All @@ -41,10 +41,11 @@ public final class JcloudsS3ContainerIntegrationLiveTest
private BlobStoreContext context;
private String blobStoreType;

@AfterClass
public void tearDown() throws Exception {
s3Proxy.stop();
@AfterSuite
@Override
public void destroyResources() throws Exception {
context.close();
s3Proxy.stop();
}

@Override
Expand Down

0 comments on commit 90d6abc

Please sign in to comment.