diff options
| -rw-r--r-- | tests/cunit/enumeration.c | 56 | ||||
| -rw-r--r-- | tests/cunit/transfer_get.c | 14 |
2 files changed, 70 insertions, 0 deletions
diff --git a/tests/cunit/enumeration.c b/tests/cunit/enumeration.c index 599c1ab..ed9bf80 100644 --- a/tests/cunit/enumeration.c +++ b/tests/cunit/enumeration.c @@ -70,6 +70,62 @@ static TestData tests[] = { 0 }, { + "Enumeration with non existent Resource URI. (Optimized)", + "http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_InitdService", + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + 200, + FLAG_ENUMERATION_OPTIMIZATION, + 200 + }, + { + "Enumeration with non existent Resource URI. (Optimized/EPR/Count)", + "http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_InitdService", + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + 200, + FLAG_ENUMERATION_OPTIMIZATION | FLAG_ENUMERATION_ENUM_EPR | FLAG_ENUMERATION_COUNT_ESTIMATION , + 200 + }, + { + "Enumeration with non existent Resource URI. (Optimized/EPR)", + "http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_InitdService", + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + 200, + FLAG_ENUMERATION_OPTIMIZATION | FLAG_ENUMERATION_ENUM_EPR, + 200 + }, + { + "Enumeration with non existent Resource URI. (Optimized/ObjEPR)", + "http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_InitdService", + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + 200, + FLAG_ENUMERATION_OPTIMIZATION | FLAG_ENUMERATION_ENUM_OBJ_AND_EPR, + 200 + }, + { "Enumeration with valid Resource URI and Items Count Estimation.", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem", NULL, diff --git a/tests/cunit/transfer_get.c b/tests/cunit/transfer_get.c index 66554ca..14ea60b 100644 --- a/tests/cunit/transfer_get.c +++ b/tests/cunit/transfer_get.c @@ -122,6 +122,20 @@ TestData get_tests[] = { 0 }, { + "Transfer Get with all selectors (CIM_OperatingSystem).", + "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_OperatingSystem", + NULL, + "CSCreationClassName=Linux_ComputerSystem&CSName=%s&CreationClassName=Linux_OperatingSystem&Name=%s", + NULL, + NULL, + NULL, + NULL, + NULL, + 500, + 0, + 0 + }, + { "Transfer Get with correct selectors. Check response code", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem", NULL, |
