Skip to content
Snippets Groups Projects
Commit d03f2407 authored by Robert Latta's avatar Robert Latta
Browse files

Added dummy coriant tnms addresses to test conf file and added test to...

Added dummy coriant tnms addresses to test conf file and added test to classsifier route tests for coriant tnms end point
parent e8f6dd43
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,11 @@ def data_config_filename(tmp_dir_name):
{"name": "name1", "address": "123.456.789.0"},
{"name": "name2", "address": "012.345.678.9"},
{"name": "name3", "address": "111.222.333.000"}
],
"coriant-tnms": [
{"name": "name1", "address": "123.456.789.0"},
{"name": "name2", "address": "012.345.678.9"},
{"name": "name3", "address": "111.222.333.000"}
]
}
......
......@@ -23,6 +23,22 @@ def test_infinera_addresses(client):
response_schema)
def test_coriant_addresses(client):
response_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {"type": "string"}
}
rv = client.post(
"/classifier/coriant-tnms-addresses",
headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200
jsonschema.validate(
json.loads(rv.data.decode("utf-8")),
response_schema)
def test_juniper_addresses(mocker, client):
test_data = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment