My team and I are starting to use SmartBear's ReadyAPI tool to do some automated testing of a REST web services we are developing. I have created a new Project within ReadyAPI and imported the API's openapi definition (via Swagger). The project is saved as a "composite project" - i.e. it is saved as many files within a project folder, instead of as one monolithic XML definition. This folder will eventually be added to source control (git).
The web service uses OAuth2.0 authentication, and I'm happy with how ReadyAPI allows you to create a token and associated it with each request in the API. However it seems that ReadyAPI writes the token out to the settings.xml
file for the project, which is a file that would be committed to source control. It is inappropriate to commit a token value to source control. Is there a way to tell ReadyAPI to save that token off in a user-specific space, similar to how it handles user-specific project properties?
I don't think I can just gitignore
the entire settings.xml file, since it contains other project-specific settings that I do want to save in source control.
Below is a portion of a diff showing the change to the settings.xml
file that is written after I successfully retrieve a token: