diff options
author | Anas Nashif <nashif@intel.com> | 2007-05-16 23:15:19 +0000 |
---|---|---|
committer | Anas Nashif <nashif@intel.com> | 2007-05-16 23:15:19 +0000 |
commit | 6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230 (patch) | |
tree | 1480431c3f233ae4bf2af5a4bce44c7ff9158f9f /tests/cunit/enumeration.c | |
parent | 30a0e40701704a4388bea110acd0836df3716036 (diff) | |
download | wsmancli-6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230.tar.gz wsmancli-6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230.tar.xz wsmancli-6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230.zip |
api changes
Diffstat (limited to 'tests/cunit/enumeration.c')
-rw-r--r-- | tests/cunit/enumeration.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/cunit/enumeration.c b/tests/cunit/enumeration.c index 8d7a6b3..d689dcd 100644 --- a/tests/cunit/enumeration.c +++ b/tests/cunit/enumeration.c @@ -253,7 +253,7 @@ static int ntests = sizeof (tests) / sizeof (tests[0]); extern WsManClient *cl; -actionOptions *options; +client_opt_t *options; @@ -264,8 +264,8 @@ static void enumeration_test() { char *selectors = NULL; - reinit_client_connection(cl); - options = initialize_action_options(); + wsman_client_reinit_conn(cl); + options = wsman_client_options_init(); options->flags = tests[i].flags; @@ -276,7 +276,7 @@ static void enumeration_test() { } options->max_elements = tests[i].max_elements; - WsXmlDocH enum_response = wsenum_enumerate(cl, + WsXmlDocH enum_response = wsman_client_action_enumerate(cl, (char *)tests[i].resource_uri, options); CU_ASSERT_TRUE(wsman_client_get_response_code(cl) == tests[i].final_status); @@ -289,7 +289,7 @@ static void enumeration_test() { } CU_ASSERT_PTR_NOT_NULL(enum_response); if (enum_response) { - enumContext = wsenum_get_enum_context(enum_response); + enumContext = wsman_client_get_enum_context(enum_response); } else { goto RETURN; } @@ -305,7 +305,7 @@ static void enumeration_test() { RETURN: u_free(selectors); if (enumContext) { - wsenum_release(cl, + wsman_client_action_release(cl, (char *)tests[i].resource_uri, options, enumContext); @@ -313,7 +313,7 @@ RETURN: if (enum_response) { ws_xml_destroy_doc(enum_response); } - destroy_action_options(options); + wsman_client_options_destroy(options); i++; // decrease executed test number } |