For the tests, we start a local server (petstore) for testing API calls. Here is how we start it in 1.0 config:
- docker pull swaggerapi/petstore - docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
Things are working fine with the 1.0 config.
We try to migrate the config to 2.0 and here is one of the builds (failure): https://circleci.com/gh/OpenAPITools/openapi-generator/606
Basically all API calls/tests failed.
If I comment out the following to use the public petstore server instead:
- run: working_directory: ~/OpenAPITools/openapi-generator command: |- printf '127.0.0.1 petstore.swagger.io ' | sudo tee -a /etc/hosts
Then all tests in “openapi-scala-client” passed without issues.
It seems to me there’s an issue running “swaggerapi/petstore” but there’s no error/warning. “docker ps -a” looks good in both 1.0 and 2.0 config.
Does anyone have a clue on what may have caused the issue after the migration to 2.0?