https://linen.dev logo
#general
Title
# general
m

Manan Girdhar

01/30/2023, 6:58 AM
Hii I am using wiremock for security testing purposes, and I can run wiremocks on jenkins server but not able to run that on local machine can anyone help me with that
a

Aaron

01/30/2023, 1:16 PM
What command are you using to start WireMock? Is this WireMock standalone? What error message do you get when trying to run WireMock locally?
m

Manan Girdhar

01/30/2023, 1:25 PM
Copy code
org.eclipse.jetty.util.log.StdErrLog logger = new org.eclipse.jetty.util.log.StdErrLog();
        logger.setLevel(org.eclipse.jetty.util.log.StdErrLog.LEVEL_OFF);
        org.eclipse.jetty.util.log.Log.setLog(logger);

        wireMockServer = new WireMockServer(options().usingFilesUnderDirectory(getDirectoryLocation(toolName)).port(randomWiremockPort())); //No-args constructor will start on port 8080, no HTTPS 
       wireMockServer.start();
this is the code I am using, when run on ssh I provide the endpoint of the server we r using, but for running locally what endpoint should I use?