Morten Brekkevold

Results 97 issues of Morten Brekkevold

**Is your feature request related to a problem? Please describe.** Now that #2313 is merged, NAV has the ability to provide a log of running software upgrades. However, it's not...

enhancement
report
paused

The `nav.web.ldapauth` module is critical in many production settings. We should definitely increase the test coverage for said module: https://app.codecov.io/gh/Uninett/nav/blob/master/python/nav/web/ldapauth.py

cleanup
tests
good first issue

This should fix the annoying ResourceWarnings coming through during the test suite: ``` /source/python/nav/config.py:339: ResourceWarning: unclosed file NAV_CONFIG = read_flat_config('nav.conf') ResourceWarning: Enable tracemalloc to get the object allocation traceback /source/python/nav/django/settings.py:36:...

cleanup

PortAdmin only cares about VLANs that can be identified through a proper 12-bit integer tag, so it should be safe to ignore ones that do not conform to the expected...

portadmin

**Is your feature request related to a problem? Please describe.** The full NAV test suite is a complex beast, which is why we've mostly defined the necessary environment to run...

enhancement
tests

I'm looking at this code specifically because of its use of `xrange()`, which won't work under Python 3. However, I have questions regarding the assumptions made in this comment: https://github.com/UNINETT/nav/blob/6804f2336d9bf261d80767227d57feafe1341b2f/python/nav/activeipcollector/manager.py#L44-L50...

cleanup
good first issue

**Describe the bug** If the graphite-web API is unreachable from NAV's web process, the Ranked Statistics tool hard-crashes with a 500 error when generating a report, which in turn causes...

bug
good first issue

Normally, routers are registered in NAV with their loopback IP address. As it turns out, not all routers will send traps from this address. However, NAV's `snmptrapd` is only able...

bug
good first issue

This is used in every script that runs outside of the web server, and needs a proper docstring to explain its used to the uninitiated: https://github.com/Uninett/nav/blob/e34075998ddc41306f63a136242d96825ec14fd8/python/nav/bootstrap.py#L31

documentation