From 467d01a9c88a9741e7797b23583af58cfd3add6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Mon, 2 Sep 2024 09:02:32 +0200 Subject: [PATCH] fix stress tests --- .gitlab-ci.yml | 12 ++++++++++++ CHANGELOG.md | 2 +- README.md | 23 +++++++++++++++-------- coolamqp/__init__.py | 2 +- coolamqp/objects.py | 2 +- stress_tests/settings.py | 2 +- 6 files changed, 31 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cbc910..3e8791d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,18 @@ stages: + - test - build +stress_test: + stage: test + services: + - name: rabbitmq:3-management + alias: rabbitmq + before_script: + - python setup.py install + script: + - coverage run --append -m stress_tests + - coverage report + pages: image: zoo.smok.co/build/build:latest stage: build diff --git a/CHANGELOG.md b/CHANGELOG.md index 3437589..5423a09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,4 @@ have been made so far, between releases. # v1.3.2 -* _TBA_ \ No newline at end of file +* removed the requirement for a Queue that for it to be equal to other Queue if their types do match \ No newline at end of file diff --git a/README.md b/README.md index 47a44f2..0160f4f 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,22 @@ CoolAMQP ======== -[](https://codeclimate.com/github/smok-serwis/coolamqp/coverage) -[](https://codeclimate.com/github/smok-serwis/coolamqp) -[](https://codeclimate.com/github/smok-serwis/coolamqp) -[](https://badge.fury.io/py/CoolAMQP) -[]() -[]() -[]() -[](http://coolamqp.readthedocs.io/en/latest/?badge=develop) +[](http://smokserwis.docs.smok5.co/coolamqp) []() +**Warning!!** Since v1.3.1 development has been moved to this GitLab. +To install CoolAMQP please use + +```bash +pip install --extra-index-url https://git.dms-serwis.com.pl/api/v4/groups/330/-/packages/pypi/simple coolamqp +``` + +Or state it at the beginning of your `requirements.txt`: + +```python +--extra-index-url https://git.dms-serwis.com.pl/api/v4/groups/330/-/packages/pypi/simple +coolamqp +``` + Why CoolAMQP? ------------- diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py index 4efac1c..c7d8778 100644 --- a/coolamqp/__init__.py +++ b/coolamqp/__init__.py @@ -1 +1 @@ -__version__ = '1.3.2a1' +__version__ = '1.3.2a2' diff --git a/coolamqp/objects.py b/coolamqp/objects.py index 69a1045..e505920 100644 --- a/coolamqp/objects.py +++ b/coolamqp/objects.py @@ -251,7 +251,7 @@ class Queue(object): assert isinstance(self.consumer_tag, six.binary_type) def __eq__(self, other): - return (self.name == other.name) and (type(self) == type(other)) + return self.name == other.name def __hash__(self): return hash(self.name) diff --git a/stress_tests/settings.py b/stress_tests/settings.py index 57424f4..8e2badf 100644 --- a/stress_tests/settings.py +++ b/stress_tests/settings.py @@ -6,7 +6,7 @@ from coolamqp.objects import NodeDefinition logger = logging.getLogger(__name__) -NODE = NodeDefinition(os.environ.get('AMQP_HOST', '127.0.0.1'), 'guest', 'guest', heartbeat=20) +NODE = NodeDefinition(os.environ.get('AMQP_HOST', 'rabbitmq'), 'guest', 'guest', heartbeat=20) logging.basicConfig(level=logging.DEBUG) -- GitLab