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

Mock Jenkins API to test Wreq requests #5

Open
2 tasks
dogonthehorizon opened this issue Nov 2, 2016 · 2 comments
Open
2 tasks

Mock Jenkins API to test Wreq requests #5

dogonthehorizon opened this issue Nov 2, 2016 · 2 comments

Comments

@dogonthehorizon
Copy link
Contributor

As a Bartlett developer, I want some means to mock Jenkins API responses, so that I can unit test my IO actions and have greater confidence in the codebase.

This could also be accomplished by running the tests in a Docker container with a running Jenkins instance. This may or may not be more work.

AC:

  • tests written against Build and Info actions
  • tests can be run locally without an internet connection
@dogonthehorizon dogonthehorizon added this to the v0.9.2 milestone Nov 2, 2016
@dogonthehorizon dogonthehorizon removed this from the v1.4.1 milestone Feb 9, 2017
@chris-pollard-assurity
Copy link

Hi @dogonthehorizon, just spotted this as we are debugging jenkins api interactions.
The solution we are using is with WireMock (wire mock.org) running standalone.
The quickest way of getting going it running is in standalone proxy mode, recording some wanted interactions, then editing/extending to fit your needs and rerunning.
Works a treat!
Hope that is of use, Chris

@dogonthehorizon
Copy link
Contributor Author

Hey that's a great idea @chris-pollard-assurity, thanks for the suggestion! That could be a great alternative to finding a Haskell-native mocking solution.

If no one is interested in picking up this work I'll get to it sometime Soon™ :)

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

No branches or pull requests

2 participants