Skip to content

Commit 26f5dcb

Browse files
docker compose file added to run restfulbooker service, updated basepath (#6)
* updated baseurl and added docker-compose file * updated basepath
1 parent 7fa5654 commit 26f5dcb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docker-compose-restfulbooker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# To execute this docker-compose yml file use `docker-compose -f docker-compose-restfulbooker.yml up -d`
2+
# Add the `-d` flag at the end for detached execution
3+
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-restfulbooker.yml down`
4+
version: "3"
5+
services:
6+
restful-booker:
7+
image: mwinteringham/restfulbooker
8+
ports:
9+
- 3001:3001

src/test/java/io/github/mfaisalkhatri/api/restfulbooker/tests/BaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class BaseTest {
1919
public void setupBase () {
2020
manager = new RequestManager ();
2121
manager.createPlaywright ();
22-
final String baseUrl = "https://restful-booker.herokuapp.com/";
22+
final String baseUrl = "http://localhost:3001";
2323
Map<String, String> headers = new HashMap<> ();
2424
headers.put ("content-type", "application/json");
2525
headers.put ("Accept", "application/json");

0 commit comments

Comments
 (0)