Skip to content

Commit

Permalink
Fix test retries for shade and backwards compat tests (apache#10207)
Browse files Browse the repository at this point in the history
- some relevant code was missing from PR apache#10191
  • Loading branch information
lhotari authored Apr 16, 2021
1 parent 3021bad commit 5752363
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class SmokeTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public final void setup(){
incrementSetupNumber();
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
}
Expand Down Expand Up @@ -77,6 +78,7 @@ public void checkMessages() throws PulsarClientException {
@Override
@AfterClass(alwaysRun = true)
public final void cleanup(){
markCurrentSetupNumberCleaned();
pulsarContainer.stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class SmokeTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public final void setup(){
incrementSetupNumber();
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
}
Expand Down Expand Up @@ -77,6 +78,7 @@ public void checkMessages() throws PulsarClientException {
@Override
@AfterClass(alwaysRun = true)
public final void cleanup(){
markCurrentSetupNumberCleaned();
pulsarContainer.stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class SmokeTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public final void setup(){
incrementSetupNumber();
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
}
Expand Down Expand Up @@ -77,6 +78,7 @@ public void checkMessages() throws PulsarClientException {
@Override
@AfterClass(alwaysRun = true)
public final void cleanup(){
markCurrentSetupNumberCleaned();
pulsarContainer.stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class SimpleProducerConsumerTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public void setup() throws Exception {
incrementSetupNumber();
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());

pulsarContainer = new PulsarContainer();
Expand All @@ -89,6 +90,7 @@ public void setup() throws Exception {
@Override
@AfterClass(alwaysRun = true)
public void cleanup() throws Exception {
markCurrentSetupNumberCleaned();
if (pulsarClient != null) {
pulsarClient.close();
pulsarClient = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class SmokeTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public final void setup() {
incrementSetupNumber();
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
}
Expand Down Expand Up @@ -90,6 +91,7 @@ public void checkAdmin() throws PulsarClientException, PulsarAdminException {
@Override
@AfterClass(alwaysRun = true)
public final void cleanup(){
markCurrentSetupNumberCleaned();
pulsarContainer.stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class SimpleProducerConsumerTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public void setup() throws Exception {
incrementSetupNumber();
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
Expand All @@ -84,6 +85,7 @@ public void setup() throws Exception {
@Override
@AfterClass(alwaysRun = true)
public void cleanup() throws Exception {
markCurrentSetupNumberCleaned();
if (pulsarClient != null) {
pulsarClient.close();
pulsarClient = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class SmokeTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public final void setup(){
incrementSetupNumber();
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
}
Expand Down Expand Up @@ -90,6 +91,7 @@ public void checkAdmin() throws PulsarClientException, PulsarAdminException {
@Override
@AfterClass(alwaysRun = true)
public final void cleanup(){
markCurrentSetupNumberCleaned();
pulsarContainer.stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class SimpleProducerConsumerTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public void setup() throws Exception {
incrementSetupNumber();
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
Expand All @@ -88,6 +89,7 @@ public void setup() throws Exception {
@Override
@AfterClass(alwaysRun = true)
public void cleanup() throws Exception {
markCurrentSetupNumberCleaned();
if (pulsarClient != null) {
pulsarClient.close();
pulsarClient = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class SmokeTest extends TestRetrySupport {
@Override
@BeforeClass(alwaysRun = true)
public final void setup(){
incrementSetupNumber();
pulsarContainer = new PulsarContainer();
pulsarContainer.start();
}
Expand Down Expand Up @@ -77,6 +78,7 @@ public void checkClient() throws PulsarClientException {
@Override
@AfterClass(alwaysRun = true)
public final void cleanup(){
markCurrentSetupNumberCleaned();
pulsarContainer.stop();
}

Expand Down

0 comments on commit 5752363

Please sign in to comment.