From c8fd4c7dff8fc63f9965f647cb9773fbe92de896 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 24 Nov 2006 13:44:07 +0000 Subject: added more tests, still need to add xpath expression for testing results --- tests/cunit/enumeration.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++ tests/cunit/transfer_get.c | 14 ++++++++++++ 2 files changed, 70 insertions(+) (limited to 'tests/cunit') 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 @@ -69,6 +69,62 @@ static TestData tests[] = { FLAG_NONE, 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", 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 @@ -121,6 +121,20 @@ TestData get_tests[] = { 0, 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", -- cgit