Uninett / zino

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

Initialize state structures for new devices #205

Closed lunkwill42 closed 3 months ago

lunkwill42 commented 3 months ago

This ensures that when new devices are discovered during the loading of polldevs.cf, their entries in zino.state.state.devices and zino.state.state.addresses will be initialized immediately. This is to ensure that other parts of Zino can look up the device by name or address, even if the Zino engine hasn't polled any data from the device yet.

This PR was extracted from #193 and is a requirement for that PR to work.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

github-actions[bot] commented 3 months ago

Test results

    3 files      3 suites   32s :stopwatch: 290 tests 290 :heavy_check_mark: 0 :zzz: 0 :x: 870 runs  868 :heavy_check_mark: 2 :zzz: 0 :x:

Results for commit 9959af42.

codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 98.82%. Comparing base (1df2f1d) to head (9959af4).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #205 +/- ## ======================================= Coverage 98.82% 98.82% ======================================= Files 40 40 Lines 5426 5431 +5 ======================================= + Hits 5362 5367 +5 Misses 64 64 ```

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