LinuxSuRen / LinuxSuRen/api-testing
Add a flag to enable/disable reload mock config automatically
Offen
@yuluo-yx arbeitet bereits daran.
Seit 01.5.2024.
enhancement
good first issue
- Vorherrschende Sprache
- Go
- Sterne
- 369
- Forks
- 67
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.