aboutsummaryrefslogtreecommitdiffstats
path: root/test/functest/simulators/oof_dependencies_simulators.py
diff options
context:
space:
mode:
authorvrvarma <vikas.varma@att.com>2020-03-19 20:02:54 -0400
committervrvarma <vikas.varma@att.com>2020-03-20 00:17:24 -0400
commit6f3312c6576eefdbac120214b1adc0f150b72d98 (patch)
treeccd11c7e51b6c1c61828b39c957f3bc712fbed46 /test/functest/simulators/oof_dependencies_simulators.py
parentd39860b859417c1a7773f39ad8db311848ec0676 (diff)
fix csit, cleanup dockerfile for osdf
Change-Id: Ie3d44592a382ba8e886c2a7544520cbed6971f84 Signed-off-by: vrvarma <vikas.varma@att.com> Issue-ID: OPTFRA-722
Diffstat (limited to 'test/functest/simulators/oof_dependencies_simulators.py')
-rw-r--r--test/functest/simulators/oof_dependencies_simulators.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functest/simulators/oof_dependencies_simulators.py b/test/functest/simulators/oof_dependencies_simulators.py
index 2995861..b0b7b32 100644
--- a/test/functest/simulators/oof_dependencies_simulators.py
+++ b/test/functest/simulators/oof_dependencies_simulators.py
@@ -22,7 +22,8 @@ Simulators for dependencies of OSDF (e.g. HAS-API, Policy, SO-callback, etc.)
import glob
import json
import os
-from flask import Flask, jsonify, request
+
+from flask import Flask, jsonify
from osdf.utils.interfaces import json_from_file
@@ -93,6 +94,14 @@ def get_policies(sub_component):
return jsonify(list_json)
+@app.route("/simulated/policy/pdpx/decision/v1", methods=["POST"])
+def get_pdx_policies():
+ """
+ get the pdpx policy
+ """
+ return jsonify(json_from_file("policy/response-payloads/policy_response.json"))
+
+
@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',