Skip to content

AtebMT/automation-webservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

automation-webservice

Greeting webservice used for my automation tests. To run the container, use something like:

docker run -i -t --rm --name=GreetingService dangermike64/automation-webservice

You must give the container a name to expose the IP address to other containers.

To test that the container is running, assuming you are on the same machine as the conatiner, open a web browser and nvaigate to:

http://localhost:3000

To get a JSON response, hit the greeting endpoint:

http://localhost:3000/hello/world

You can link this container to other containers. e.g.:

docker run -i -t --rm --link=GreetingService:GreetingEndpoint dangermike64/automation-test-ws gradle test

here we link to the name given to the greeting container (GreetingServer). GreetingEndpoint is host name add to the dangermike64/automation-test-ws containers etc/host file. (In this example, the container uses that endpoint to test the web service.)

About

Greeting webservice used for my automation tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published