diff --git a/docker-compose.yml b/docker-compose.yml index abccf572..18991245 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,3 +28,10 @@ services: sh -c "mc config host rm local mc config host add local http://localhost:9999 admin password mc policy set download local/seanmcapp" + + mock-server: + image: wiremock/wiremock + ports: + - "8080:8080" + volumes: + - ./docker/wiremock:/home/wiremock diff --git a/docker/wiremock/mappings/hello.json b/docker/wiremock/mappings/hello.json new file mode 100644 index 00000000..9a3e8a71 --- /dev/null +++ b/docker/wiremock/mappings/hello.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "GET", + "url": "/hello" + }, + "response": { + "status": 200, + "body": "Hello world!", + "headers": { + "Content-Type": "text/plain" + } + } +} \ No newline at end of file diff --git a/src/main/resources/application-local.conf b/src/main/resources/application-local.conf index eebd77fd..1daae29e 100644 --- a/src/main/resources/application-local.conf +++ b/src/main/resources/application-local.conf @@ -7,4 +7,32 @@ aws { secret = "password" host = "http://localhost:9999" bucket = "seanmcapp" +} + +telegram { + bot-1 { + bot-endpoint = "http://localhost:8080/telegram-bot-1" + bot-name = "bot-1" + } + + bot-2 { + bot-endpoint = "http://localhost:8080/telegram-bot-2" + bot-name = "bot-2" + } +} + +airvisual { + endpoint = "http://localhost:8080/air-visual" + api-key = "some-api-key" +} + +instagram { + endpoint = "http://localhost:8080/instagram" + username = "username" + password = "password" +} + +hadith { + endpoint = "http://localhost:8080/hadith" + api-key = "some-api-key" } \ No newline at end of file