Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing Backend Tests after First-time Installation #1018

Open
Chiemezuo opened this issue Dec 12, 2023 · 3 comments · May be fixed by #1014
Open

Failing Backend Tests after First-time Installation #1018

Chiemezuo opened this issue Dec 12, 2023 · 3 comments · May be fixed by #1014

Comments

@Chiemezuo
Copy link

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
@Chiemezuo
Copy link
Author

@yokwejuste Here's some more context.

@Chiemezuo Chiemezuo linked a pull request Dec 12, 2023 that will close this issue
@utkarsh-1602
Copy link

@Chiemezuo hey I would like to work on this issue, please assign it to me

@Chiemezuo
Copy link
Author

@utkarsh-1602 I'm not a core team member, so I cannot assign any issue. Also, I already made a fix for it and pushed it. It's referenced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants