Uploaded image for project: 'Non Realtime RAN Intelligent Controller '
  1. Non Realtime RAN Intelligent Controller
  2. NONRTRIC-1002

Test FTC100 fails since A1-SIM update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None

      When FTC100 is run with OSC-profile A1-SIM in recent version (e.g. 'test_env-onap-london.sh'), test fails.

       

      FTC100.sh line 495-496

       

       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)

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            JohnKeeney John Keeney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: