Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/qamqpexchange: add support for rejected/nacked deliveries #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tests/qampqpexchange: skip test if rabbitmq does not support reject p…
…ublish

References: jira PAM-5269
manner82 committed May 25, 2018
commit a06fd679e0a0d7f038fbff10003d6f8f61ea2257
5 changes: 5 additions & 0 deletions tests/auto/qamqpexchange/tst_qamqpexchange.cpp
Original file line number Diff line number Diff line change
@@ -285,6 +285,11 @@ void tst_QAMQPExchange::testRejectedMessagePublish()

QVERIFY(exchange->waitForConfirms());

if (deliveryConfirmedSpy.count() == 2)
{
SKIP("The AMQP server does not support x-overflow: reject-publish. For rabbitmq, it requires version >=3.7 (Skipped test)");
}

QCOMPARE(deliveryConfirmedSpy.count(), 1);
QCOMPARE(deliveryConfirmedSpy.first().first().toLongLong(), firstDeliveryTag);

6 changes: 6 additions & 0 deletions tests/common/qamqptestcase.h
Original file line number Diff line number Diff line change
@@ -6,6 +6,12 @@

#include "qamqpqueue.h"

#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
#define SKIP(x) QSKIP(x)
#else
#define SKIP(x) QSKIP(x, SkipAll)
#endif

class TestCase : public QObject
{
public: