-
Notifications
You must be signed in to change notification settings - Fork 992
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
Webhooks: add tests #3469
Webhooks: add tests #3469
Conversation
- small code improvements
Don't worry about the failing tests, that will be fixed in an other PR. |
@galaxybot test this |
Thanks for the contribution - I'm going to open a PR to fix this up a bit. It is close but you...
These should be really easy to fix but there isn't a lot of test documentation so I'm going to open a PR against your repository - I hope that is okay. |
- Populate test server with demo webhooks by default. - Eliminate special logic needed to treat the demo directory differently. - Document how to enable the demo webhooks in galaxy.ini.sample. - Populate the demo webhooks when starting Galaxy with GALAXY_RUN_WITH_TEST_TOOLS=1 set.
…ation. It may seem like this is testing less since fewer API calls are being made - but when you use the backend to generate the data you trust in the test case - the correlation lands up meaning relatively less is tested. For instance, if there is some problem arises in the to_dict method of a webhook - it is going to arise in both the implementation and in the test case and so the test case will just be asserting that the response is broken ... and it will be. Testing more concrete things is also good for ensuring backward compatibility.
@jmchilton yeah, sure, no problem. I spent I lot of time trying to figure out how to change the |
Improve abstraction in webhook API tests.
I pushed a merge against dev to resolve conflicts in the PR. This is really nice - thanks for the tests! |
@bgruening In response to some out of band comments on this pull request I get that these are potentially useful plugins on there own - and I'm willing to move them outside of If you want to put the useful plugins in |
I think it's ok. You have added a nice comment into the galaxy.ini and people can also add the path to the test dir to galaxy.ini. It ok as it is. We loose a little bit of visibility but I guess as soon as people are confident with this plugin infrastructure we should advertise it more and enable PhD comics on main 😛 |
Once Webhooks have been introduced, tests were missing. Now I fixed it. Also,
WebhooksRegistry
doesn't consider junk files (like .DS_Store) and thedemo
folder as a webhook directory anymore.