summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2006-11-21 13:44:14 +0000
committerAnas Nashif <nashif@intel.com>2006-11-21 13:44:14 +0000
commit1ec46d3caab802b10cef23705fe5712291fa5e0f (patch)
tree7321b0a36570dcf97e21a2d9267326bf134e6064
parentbb32e264e689cfc25dcb223bcf66e1a401963153 (diff)
downloadwsmancli-1ec46d3caab802b10cef23705fe5712291fa5e0f.tar.gz
wsmancli-1ec46d3caab802b10cef23705fe5712291fa5e0f.tar.xz
wsmancli-1ec46d3caab802b10cef23705fe5712291fa5e0f.zip
more tests
-rwxr-xr-xtests/cunit/transfer_put.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/cunit/transfer_put.c b/tests/cunit/transfer_put.c
index c9f39d9..069db32 100755
--- a/tests/cunit/transfer_put.c
+++ b/tests/cunit/transfer_put.c
@@ -117,12 +117,24 @@ TestData put_tests[] = {
0
},
{
- "Transfer Put with correct selectors and parameters. Check response code",
+ "Transfer Put with correct selectors and parameters check for new value",
"http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_TimeZoneSettingData",
"InstanceID=omc:timezone",
"TimeZone=US/Pacific",
+ "/s:Envelope/s:Body/p:OMC_TimeZoneSettingData/p:TimeZone",
+ "US/Pacific",
NULL,
NULL,
+ 200,
+ FLAG_DUMP_REQUEST,
+ },
+ {
+ "Transfer Put with correct selectors and parameters reset value",
+ "http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_TimeZoneSettingData",
+ "InstanceID=omc:timezone",
+ "TimeZone=US/Eastern",
+ "/s:Envelope/s:Body/p:OMC_TimeZoneSettingData/p:TimeZone",
+ "US/Eastern",
NULL,
NULL,
200,
@@ -159,9 +171,11 @@ static void transfer_put_test() {
if (put_tests[i].properties != NULL) {
wsman_add_properties_from_query_string (&options, put_tests[i].properties);
}
+ options.flags = put_tests[i].flags;
doc = ws_transfer_put(cl, (char *)put_tests[i].resource_uri, options);
+ //ws_xml_dump_node_tree(stdout, ws_xml_get_doc_root(doc));
CU_ASSERT_TRUE(wsman_get_client_response_code(cl) == put_tests[i].final_status);
CU_ASSERT_PTR_NOT_NULL(doc);