summaryrefslogtreecommitdiffstats
path: root/tests/cunit
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2006-11-21 14:52:28 +0000
committerAnas Nashif <nashif@intel.com>2006-11-21 14:52:28 +0000
commit3dbd8973ae9ec424ddee5abbfb403b71ee3e3809 (patch)
tree9549b37d5eaf44a28f185b805dba319b17621c92 /tests/cunit
parentc6f16681912e977c30a9c5766919ad124087224b (diff)
downloadwsmancli-3dbd8973ae9ec424ddee5abbfb403b71ee3e3809.tar.gz
wsmancli-3dbd8973ae9ec424ddee5abbfb403b71ee3e3809.tar.xz
wsmancli-3dbd8973ae9ec424ddee5abbfb403b71ee3e3809.zip
1 more test
Diffstat (limited to 'tests/cunit')
-rwxr-xr-xtests/cunit/invoke.c28
1 files changed, 10 insertions, 18 deletions
diff --git a/tests/cunit/invoke.c b/tests/cunit/invoke.c
index 0f0abbe..542eded 100755
--- a/tests/cunit/invoke.c
+++ b/tests/cunit/invoke.c
@@ -118,22 +118,22 @@ TestData invoke_tests[] = {
200,
0,
0
- } /*,
+ } ,
{
- "Custom Method with wrong selectors.",
- "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem",
+ "Custom Method with parameters .",
+ "http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_SystemTimeService",
+ "ManageSystemTime",
+ "SystemCreationClassName=OMC_UnitaryComputerSystem&SystemName=%s&CreationClassName=OMC_SystemTimeService&Name=timeservice",
+ "GetRequest=TRUE",
+ "/s:Envelope/s:Body/n1:ManageSystemTime_OUTPUT/ReturnValue",
+ "0",
NULL,
- "CreationClassName=OpenWBEM_UnitaryComputerSystem&Namex=%s",
NULL,
- "/s:Envelope/s:Body/s:Fault/s:Code/s:Subcode/s:Value",
- "wsman:InvalidSelectors",
- "/s:Envelope/s:Body/s:Fault/s:Detail/wsman:FaultDetail",
- "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/UnexpectedSelectors",
- 500,
+ 200,
0,
0
- },
+ } /*,
{
"Custom Method with all selectors but with wrong values.",
@@ -230,11 +230,6 @@ static void invoke_test() {
}
CU_ASSERT_STRING_EQUAL(xpf, invoke_tests[i].value1);
- if (strcmp(xpf, invoke_tests[i].value1)) {
- //printf("Expected %s; returned %s\n",
- // invoke_tests[i].value1, xpf);
- goto RETURN;
- }
if (invoke_tests[i].expr2 == NULL) {
goto RETURN;
}
@@ -248,9 +243,6 @@ static void invoke_test() {
goto RETURN;
}
CU_ASSERT_STRING_EQUAL(xpd, invoke_tests[i].value2 );
- if (strcmp(xpd, invoke_tests[i].value2)) {
- goto RETURN;
- }
RETURN:
u_free(xpf);
u_free(xpd);