aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap/test/eldap_misc_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-12-19 10:09:38 +0100
committerHans Nilsson <[email protected]>2014-12-19 10:09:38 +0100
commit49cf869191975c59cdc41a3fa2658bc852f6475f (patch)
tree868b85b6950154d6b7bf22b27bc89a49a03479c6 /lib/eldap/test/eldap_misc_SUITE.erl
parent7cf95c33a50a705c38226bccd0caa76a96f92ea5 (diff)
parent4b59b6993b74d99de9af5e64d23237d3de90b571 (diff)
downloadotp-49cf869191975c59cdc41a3fa2658bc852f6475f.tar.gz
otp-49cf869191975c59cdc41a3fa2658bc852f6475f.tar.bz2
otp-49cf869191975c59cdc41a3fa2658bc852f6475f.zip
Merge branch 'hans/eldap/test_improvents/OTP-12355' into maint
* hans/eldap/test_improvents/OTP-12355: eldap: Corrects SSL over IPv6 test. eldap: Removes eldap_misc_SUITE that is now included in eldap_basic_SUITE. eldap: Add encode/decode tests. eldap: Merge eldap_connections_SUITE into eldab_basic_SUITE eldap: Adds ssl to connections test suite eldap: Updates basic test suite - Splits one large testcase into smaller ones. - Makes tests independent - Adds some tests.
Diffstat (limited to 'lib/eldap/test/eldap_misc_SUITE.erl')
-rw-r--r--lib/eldap/test/eldap_misc_SUITE.erl51
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/eldap/test/eldap_misc_SUITE.erl b/lib/eldap/test/eldap_misc_SUITE.erl
deleted file mode 100644
index ca810ee33c..0000000000
--- a/lib/eldap/test/eldap_misc_SUITE.erl
+++ /dev/null
@@ -1,51 +0,0 @@
-%%
-%% %CopyrightBegin%
-%%
-%% Copyright Ericsson AB 2012-2014. All Rights Reserved.
-%%
-%% The contents of this file are subject to the Erlang Public License,
-%% Version 1.1, (the "License"); you may not use this file except in
-%% compliance with the License. You should have received a copy of the
-%% Erlang Public License along with this software. If not, it can be
-%% retrieved online at http://www.erlang.org/.
-%%
-%% Software distributed under the License is distributed on an "AS IS"
-%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
-%% the License for the specific language governing rights and limitations
-%% under the License.
-%%
-%% %CopyrightEnd%
-%%
-
--module(eldap_misc_SUITE).
-
--compile(export_all). %% Use this only in test suites...
-
--include_lib("common_test/include/ct.hrl").
--include_lib("eldap/include/eldap.hrl").
--include_lib("eldap/ebin/ELDAPv3.hrl").
-
-all() ->
- [
- encode,
- decode
- ].
-
-
-encode(_Config) ->
- {ok,Bin} = 'ELDAPv3':encode('AddRequest', #'AddRequest'{entry="hejHopp" ,attributes=[]} ),
- Expected = <<104,11,4,7,104,101,106,72,111,112,112,48,0>>,
- Expected = Bin.
-
-decode(_Config) ->
- {ok,Res} = 'ELDAPv3':decode('AddRequest', <<104,11,4,7,104,101,106,72,111,112,112,48,0>>),
- ct:log("Res = ~p", [Res]),
- Expected = #'AddRequest'{entry = "hejHopp",attributes = []},
- case Res of
- Expected -> ok;
- #'AddRequest'{entry= <<"hejHopp">>, attributes=[]} ->
- {fail, "decoded to (correct) binary!!"};
- _ ->
- {fail, "Bad decode"}
- end.
-