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

fix integration tests #162

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

gecBurton
Copy link
Collaborator

@gecBurton gecBurton commented Mar 28, 2024

Context

The integration tests were broken when we moved from rabbitmq to redis, this is because the redis username/password was incorrectly set up. Fixing the redis auth will be tackled in another ticket, this PR just gets the tests passing again.

Changes proposed in this pull request

  1. redis auth has been removed
  2. error in integration tests has been corrected
  3. some minor corrections to the README has been made

Guidance to review

does make test-integration work for you?

Relevant links

Things to check

  • I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed
  • I have run integration tests locally

@@ -92,16 +91,7 @@ def s3_client(self):

raise NotImplementedError

def sqs_client(self):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no longer needed


pytest.fail(reason=f"failed to get embedded chunks within {timeout} seconds")
if not embeddings_found:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opps!

@@ -42,7 +42,6 @@ class Settings(BaseSettings):

redis_host: str = "redis"
redis_port: int = 6379
redis_password: str = "guest"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have removed this until we work out how to get auth working

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this mentioned somewhere on JIRA as something to fix?

Copy link
Contributor

@rachaelcodes rachaelcodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding something in the README about dealing with the pytest-django issue, but this seems to work.

@gecBurton gecBurton merged commit 90232ad into main Mar 28, 2024
3 checks passed
@gecBurton gecBurton deleted the bugfix/integration-tests-not-working-with-redis-auth branch March 28, 2024 11:31
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 this pull request may close these issues.

None yet

2 participants