From 3b76adf1432b7b7f26383672d850ff0bff2ced5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <pmaslanka@smok.co>
Date: Tue, 15 Oct 2024 08:19:28 +0000
Subject: [PATCH] fixes #1

---
 .gitlab-ci.yml       | 16 ++++++++++++++++
 CHANGELOG.md         |  5 +++++
 README.md            |  1 +
 coolamqp/__init__.py |  2 +-
 4 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c8dfdf5..a6b9921 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,6 +19,13 @@ stages:
     AMQP_HOST: "rabbitmq"
 
 
+.before_test_rmq4:
+  extends: .before_test
+  services:
+    - name: rabbitmq:4.0-management
+      alias: rabbitmq
+
+
 stresstest_select:
   extends: .before_test
   script:
@@ -74,9 +81,18 @@ unittest_epoll:
     - mv .coverage .coverage.unitepoll
 
 
+unittest_epoll_rmq4:
+  extends: .before_test_rmq4
+  script:
+    - coverage run --append -m nose2 -F -vv
+  after_script:
+    - mv .coverage .coverage.unitepoll_rmq4
+
+
 calc_coverage:
   stage: build
   dependencies:
+    - unittest_epoll_rmq4
     - unittest_epoll
     - unittest_select
     - stresstest_epoll
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c7ddd2e..d09e838 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
 Previous release notes are hosted on [GitHub](https://github.com/smok-serwis/coolamqp/releases).
 Since v1.3.2 they'll be put here and in release description.
 
+# v1.4.4
+========
+
+* added unit tests for RabbitMQ 4.0
+
 # v1.4.3
 ========
 
diff --git a/README.md b/README.md
index 47007d9..1fe7ba2 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ Why CoolAMQP?
 -------------
 
 * tested against all versions of RabbitMQ 3.x (with testing with RabbitMQ 4.x pending)
+  * automatic tests check against RabbitMQ 3.10 and RabbitMQ 4.0
 * AMQP 0.9.1 client that's native Python
 * heavily optimized for speed
 * geared towards interfacing with [RabbitMQ](https://www.rabbitmq.com/)
diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py
index 4e7c72a..955cb63 100644
--- a/coolamqp/__init__.py
+++ b/coolamqp/__init__.py
@@ -1 +1 @@
-__version__ = '1.4.3'
+__version__ = '1.4.4a1'
-- 
GitLab