To clarify, since we also started using Harness recently, and might be looking into the linked docs article to test our DSL… @LoremIpsum-42 Do you create a Jenkins instance with JenkinsRule as usual, then get the port it is hosted on, and send HTTP requests to it from the test setup code? Do you use a separate library for that, or does JenkinsRule / Jenkins itself have some helper methods to handle REST?
There is postJSON(..) on the rule, but for user management that is not usable, because the plugin expects the json not in the whole body as a payload, but encoded in a parameter named “json” in the body.
Hence I use httpclient as a client to do that POST, using the Rule provided information you need (you can look in the postJSON(..) on the rule for the basics).