-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
NONRTRIC Rel-J PreRelease Spnt
When FTC100 is run with OSC-profile A1-SIM in recent version (e.g. 'test_env-onap-london.sh'), test fails.
495 VAL='NOT IN EFFECT' 496 a1pms_api_get_policy_status 200 5000 OSC "$VAL" "false"
Error in test output log (TC.log):
FAIL, "returned body not correct"
RicSim log: (e.g. HTTP_REST_ricsim_g1-1.log)
Reguest:
.... Host: ricsim-g1-1
Response
Resp Body: b'{"enforceStatus": "NOT_ENFORCED", "enforceReason": "OTHER_REASON"}'
Call:
GET /a1-p/policytypes/1/policies/xxxxxxx5000/status HTTP/1.0" 200 -
Caused by change:
https://gerrit.o-ran-sc.org/r/r/c/sim/a1-interface/+/11547
near-rt-ric-simulator/src/OSC_2.1.0/controllers/a1_mediator_controller.py #268
- ps={} - ps["instance_status"] = "NOT IN EFFECT" - ps["has_been_deleted"] = "false" - ps["created_at"] = str(datetime.now().strftime("%m/%d/%Y, %H:%M:%S")) - policy_status[policy_instance_id]=ps + enforceStatus = EnforceStatus("NOT_ENFORCED", "OTHER_REASON") + policy_status[policy_instance_id] = enforceStatus.to_dict()
Fix:
String cannot be replaced in FTC100.sh, since this is used for all versions.
String must be externalised (with a default - the older value?), then set-able, e.g. in env file. (montreal, i-release, j-release, etc)