summaryrefslogtreecommitdiffstats
path: root/test/functest
diff options
context:
space:
mode:
authorvrvarma <vv8305@att.com>2018-11-01 10:46:18 -0400
committervrvarma <vv8305@att.com>2018-11-01 11:36:15 -0400
commite8f00ec45adb71eac51e110ea19dd2bead78b2d3 (patch)
tree2ffe895b524b2c96e57461d3f95ebd5d14cb2211 /test/functest
parent49570621115a7f5c89e607e52decb7aa583af4f6 (diff)
oof changes for the new sdnr-configdb changes
OSDF changes required for the latest configdb api specs. Improve performance building the minizinc request Change-Id: I5558c96c13f3cac25d50aed61ded3ffa079df3f7 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-388
Diffstat (limited to 'test/functest')
-rwxr-xr-xtest/functest/simulators/oof_dependencies_simulators.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functest/simulators/oof_dependencies_simulators.py b/test/functest/simulators/oof_dependencies_simulators.py
index b7e6cb5..2995861 100755
--- a/test/functest/simulators/oof_dependencies_simulators.py
+++ b/test/functest/simulators/oof_dependencies_simulators.py
@@ -93,18 +93,18 @@ def get_policies(sub_component):
return jsonify(list_json)
-@app.route("/simulated/configdb/getCellList", methods=["GET"])
-def get_cell_list():
+@app.route("/simulated/configdb/getCellList/<network_id>/<ts>", methods=["GET"])
+def get_cell_list(network_id, ts):
data, status = get_payload_for_simulated_component('configdb',
- 'getCellList-' + request.args.get('networkId') + '.json')
+ 'getCellList-' + network_id + '.json')
if not status:
return jsonify(data)
return jsonify(data), 503
-@app.route("/simulated/configdb/getNbrList", methods=["GET"])
-def get_nbr_list():
- data, status = get_payload_for_simulated_component('configdb', 'getNbrList-' + request.args.get('cellId') + '.json')
+@app.route("/simulated/configdb/getNbrList/<cell_id>/<ts>", methods=["GET"])
+def get_nbr_list(cell_id, ts):
+ data, status = get_payload_for_simulated_component('configdb', 'getNbrList-' + cell_id + '.json')
if not status:
return jsonify(data)
return jsonify(data), 503