You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesunioslo#483
First pass:
- Add pragma to exempt lines from coverage to .coveragerc
- Add test for stringifying HostPolicyComponent-based objects (see unioslo#482)
- Mock host_permissions/user_in_required_groups as its not supported by default.
- Ensure that IsSuperOrAdminOrReadOnly is tested for unauthenticated users (test_permissions/test_get_at_different_privilege_levels)
- Exclude exceptions from coverage that are impossible to reach without creating a broken API.
- Test that IsSuperOrNetworkAdminMember returns 401 for unauthenticated users (test_networks/test_networks_get_401_unauthorized).
Fixesunioslo#483
First pass:
- Add pragma to exempt lines from coverage to .coveragerc
- Add test for stringifying HostPolicyComponent-based objects (see unioslo#482)
- Mock host_permissions/user_in_required_groups as its not supported by default.
- Ensure that IsSuperOrAdminOrReadOnly is tested for unauthenticated users (test_permissions/test_get_at_different_privilege_levels)
- Exclude exceptions from coverage that are impossible to reach without creating a broken API.
- Test that IsSuperOrNetworkAdminMember returns 401 for unauthenticated users (test_networks/test_networks_get_401_unauthorized).
https://github.com/unioslo/mreg/blob/master/hostpolicy/models.py#L20 ensures that an object of a class inheriting from HostPolicyComponent with name
test
will be returned as"test"
. It should be verified that this is expected and required.The text was updated successfully, but these errors were encountered: