Test fixes
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / sdnc / sdnc.py
index 48de22c..c442c63 100644 (file)
@@ -51,7 +51,7 @@ class OranSdnc(SdncElement):
     @classmethod
     def get_odu_oru_status(cls,
                            odu_node,
-                           oru_node,
+                           radio_unit,
                            basic_auth: Dict[str, str]) -> dict:
         """
         Get status of SDNC component.
@@ -63,11 +63,9 @@ class OranSdnc(SdncElement):
            the status of the SDNC component
 
         """
-        url = f"{cls.base_url}/rests/data/network-topology:network-topology/"\
-              + f"topology=topology-netconf/node={odu_node}/yang-ext:mount/"\
-              + f"o-ran-sc-du-hello-world:network-function/du-to-ru-connection={oru_node}"
+        url = f"{cls.base_url}/rests/data/network-topology:network-topology/topology=topology-netconf/node={odu_node}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/distributed-unit-functions={odu_node}/radio-resource-management-policy-ratio={radio_unit}"
         status = cls.send_message_json('GET',
-                                       'Get status of Odu Oru connectivity',
+                                       'Get status of Odu connectivity',
                                        url,
                                        basic_auth=basic_auth)
         return status
@@ -96,4 +94,4 @@ class OranSdnc(SdncElement):
 
         """
         url = f"{cls.base_url}/rests/operations/data-provider:read-faultlog-list"
-        return cls.send_message('POST', 'Get SDNC events', url, data='{"input": {"filter": [ {"property": "node-id", "filtervalue": "' + device + '"}],"sortorder": [{"property": "timestamp","sortorder": "descending"}],"pagination": {"size": 10,"page": 1}}}', basic_auth=basic_auth)
+        return cls.send_message('POST', 'Get SDNC events', url, data='{"input": {"filter": [ {"property": "node-id", "filtervalue": " ' + device + ' "}],"sortorder":[{"property": "timestamp","sortorder": "descending"}],"pagination": {"size": 10,"page": 1}}}', headers=cls.header, basic_auth=basic_auth)