summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2006-11-27 22:26:16 +0000
committerAnas Nashif <nashif@intel.com>2006-11-27 22:26:16 +0000
commit229cdcefcb6bc29052fc4cd839d9df5454843bac (patch)
treef8f5536f7c48989620983530c356b8266a153201 /tests
parentd10d23342f664a60482502948197f683f359c4af (diff)
downloadwsmancli-229cdcefcb6bc29052fc4cd839d9df5454843bac.tar.gz
wsmancli-229cdcefcb6bc29052fc4cd839d9df5454843bac.tar.xz
wsmancli-229cdcefcb6bc29052fc4cd839d9df5454843bac.zip
release context
fixed test cases
Diffstat (limited to 'tests')
-rw-r--r--tests/cunit/enumeration.c8
-rw-r--r--tests/cunit/run_tests.c2
-rw-r--r--tests/cunit/transfer_get.c4
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 <stdio.h>
#include <stdlib.h>
@@ -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
},