Skip to content
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

Add a flag to enable/disable reload mock config automatically #409

Open
LinuxSuRen opened this issue Apr 28, 2024 · 1 comment
Open

Add a flag to enable/disable reload mock config automatically #409

LinuxSuRen opened this issue Apr 28, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@LinuxSuRen
Copy link
Owner

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

@LinuxSuRen LinuxSuRen added enhancement New feature or request good first issue Good for newcomers labels Apr 28, 2024
@yuluo-yx
Copy link
Collaborator

yuluo-yx commented May 1, 2024

/assign @yuluo-yx

LinuxSuRen pushed a commit that referenced this issue Jun 17, 2024
* chore(deps): update gitea/gitea docker tag to v1.20.4

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants