Skip to content
Snippets Groups Projects
Commit d2994a77 authored by Sam Roberts's avatar Sam Roberts
Browse files

adjusted tests to work with providing NRENs

parent 7936f4a3
Branches
Tags
1 merge request!3Feature/reporting 311 add msr asn peers
......@@ -72,6 +72,10 @@ def data_config_filename():
{
"nren": "BAT",
"asn": 2200
},
{
"nren": "BAZ",
"asn": 1853
}
]
}
......
......@@ -350,13 +350,13 @@ def test_get_vpn_proxy_peerings(client, mocked_redis):
@pytest.mark.parametrize('endpoint_variant', [
"", # default, no filter
"/378",
"/1853",
"?group=IAS-NRENS",
"?instance=IAS",
"?group=IAS-NRENS&instance=IAS",
"/378?group=IAS-NRENS",
"/378?instance=IAS",
"/378?group=IAS-NRENS&instance=IAS"
"/1853?group=IAS-NRENS",
"/1853?instance=IAS",
"/1853?group=IAS-NRENS&instance=IAS"
])
def test_get_asn_peers_get(endpoint_variant, client, mocked_redis):
rv = client.get(
......@@ -375,10 +375,10 @@ def test_get_asn_peers_get(endpoint_variant, client, mocked_redis):
("", '{"group": "IAS-NRENS"}'),
("", '{"instance": "IAS"}'),
("", '{"group": "IAS-NRENS", "instance": "IAS"}'),
("/378", '{}'),
("/378", '{"group": "IAS-NRENS"}'),
("/378", '{"instance": "IAS"}'),
("/378", '{"group": "IAS-NRENS", "instance": "IAS"}')
("/1853", '{}'),
("/1853", '{"group": "IAS-NRENS"}'),
("/1853", '{"instance": "IAS"}'),
("/1853", '{"group": "IAS-NRENS", "instance": "IAS"}')
])
def test_get_asn_peers_post(endpoint_variant, post_body, client, mocked_redis):
rv = client.post(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment