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 working with end-to-end tests #266

Merged
merged 3 commits into from
May 22, 2019
Merged

Fix working with end-to-end tests #266

merged 3 commits into from
May 22, 2019

Conversation

kevindew
Copy link
Member

@kevindew kevindew commented May 22, 2019

Trello: https://trello.com/c/odtNdsay/574-e2e-tests-failing-since-monday-morning

This adds a few changes that aim to resolve problems running the end-to-end tests.

This depends on alphagov/publishing-e2e-tests#326 and the end-to-end test result here is based on that.

This firstly makes this repo run the end-to-end tests as part of it's build so that it is harder for this app to break the build. This is a slightly annoying situation as the end-to-end tests aren't actually being tested but apps (Content Tagger) do break without them.

This then adds a rake task to create the RabbitMQ queues that are used by this app. I'm not sure whether these were used / worked before.

Finally this updates the dockerfile to reflect the deprecation of the bin/email_alert_service command.

This isn't ideal as none of these tests do much with Email Alert
Service, but similarly a change to this application can break the full
test suite.
This is to allow the creation of the queues that are part of the
rabbitmq config file. This is primarily used by end-to-end tests as a
means to set up the environment so tests can run.

Incidentally, it appears the queue configurations in the rabbitmq config
file are not used by anything besides this so could probably just be
hardcoded here and removed from that file. I wanted to minimise changes
though so I avoided that step.
The bin/email_alert_service file is deprecated so this runs the main
process by default.
@kevindew kevindew requested a review from edwardkerry May 22, 2019 12:39
@kevindew kevindew merged commit ef35452 into master May 22, 2019
@kevindew kevindew deleted the use-e2e-tests branch May 22, 2019 12:50
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.

2 participants