Skip to content

Commit

Permalink
Bump jetcd.version from 0.5.11 to 0.6.1 (#795)
Browse files Browse the repository at this point in the history
* Bump jetcd.version from 0.5.11 to 0.6.1

Bumps `jetcd.version` from 0.5.11 to 0.6.1.

Updates `jetcd-core` from 0.5.11 to 0.6.1
- [Release notes](https://github.com/etcd-io/jetcd/releases)
- [Changelog](https://github.com/etcd-io/jetcd/blob/master/CHANGELOG.md)
- [Commits](etcd-io/jetcd@jetcd-0.5.11...jetcd-0.6.1)

Updates `jetcd-test` from 0.5.11 to 0.6.1
- [Release notes](https://github.com/etcd-io/jetcd/releases)
- [Changelog](https://github.com/etcd-io/jetcd/blob/master/CHANGELOG.md)
- [Commits](etcd-io/jetcd@jetcd-0.5.11...jetcd-0.6.1)

---
updated-dependencies:
- dependency-name: io.etcd:jetcd-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.etcd:jetcd-test
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Etcd test compiles

* Fix tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lukas Krecan <[email protected]>
  • Loading branch information
dependabot[bot] and lukas-krecan authored Jan 29, 2022
1 parent d482f00 commit 214b8d4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
include:
- java: '8'
maven-opts: ''
maven-params: -pl '!spring/test/shedlock-springboot-future-test'
maven-params: -pl '!spring/test/shedlock-springboot-future-test,!providers/etcd/shedlock-provider-etcd-jetcd'
- java: '11'
maven-opts: ''
maven-params: -pl '!spring/test/shedlock-springboot-future-test'
Expand Down
2 changes: 1 addition & 1 deletion providers/etcd/shedlock-provider-etcd-jetcd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<artifactId>shedlock-provider-etcd-jetcd</artifactId>

<properties>
<jetcd.version>0.5.11</jetcd.version>
<jetcd.version>0.6.1</jetcd.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
import io.etcd.jetcd.ByteSequence;
import io.etcd.jetcd.Client;
import io.etcd.jetcd.KV;
import io.etcd.jetcd.test.EtcdClusterExtension;
import io.etcd.jetcd.launcher.Etcd;
import io.etcd.jetcd.launcher.EtcdCluster;
import net.javacrumbs.shedlock.core.LockProvider;
import net.javacrumbs.shedlock.test.support.AbstractLockProviderIntegrationTest;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

import static java.time.Duration.ofSeconds;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
Expand All @@ -33,12 +35,21 @@

public class EtcdLockProviderIntegrationTest extends AbstractLockProviderIntegrationTest {

@RegisterExtension
static final EtcdClusterExtension etcdCluster = new EtcdClusterExtension("it-cluster", 1);
private static final EtcdCluster cluster = new Etcd.Builder().withNodes(1).build();

private EtcdLockProvider lockProvider;
private KV kvClient;

@BeforeAll
static void startCluster() {
cluster.start();
}

@AfterAll
static void stopCluster() {
cluster.stop();
}

@BeforeEach
public void createLockProvider() {
Client client = buildClient();
Expand Down Expand Up @@ -108,7 +119,7 @@ protected LockProvider getLockProvider() {
}

private Client buildClient() {
return Client.builder().endpoints(etcdCluster.getClientEndpoints()).build();
return Client.builder().endpoints(cluster.clientEndpoints()).build();
}

}

0 comments on commit 214b8d4

Please sign in to comment.