Skip to content

Commit

Permalink
Adjustments to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Nov 4, 2021
1 parent 8369941 commit b4fcf0d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions irrd/updates/tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ def test_related_route_exact_inetnum(self, prepare_mocks, config_override):
'RELATED-MNT - from parent inetnum 192.0.2.0-192.0.2.255'
}

config_override({'auth': {'authenticate_related_mntners': False}})
result = validator.process_auth(route, None)
assert result.is_valid()
config_override({})

result = validator.process_auth(route, route)
assert result.is_valid()

Expand Down Expand Up @@ -338,9 +343,6 @@ def test_related_route_less_specific_inetnum(self, prepare_mocks, config_overrid
'RELATED-MNT - from parent inetnum 192.0.2.0-192.0.2.255'
}

result = validator.process_auth(route, route)
assert result.is_valid()

def test_related_route_less_specific_route(self, prepare_mocks, config_override):
validator, mock_dq, mock_dh = prepare_mocks
route = rpsl_object_from_text(SAMPLE_ROUTE)
Expand Down Expand Up @@ -396,9 +398,6 @@ def test_related_route_less_specific_route(self, prepare_mocks, config_override)
'RELATED-MNT - from parent route 192.0.2.0/24AS65537'
}

result = validator.process_auth(route, route)
assert result.is_valid()

def test_related_route_no_match_v6(self, prepare_mocks, config_override):
validator, mock_dq, mock_dh = prepare_mocks
route = rpsl_object_from_text(SAMPLE_ROUTE6)
Expand Down

0 comments on commit b4fcf0d

Please sign in to comment.