aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-04-02 13:44:13 +0200
committerSiri Hansen <[email protected]>2014-04-02 13:44:13 +0200
commit5def902915e6cd583ee52a06826fa85c770c0c48 (patch)
tree0882f063d2f42c6333e73daee0ea7b3612e3a0c7 /lib
parentdb2cf44ebc8f57d986eca2a1cc8b5ee19a6cc3de (diff)
parent1497614fe6cf403b54eeb07df25e18a0f22dfd5e (diff)
downloadotp-5def902915e6cd583ee52a06826fa85c770c0c48.tar.gz
otp-5def902915e6cd583ee52a06826fa85c770c0c48.tar.bz2
otp-5def902915e6cd583ee52a06826fa85c770c0c48.zip
Merge branch 'siri/ct_netconfc-spec/OTP-11834'
* siri/ct_netconfc-spec/OTP-11834: Fix specs for return values in ct_netconfc
Diffstat (limited to 'lib')
-rw-r--r--lib/common_test/src/ct_netconfc.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/common_test/src/ct_netconfc.erl b/lib/common_test/src/ct_netconfc.erl
index 6fc840745d..a3861dc745 100644
--- a/lib/common_test/src/ct_netconfc.erl
+++ b/lib/common_test/src/ct_netconfc.erl
@@ -536,7 +536,7 @@ send(Client, SimpleXml) ->
Client :: client(),
SimpleXml :: simple_xml(),
Timeout :: timeout(),
- Result :: ok | {error,error_reason()}.
+ Result :: simple_xml() | {error,error_reason()}.
%% @doc Send an XML document to the server.
%%
%% The given XML document is sent as is to the server. This function
@@ -556,7 +556,7 @@ send_rpc(Client, SimpleXml) ->
Client :: client(),
SimpleXml :: simple_xml(),
Timeout :: timeout(),
- Result :: ok | {error,error_reason()}.
+ Result :: [simple_xml()] | {error,error_reason()}.
%% @doc Send a Netconf <code>rpc</code> request to the server.
%%
%% The given XML document is wrapped in a valid Netconf
@@ -635,7 +635,7 @@ get(Client, Filter) ->
Client :: client(),
Filter :: simple_xml() | xpath(),
Timeout :: timeout(),
- Result :: {ok,simple_xml()} | {error,error_reason()}.
+ Result :: {ok,[simple_xml()]} | {error,error_reason()}.
%% @doc Get data.
%%
%% This operation returns both configuration and state data from the
@@ -661,7 +661,7 @@ get_config(Client, Source, Filter) ->
Source :: netconf_db(),
Filter :: simple_xml() | xpath(),
Timeout :: timeout(),
- Result :: {ok,simple_xml()} | {error,error_reason()}.
+ Result :: {ok,[simple_xml()]} | {error,error_reason()}.
%% @doc Get configuration data.
%%
%% To be able to access another source than `running', the server
@@ -759,7 +759,7 @@ action(Client,Action) ->
Client :: client(),
Action :: simple_xml(),
Timeout :: timeout(),
- Result :: {ok,simple_xml()} | {error,error_reason()}.
+ Result :: {ok,[simple_xml()]} | {error,error_reason()}.
%% @doc Execute an action.
%%
%% @end