diff options
| author | Anas Nashif <nashif@intel.com> | 2006-11-24 13:44:07 +0000 |
|---|---|---|
| committer | Anas Nashif <nashif@intel.com> | 2006-11-24 13:44:07 +0000 |
| commit | c8fd4c7dff8fc63f9965f647cb9773fbe92de896 (patch) | |
| tree | 2eb2427f07bdb224d9f6b43ff06cd6aba80e554d /tests/cunit | |
| parent | 96c999a3e5640bd4095bcaf2600c75449855f6ac (diff) | |
| download | wsmancli-c8fd4c7dff8fc63f9965f647cb9773fbe92de896.tar.gz wsmancli-c8fd4c7dff8fc63f9965f647cb9773fbe92de896.tar.xz wsmancli-c8fd4c7dff8fc63f9965f647cb9773fbe92de896.zip | |
added more tests, still need to add xpath expression for testing results
Diffstat (limited to 'tests/cunit')
| -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, |
