-
Notifications
You must be signed in to change notification settings - Fork 189
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
Write tests and enable Parser service #2111
Comments
@c3ho What's the status of this? Should someone else take this on? |
@chrispinkney Hi Chris, sorry work has been killing me... as you can tell by the time of this message. Could someone else take it on? |
@c3ho no worries, thanks so much for getting the ball rolling on this. We'll take it from here. |
When this gets fixed, make sure to undo what I did in #2441, where I disabled the parser service. |
@manekenpix and I have been trying to work on this slowly and would like to keep going, nearing completion I think! |
Cool. I know that @TueeNguyen is interested in working on this as well, maybe you can collaborate? |
I did some comparison between |
@TueeNguyen the parser service doesn't need those files. |
Thank you, I just want to confirm that those are not needed |
Reopened because I haven't got tests in |
Or Docker bits to turn it on in docker-compose.yml |
@humphd, can you give me some idea how to write e2e test for this? I plan on adding a few valid, invalid, youtube feeds to the queue, run it and after the queue is drained, I check data in redis, queue's stats |
An e2e test would probably have you add some feeds to the queue (later we'd inject them into the database), have the feed queue start, wait on the queue to drain, then use the posts service to query the feeds and posts data. |
Great, my initial thought is almost correct. But, how do I use posts service in |
You wouldn't use it in the parser, you'd |
Hi @humphd, How do I run e2e tests? I don't think I can run it locally. |
Identical way we do it in CI: https://github.com/Seneca-CDOT/telescope/blob/master/.github/workflows/e2e-tests-ci.yml#L28-L30 |
I did some research on testing bull queue using |
This is why we need to write e2e vs. mock unit tests (i.e., so we have a real redis). |
We landed the Parser service today, but we have it not starting the actual parser, nor do we have any tests. We need to fix both things. @c3ho added Jest configs for both unit and e2e tests, but there aren't any.
You can get some idea of how to work across services in tests by looking at my auth test here.
The text was updated successfully, but these errors were encountered: