Upgrade WFs from main to v4
The `v3` has to be updated by Dependabot automatically **Auto-cherry-pick to `3.2.x` & `3.1.x`**
This commit is contained in:
@@ -6,6 +6,6 @@ on:
|
||||
|
||||
jobs:
|
||||
announce-milestone-planning:
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-announce-milestone-planning.yml@main
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-announce-milestone-planning.yml@v4
|
||||
secrets:
|
||||
SPRING_RELEASE_CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}
|
||||
|
||||
2
.github/workflows/ci-snapshot.yml
vendored
2
.github/workflows/ci-snapshot.yml
vendored
@@ -17,7 +17,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build-snapshot:
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@v4
|
||||
with:
|
||||
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
|
||||
secrets:
|
||||
|
||||
2
.github/workflows/merge-dependabot-pr.yml
vendored
2
.github/workflows/merge-dependabot-pr.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
merge-dependabot-pr:
|
||||
permissions: write-all
|
||||
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@main
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@v4
|
||||
with:
|
||||
mergeArguments: --auto --squash
|
||||
autoMergeSnapshots: true
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
contents: write
|
||||
issues: write
|
||||
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@main
|
||||
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@v4
|
||||
secrets:
|
||||
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.springframework.kafka.test.context;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.kafka.test.EmbeddedKafkaZKBroker;
|
||||
import org.springframework.kafka.test.core.BrokerAddress;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@DirtiesContext
|
||||
@EmbeddedKafka(topics = {"topic.1","topic.2"}, brokerProperties = {"listeners=PLAINTEXT://localhost:9092"}, kraft = false)
|
||||
public class Gh3585Tests {
|
||||
|
||||
@Autowired
|
||||
private EmbeddedKafkaZKBroker kafkaBroker;
|
||||
|
||||
@Test
|
||||
public void testEmbeddedKafkaZKBroker() {
|
||||
assertThat(this.kafkaBroker.getBrokerAddress(0)).isEqualTo(new BrokerAddress("127.0.0.1", 9092));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user