Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.81 KB

Docs.md

File metadata and controls

43 lines (26 loc) · 1.81 KB

test data service

How to set it up

It is a Spring Boot application. The service will import Open Streetmap PBF dumps by using

export OSM_IMPORT_FILE=http://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de/germany-latest.osm.pbf
export OSM_IMPORT_ONLY=YES
java -jar data-service.jar

The easy way to setup the test data service is to use Docker. Just run the latest docker image

docker run --name test-data -p 80:8080 datengaertner/test-data-service

There are Docker files included to create your own images.

How to use it

After startup you can navigate to https://localhost:8443/ in your browser. It will ask for Basic Authentication (admin and the generated password) and then show a random generated person. There is a link on that page to the included Swagger UI.

User Interface

With Swagger UI as usual you can test API calls and get JSON samples for your own clients.

Swagger UI

You can access the API at SwaggerHub and there is a simple Go client available as a Gist.

Your service does not provide <your data type here>

There are many other sources of test data.

Has it been tested?

Well, yes, obviously

And it is an example how to use different test automation tools for Spring Boot.

But I want test data for Mexico

Follow me!