Skip to content

Failing Backend Tests after First-time Installation #1018

@Chiemezuo

Description

@Chiemezuo

Describe the bug
I'm a first-time contributor to Zubhub. After following all the installation instructions and setting up the codebase on my local machine, I ran make test and got the following error:

Top of the Traceback:
image

Bottom of the Traceback:
image

To Reproduce
Steps to reproduce the behavior:

NOTE: I assume you already have a .env file setup

  1. Go to the .env file in your zubhub_backend directory
  2. Change the following:
RABBITMQ_DEFAULT_USER=admin
RABBITMQ_DEFAULT_PASS=admin

CELERY_BROKER=amqp://admin:admin@rabbitmq:5672
CELERY_BACKEND=django-db

CELERY_FLOWER_USER=admin
CELERY_FLOWER_PASSWORD=admin

to:

RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest

CELERY_BROKER=amqp://guest:guest@rabbitmq:5672
CELERY_BACKEND=django-db

CELERY_FLOWER_USER=guest
CELERY_FLOWER_PASSWORD=guest

And then save.
4. Still in that directory, from the terminal, run make init.
5. Run make test.
6. See error.
Note: After doing this, you can change the instances of guest back to admin and follow the steps, and you will still see the error.

Expected behavior
Tests are not expected to fail, especially because it is a fresh installation with no code changes done yet. All tests should ideally pass.

Screenshots
Here's a screenshot of logs from the Docket rabbitmq container:
image

And here's a screenshot from my browser when I try logging in to localhost:15672 to corroborate the errors in red lines in the screenshot of the rabbitmq Docker logs above:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions