Skip to content

Commit 4382d7a

Browse files
committed
Merge branch '3.1.x' into refactor_fabric8_client_discovery
2 parents 09ccfc0 + ceba855 commit 4382d7a

File tree

4 files changed

+2
-35
lines changed
  • spring-cloud-kubernetes-fabric8-leader/src/test/java/org/springframework/cloud/kubernetes/fabric8/leader
  • spring-cloud-kubernetes-integration-tests
    • spring-cloud-kubernetes-fabric8-client-catalog-watcher
    • spring-cloud-kubernetes-fabric8-client-discovery
    • spring-cloud-kubernetes-fabric8-client-istio

4 files changed

+2
-35
lines changed

spring-cloud-kubernetes-fabric8-leader/src/test/java/org/springframework/cloud/kubernetes/fabric8/leader/Fabric8LeaderInitiatorTest.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,9 @@ void shouldStart() {
7777
assertThat(leaderInitiator.isRunning()).isTrue();
7878
verify(mockFabric8LeaderRecordWatcher).start();
7979
verify(mockFabric8PodReadinessWatcher).start();
80-
boolean[] updateCalled = new boolean[1];
81-
Mockito.doAnswer(x -> {
82-
updateCalled[0] = true;
83-
return null;
84-
}).when(mockFabric8LeadershipController).update();
8580

86-
Awaitility.await().atMost(Duration.ofSeconds(3)).until(() -> updateCalled[0]);
81+
Awaitility.await().untilAsserted(() -> verify(mockFabric8LeadershipController, atLeastOnce()).update());
8782

88-
verify(mockFabric8LeadershipController, atLeastOnce()).update();
8983
}
9084

9185
@Test

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,4 @@
3636
</dependency>
3737

3838
</dependencies>
39-
<build>
40-
<resources>
41-
<resource>
42-
<directory>../src/main/resources</directory>
43-
<filtering>true</filtering>
44-
</resource>
45-
<resource>
46-
<directory>src/main/resources</directory>
47-
<filtering>true</filtering>
48-
</resource>
49-
</resources>
50-
</build>
5139
</project>

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-discovery/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,5 @@
4444
</dependency>
4545

4646
</dependencies>
47-
<build>
48-
<resources>
49-
<resource>
50-
<directory>../src/main/resources</directory>
51-
<filtering>true</filtering>
52-
</resource>
53-
<resource>
54-
<directory>src/main/resources</directory>
55-
<filtering>true</filtering>
56-
</resource>
57-
</resources>
58-
</build>
5947

6048
</project>

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-istio/pom.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,13 @@
3131
</dependency>
3232

3333
</dependencies>
34+
3435
<build>
3536
<resources>
3637
<resource>
3738
<directory>../src/main/resources</directory>
3839
<filtering>true</filtering>
3940
</resource>
40-
<resource>
41-
<directory>src/main/resources</directory>
42-
<filtering>true</filtering>
43-
</resource>
4441
</resources>
4542
</build>
4643

0 commit comments

Comments
 (0)