LinuxSuRen / LinuxSuRen/api-testing
Add a flag to enable/disable reload mock config automatically
Open
@yuluo-yx is already working on this.
Since May 1, 2024.
enhancement
good first issue
- Dominant language
- Go
- Stars
- 369
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
The Mock Server can only read the config at the startup stage. Users need to restart it if they modified the config file content.
Solution
Support to watch the changes of the mock config file. And provide a flag to enable or disable this feature. The usage might be:
atest mock --files demo-server.yaml --auto-reload [true|false]
And I prefer setting the flag value --auto-reload to be false.
References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.