Skip to content

Commit b6cda74

Browse files
committed
Test link refusal on 4.2+
1 parent c280eab commit b6cda74

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/test-pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
cache: 'maven'
2424
- name: Start broker
2525
run: ci/start-broker.sh
26-
env:
27-
RABBITMQ_IMAGE: pivotalrabbitmq/rabbitmq:pr-14389-otp28
2826
- name: Start toxiproxy
2927
run: ci/start-toxiproxy.sh
3028
- name: Display Java version

src/test/java/com/rabbitmq/client/amqp/impl/ClientTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import static com.rabbitmq.client.amqp.Management.ExchangeType.FANOUT;
2121
import static com.rabbitmq.client.amqp.impl.TestConditions.BrokerVersion.RABBITMQ_4_1_0;
22+
import static com.rabbitmq.client.amqp.impl.TestConditions.BrokerVersion.RABBITMQ_4_2_0;
2223
import static com.rabbitmq.client.amqp.impl.TestUtils.*;
2324
import static java.nio.charset.StandardCharsets.*;
2425
import static java.util.concurrent.TimeUnit.SECONDS;
@@ -426,6 +427,7 @@ void dynamicReceiver() throws Exception {
426427
}
427428

428429
@Test
430+
@BrokerVersionAtLeast(RABBITMQ_4_2_0)
429431
void refuseLinkSenderToMissingExchangeShouldReturnNotFound() throws Exception {
430432
try (Client client = client()) {
431433
org.apache.qpid.protonj2.client.Connection c = connection(client);
@@ -440,6 +442,7 @@ void refuseLinkSenderToMissingExchangeShouldReturnNotFound() throws Exception {
440442
}
441443

442444
@Test
445+
@BrokerVersionAtLeast(RABBITMQ_4_2_0)
443446
void refuseLinkSenderToInvalidAddressShouldReturnInvalidField() throws Exception {
444447
try (Client client = client()) {
445448
org.apache.qpid.protonj2.client.Connection c = connection(client);
@@ -453,6 +456,7 @@ void refuseLinkSenderToInvalidAddressShouldReturnInvalidField() throws Exception
453456
}
454457

455458
@Test
459+
@BrokerVersionAtLeast(RABBITMQ_4_2_0)
456460
void refuseLinkReceiverToMissingQueueShouldReturnNotFound() throws Exception {
457461
try (Client client = client()) {
458462
org.apache.qpid.protonj2.client.Connection c = connection(client);
@@ -470,6 +474,7 @@ void refuseLinkReceiverToMissingQueueShouldReturnNotFound() throws Exception {
470474
}
471475

472476
@Test
477+
@BrokerVersionAtLeast(RABBITMQ_4_2_0)
473478
void refuseLinkReceiverToInvalidAddressShouldReturnInvalidField() throws Exception {
474479
try (Client client = client()) {
475480
org.apache.qpid.protonj2.client.Connection c = connection(client);

0 commit comments

Comments
 (0)