summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2007-05-16 23:37:32 +0000
committerAnas Nashif <nashif@intel.com>2007-05-16 23:37:32 +0000
commit16803fdddfa698aa7586245d8a48ef25f480635a (patch)
treebff0e93234fc949d6cfdb95df998f55b13170fe6 /tests
parent6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230 (diff)
downloadwsmancli-16803fdddfa698aa7586245d8a48ef25f480635a.tar.gz
wsmancli-16803fdddfa698aa7586245d8a48ef25f480635a.tar.xz
wsmancli-16803fdddfa698aa7586245d8a48ef25f480635a.zip
more API changes
Diffstat (limited to 'tests')
-rw-r--r--tests/cunit/enumeration.c2
-rwxr-xr-xtests/cunit/invoke.c4
-rw-r--r--tests/cunit/pull.c2
-rw-r--r--tests/cunit/transfer_get.c2
-rwxr-xr-xtests/cunit/transfer_put.c4
-rw-r--r--tests/interop/interop.c8
6 files changed, 11 insertions, 11 deletions
diff --git a/tests/cunit/enumeration.c b/tests/cunit/enumeration.c
index d689dcd..b0a04c5 100644
--- a/tests/cunit/enumeration.c
+++ b/tests/cunit/enumeration.c
@@ -272,7 +272,7 @@ static void enumeration_test() {
if (tests[i].selectors) {
selectors =
u_strdup_printf(tests[i].selectors, host, host, host);
- wsman_add_selectors_from_query_string(options, selectors);
+ wsman_client_add_selectors_from_str(options, selectors);
}
options->max_elements = tests[i].max_elements;
diff --git a/tests/cunit/invoke.c b/tests/cunit/invoke.c
index 78e13a6..60650f5 100755
--- a/tests/cunit/invoke.c
+++ b/tests/cunit/invoke.c
@@ -200,10 +200,10 @@ static void invoke_test() {
wsman_client_reinit_conn(cl);
if (selectors != NULL) {
- wsman_add_selectors_from_query_string (options, selectors);
+ wsman_client_add_selectors_from_str (options, selectors);
}
if (invoke_tests[i].properties != NULL) {
- wsman_add_properties_from_query_string (options,
+ wsman_client_add_prop_from_str (options,
invoke_tests[i].properties);
}
options->flags = invoke_tests[i].flags;
diff --git a/tests/cunit/pull.c b/tests/cunit/pull.c
index 71dcb54..6fdd13d 100644
--- a/tests/cunit/pull.c
+++ b/tests/cunit/pull.c
@@ -165,7 +165,7 @@ static void pull_test() {
options->flags = pull_tests[i].flags;
if (pull_tests[i].selectors != NULL)
- wsman_add_selectors_from_query_string(options, pull_tests[i].selectors);
+ wsman_client_add_selectors_from_str(options, pull_tests[i].selectors);
options->max_elements = pull_tests[i].max_elements;
WsXmlDocH enum_response = wsman_client_action_enumerate(cl,
diff --git a/tests/cunit/transfer_get.c b/tests/cunit/transfer_get.c
index 5a17e3e..539452c 100644
--- a/tests/cunit/transfer_get.c
+++ b/tests/cunit/transfer_get.c
@@ -175,7 +175,7 @@ static void transfer_get_test() {
options = wsman_client_options_init();
if (get_tests[i].selectors != NULL) {
- wsman_add_selectors_from_query_string (options, get_tests[i].selectors);
+ wsman_client_add_selectors_from_str (options, get_tests[i].selectors);
}
diff --git a/tests/cunit/transfer_put.c b/tests/cunit/transfer_put.c
index 9b25a4c..b7c1714 100755
--- a/tests/cunit/transfer_put.c
+++ b/tests/cunit/transfer_put.c
@@ -184,10 +184,10 @@ static void transfer_put_test() {
options = wsman_client_options_init();
if (put_tests[i].selectors != NULL) {
- wsman_add_selectors_from_query_string (options, selectors);
+ wsman_client_add_selectors_from_str (options, selectors);
}
if (put_tests[i].properties != NULL) {
- wsman_add_properties_from_query_string (options,
+ wsman_client_add_prop_from_str (options,
put_tests[i].properties);
}
options->flags = put_tests[i].flags;
diff --git a/tests/interop/interop.c b/tests/interop/interop.c
index 5bea1b1..b6bba52 100644
--- a/tests/interop/interop.c
+++ b/tests/interop/interop.c
@@ -82,7 +82,7 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i
{
WsXmlDocH response;
client_opt_t *options = wsman_client_options_init();
- wsman_set_action_option(options,FLAG_DUMP_REQUEST );
+ wsman_client_set_action_option(options,FLAG_DUMP_REQUEST );
if (id == 0) { // 6.1 Identify
response = wsman_client_action_identify(cl, options);
xml_parser_doc_dump(stdout, response);
@@ -126,7 +126,7 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i
wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL );
}else if (id == 9) { // 7.2 Optimized Enumerate
- wsman_set_action_option(options, FLAG_ENUMERATION_OPTIMIZATION);
+ wsman_client_set_action_option(options, FLAG_ENUMERATION_OPTIMIZATION);
WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input");
WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI");
char *resource_uri = ws_xml_get_node_text(r);
@@ -150,14 +150,14 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i
}else if (id == 11) { // 7.4 Enumerate ObjectAndEPR
- wsman_set_action_option(options, FLAG_ENUMERATION_ENUM_EPR);
+ wsman_client_set_action_option(options, FLAG_ENUMERATION_ENUM_EPR);
WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input");
WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI");
char *resource_uri = ws_xml_get_node_text(r);
wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL );
}else if (id == 16) { // 7.9 Enumerate Polymorphism
- wsman_set_action_option(options, FLAG_POLYMORPHISM_NONE);
+ wsman_client_set_action_option(options, FLAG_POLYMORPHISM_NONE);
WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input");
WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI");
char *resource_uri = ws_xml_get_node_text(r);