Fix expected alarm dictionary attribute types 58/14158/1
authorAllain Legacy <alegacy@redhat.com>
Fri, 7 Feb 2025 12:59:52 +0000 (07:59 -0500)
committerAllain Legacy <alegacy@redhat.com>
Tue, 11 Feb 2025 16:46:24 +0000 (11:46 -0500)
The "managementInterfaceId" and "pkNotificationField" are both defined as
arrays of string values.  In the case of the "managementInterfaceId" attribute
the only expected value for O2 is a single array element of "O2IMS".

Issue-ID: INT-163
Change-Id: If48c43cd9b3131e1361cdb58f0c21d2a7d00c2cd
Signed-off-by: Allain Legacy <alegacy@redhat.com>
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.2_SMO_succeeds_to_query_inventory_with_O2ims_APIs_and_correct_token.robot
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourceType_allfields_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourceType_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourceTypes_allfields_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourceTypes_properties.json

index b585b16..9affdfa 100644 (file)
@@ -123,7 +123,7 @@ s5, query Resource Type detail
     log      ${res}   level=DEBUG
     Integer     response status    200
     Object       response body
-    String   $.alarmDictionary.managementInterfaceId    "O2IMS"
+    Array   $.alarmDictionary.managementInterfaceId    ["O2IMS"]
 
 s6, query Resource Pool list without filter
     [documentation]  This test case verifies Query OCloud resourcePools without filter
index 522e8b9..011ecdd 100644 (file)
                     "type": "string"
                 },
                 "managementInterfaceId": {
-                    "type": "string"
+                    "type": "array",
+                    "items": {
+                        "type": "string"
+                    }
                 },
                 "pkNotificationField": {
-                    "type": "string"
+                    "type": "array",
+                    "items": {
+                        "type": "string"
+                    }
                 },
                 "alarmDefinition": {
                     "type": "array",
                                 "type": "string"
                             },
                             "managementInterfaceId": {
-                                "type": "string"
+                                "type": "array",
+                                "items": {
+                                    "type": "string"
+                                }
                             },
                             "pkNotificationField": {
-                                "type": "string"
+                                "type": "array",
+                                "items": {
+                                    "type": "string"
+                                }
                             },
                             "alarmAdditionalFields": {
                                 "type": [
index 7ed366e..ee35b96 100644 (file)
                     "type": "string"
                 },
                 "managementInterfaceId": {
-                    "type": "string"
+                    "type": "array",
+                    "items": {
+                        "type": "string"
+                    }
                 },
                 "pkNotificationField": {
-                    "type": "string"
+                    "type": "array",
+                    "items": {
+                        "type": "string"
+                    }
                 },
                 "alarmDefinition": {
                     "type": "array",
                                 "type": "string"
                             },
                             "managementInterfaceId": {
-                                "type": "string"
+                                "type": "array",
+                                "items": {
+                                    "type": "string"
+                                }
                             },
                             "pkNotificationField": {
-                                "type": "string"
+                                "type": "array",
+                                "items": {
+                                    "type": "string"
+                                }
                             },
                             "alarmAdditionalFields": {
                                 "type": [
index 2d720e6..4d485ff 100644 (file)
                         "type": "string"
                     },
                     "managementInterfaceId": {
-                        "type": "string"
+                        "type": "array",
+                        "items": {
+                            "type": "string"
+                        }
                     },
                     "pkNotificationField": {
-                        "type": "string"
+                        "type": "array",
+                        "items": {
+                            "type": "string"
+                        }
                     },
                     "alarmDefinition": {
                         "type": "array",
                                     "type": "string"
                                 },
                                 "managementInterfaceId": {
-                                    "type": "string"
+                                    "type": "array",
+                                    "items": {
+                                        "type": "string"
+                                    }
                                 },
                                 "pkNotificationField": {
-                                    "type": "string"
+                                    "type": "array",
+                                    "items": {
+                                        "type": "string"
+                                    }
                                 },
                                 "alarmAdditionalFields": {
                                     "type": [
index 966d4ef..424463f 100644 (file)
                         "type": "string"
                     },
                     "managementInterfaceId": {
-                        "type": "string"
+                        "type": "array",
+                        "items": {
+                            "type": "string"
+                        }
                     },
                     "pkNotificationField": {
-                        "type": "string"
+                        "type": "array",
+                        "items": {
+                            "type": "string"
+                        }
                     },
                     "alarmDefinition": {
                         "type": "array",
                                     "type": "string"
                                 },
                                 "managementInterfaceId": {
-                                    "type": "string"
+                                    "type": "array",
+                                    "items": {
+                                        "type": "string"
+                                    }
                                 },
                                 "pkNotificationField": {
-                                    "type": "string"
+                                    "type": "array",
+                                    "items": {
+                                        "type": "string"
+                                    }
                                 },
                                 "alarmAdditionalFields": {
                                     "type": [