Hello Team, Please i am having issues installing w...
# wiremock-java
e
Hello Team, Please i am having issues installing wiremock on my linux ec2 instance in aws. I keep getting the error after running the following command; $ wget https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.31.0/wiremock-standalone-2.31.0.jar --2023-05-08 123627-- https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.31.0/wiremock-standalone-2.31.0.jar Resolving repo1.maven.org (repo1.maven.org)... 146.75.32.209, 2a044e4279::209 Connecting to repo1.maven.org (repo1.maven.org)|146.75.32.209|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2023-05-08 123627 ERROR 404: Not Found.
t
Hi @Ejiroghene Ineneji, that’s a very old version. Try this link to the latest: https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/3.0.0-beta-8/wiremock-standalone-3.0.0-beta-8.jar
e
Okay will do now. Thanks @Tom
e
what is the difference please?
t
Primarily that the 3.x beta raises the minimum Java version to 11. There are also some new features, but no actual breaking changes (yet). Later betas will have some breaking changes from a Java perspective, but the JSON API will remain backwards-compatible so it’s a pretty safe bet at this point.
e
So i have the wiremock running on AWS now. Can anyone give me a clue on how to run or test my upstream against the running wiremock?
t
Assuming you’ve opened (in the security group) the HTTP (or HTTPS) port you configured when you started WireMock in, you should be able to set the base URL to use the hostname:port of the of the EC2 instance, so e.g. http://ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com:8080
e
Please is this running ….? it the server is up where do i put commands for my tests ?asking because the command prompt isn’t available to type while this runs