-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support baseURL
for Stub Server
#1431
Comments
Hello thanks for opening this request, can you help me resolve the issue of how can I also do this for my stub server as it is also not able to detect the server url path, like i can set system property for testbaseurl base path for contract as test. How can i do this for stub server basepath |
Hey @harikrishnan83 @samyakOO7 any updates on the question??? |
hello @twinkle12b, thanks for following up on this. We are already working on option 1 "Support baseURL similar to testBaseURL for stub server" mentioned above. And should be available shortly. Meanwhile on option 2 "Pick it up from servers section", the servers section in OpenAPI 3.0.x, as you may be aware, can have multiple servers. servers:
- url: https://api.production.example.com/v1
description: Production server
- url: https://api.staging.example.com/v1
description: Staging server
- url: http://localhost:8080/v1
description: Local development server So to pick one of them we plan to use Thanks. cc @samyakOO7 |
Hi @samyakOO7 how can i do this programmatically like via some system property, as i running test class and not command line |
hello @twinkle12b, we will update our documentation and share the link with you as soon as this is available shortly. Thanks. |
@harikrishnan83 Not sure if this is the right place to ask this question. Does it mean that we can have the baseUrl for API tests defined at the fine (spec) level and we can have multiple files with multiple hosts running in the same suite? |
Is your feature request related to a problem? Please describe.
Many a times, the API path needs to be prefixed with additional path segments. Example:
/products
needs to be prefixed with/api/store/
.Describe the solution you'd like
Support either both or at least one capability.
baseURL
similar totestBaseURL
for stub serverservers
sectionAdditional context
Creating this on behalf of @twinkle12b as a follow-up to issue #1425
The text was updated successfully, but these errors were encountered: