Uninett / zino

Zino 2.0 - Network state monitor for research networks
Apache License 2.0
3 stars 4 forks source link

Add API command to create fake events #271

Open johannaengland opened 1 week ago

johannaengland commented 1 week ago

Closes #268. Part of #243.

The reason why this is a draft PR is that I am not happy, that the subindex is not optional, because when trying to create a ReachabilityEvent it should be possible to only have the device name and reachability as input. But I do not know how to implement that.

I was also considering having the possibility of no input or just the input of router and/or event type and randomly generating the other not given values. Is that desirable?

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.90%. Comparing base (fc89111) to head (3f0ba85).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #271 +/- ## ========================================== + Coverage 98.90% 98.90% +0.01% ========================================== Files 51 51 Lines 6889 6928 +39 ========================================== + Hits 6813 6852 +39 Misses 76 76 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.