forked from aiidateam/aiida-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RabbitMQ: Remove support for v3.5 and older
RabbitMQ 3.5 has been EOL since 31 October 2016: https://www.rabbitmq.com/versions.html This version required to explicitly run `support_deprecated_rabbitmq` on the `pamqp` library (which is used all the way down the stack by `aiormq` to handle interactions with RabbitMQ) to enable compatibility. In removing this, the explicit dependency on `pamqp` is also removed. The `aiida.manage.manager.is_rabbitmq_version_supported` function which is used to check compatibility when a profile is loaded is updated to include the lower bound.
- Loading branch information
Showing
11 changed files
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Tests for the :mod:`aiida.manage.manager` module.""" | ||
from packaging.version import parse | ||
import pytest | ||
|
||
from aiida.manage import manager | ||
|
||
|
||
@pytest.mark.parametrize(('version', 'supported'), ( | ||
('3.5', False), | ||
('3.6', True), | ||
('3.6.0', True), | ||
('3.6.1', True), | ||
('3.8', True), | ||
('3.8.14', True), | ||
('3.8.15', False), | ||
('3.9.0', False), | ||
('3.9', False), | ||
)) | ||
def test_is_rabbitmq_version_supported(monkeypatch, version, supported, communicator): | ||
"""Test the :func:`aiida.manage.manager.is_rabbitmq_version_supported`.""" | ||
monkeypatch.setattr(manager, 'get_rabbitmq_version', lambda communicator: parse(version)) | ||
assert manager.is_rabbitmq_version_supported(communicator) is supported |