diff --git a/inventory_provider/data_routes.py b/inventory_provider/data_routes.py index 4496c1857d34b9d9624fd84f13d2ea211701a5f7..890c703034feecd04030fc1303ff7afc4abeadb0 100644 --- a/inventory_provider/data_routes.py +++ b/inventory_provider/data_routes.py @@ -41,7 +41,7 @@ def version(): ) -@routes.route("/abc", methods=['GET', 'POST']) +@routes.route("/routers", methods=['GET', 'POST']) @require_accepts_json def abc(): redis_config = current_app.config["INVENTORY_PROVIDER_CONFIG"]["redis"] diff --git a/test/test_data_routes.py b/test/test_data_routes.py index 9cbaae59d3c0bc355f4092686459ae73c7f4c0a4..c6bea77da2dd4859a54716946299ee25c6b9f999 100644 --- a/test/test_data_routes.py +++ b/test/test_data_routes.py @@ -188,7 +188,7 @@ def test_abc(mocker, client): 'inventory_provider.data_routes.redis.StrictRedis', MockedRedis) rv = client.post( - "data/abc", + "data/routers", headers=DEFAULT_REQUEST_HEADERS) assert rv.status_code == 200