Skip to content
Snippets Groups Projects
Commit 395e69d8 authored by Erik Reid's avatar Erik Reid
Browse files

added a small test

parent 580dfeeb
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,12 @@ def test_InventoryTask_obj(data_config_filename):
def test_next_redis(data_config, mocked_redis):
"""
not a very meaningful test ... basically only for sanity & coverage
:param data_config:
:param mocked_redis:
:return:
"""
common.set_latch(data_config, 10, 20)
r = common.get_next_redis(data_config)
assert r
......@@ -69,6 +75,12 @@ def test_next_redis(data_config, mocked_redis):
def test_next_redis_with_none(data_config, mocked_redis):
"""
not a very meaningful test ... basically only for sanity & coverage
:param data_config:
:param mocked_redis:
:return:
"""
r = common._get_redis(data_config)
assert r
......
......@@ -28,7 +28,7 @@ def test_juniper_addresses(client):
assert len(response_data) > 0 # test data is not empty
def test_get_equipment_location(client):
def test_get_equipment_location_all(client):
rv = client.get(
'/testing/opsdb/equipment-location',
headers=DEFAULT_REQUEST_HEADERS)
......@@ -81,3 +81,12 @@ def test_get_parents(client):
assert rv.status_code == 200
assert rv.is_json
# TODO: validate against schema
def test_get_equipment_location(client):
rv = client.get(
'/testing/opsdb/equipment-location/mx1.ams.nl.geant.net',
headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200
assert rv.is_json
# TODO: validate against schema
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