From 229cdcefcb6bc29052fc4cd839d9df5454843bac Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 27 Nov 2006 22:26:16 +0000 Subject: release context fixed test cases --- tests/cunit/enumeration.c | 8 +++++++- tests/cunit/run_tests.c | 2 +- tests/cunit/transfer_get.c | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/cunit/enumeration.c b/tests/cunit/enumeration.c index a8cba40..d2e0236 100644 --- a/tests/cunit/enumeration.c +++ b/tests/cunit/enumeration.c @@ -32,7 +32,7 @@ * @author Anas Nashif * @author Nathan Rakoff */ -#include "wsman_config.h" + #include #include @@ -226,10 +226,16 @@ static void enumeration_test() { options.max_elements = tests[i].max_elements; WsXmlDocH enum_response = wsenum_enumerate(cl, (char *)tests[i].resource_uri, options); + CU_ASSERT_TRUE(wsman_get_client_response_code(cl) == tests[i].final_status ); CU_ASSERT_PTR_NOT_NULL(enum_response); if (enum_response) { enumContext = wsenum_get_enum_context(enum_response); + if (enumContext) + wsenum_release(cl, + (char *)tests[i].resource_uri, + enumContext, + options); } else { goto RETURN; } diff --git a/tests/cunit/run_tests.c b/tests/cunit/run_tests.c index ed0e52b..dd2a1cc 100644 --- a/tests/cunit/run_tests.c +++ b/tests/cunit/run_tests.c @@ -38,7 +38,7 @@ #define FALSE 0 int verbose = 0; -char *host = "langley.home.planux.com"; +char *host = "vpro.home.planux.com"; static CU_pSuite diff --git a/tests/cunit/transfer_get.c b/tests/cunit/transfer_get.c index 14ea60b..3439925 100644 --- a/tests/cunit/transfer_get.c +++ b/tests/cunit/transfer_get.c @@ -125,13 +125,13 @@ TestData get_tests[] = { "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", + "CSCreationClassName=OMC_UnitaryComputerSystem&CSName=%s&CreationClassName=OMC_OperatingSystem&Name=Linux", NULL, NULL, NULL, NULL, NULL, - 500, + 200, 0, 0 }, -- cgit