From 49c7d2f976edb8af884e3702b906e79aa3aa0517 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Mar 11 2019 20:38:48 +0000 Subject: [PATCH 1/2] Install fedora-messaging from updates for tests python3-fedora-messaging is not yet available in F29. It must be installed from updates-testing instead. Signed-off-by: Luiz Carvalho --- diff --git a/Vagrantfile b/Vagrantfile index 7302e46..044524a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -19,6 +19,9 @@ $script = <<-'SCRIPT' python3-requests \ vim + # TODO: Remove this once fedora-messaging is in F29, or we move to F30 + dnf -y install python3-fedora-messaging --enablerepo=updates-testing + systemctl enable postgresql postgresql-setup --initdb --unit postgresql # Don't require authentication when connecting to Postgres From 0a525ff61b0a05b9899c74e7d0546bd2533e0155 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Mar 11 2019 20:40:15 +0000 Subject: [PATCH 2/2] Do not publish waiverdb msgs in functional tests Since the move to fedora-messaging, the functional tests fail because fedora-messaging reports that it cannot publish messages when a new waiver is created. This is true because, well, there is not message broker in the functional tests environment. For this reason, let's simply disable publishing messages in this environment. Signed-off-by: Luiz Carvalho --- diff --git a/functional-tests/conftest.py b/functional-tests/conftest.py index f658e7c..e4f7551 100644 --- a/functional-tests/conftest.py +++ b/functional-tests/conftest.py @@ -149,6 +149,7 @@ def waiverdb_server(tmpdir_factory): settings_content = """ AUTH_METHOD = 'dummy' DATABASE_URI = 'postgresql+psycopg2:///%s' + MESSAGE_BUS_PUBLISH = False """ % dbname init_db_arguments = ['python3', os.path.join('waiverdb', 'manage.py'), 'db', 'upgrade']