You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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™ :)
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:
The text was updated successfully, but these errors were encountered: