summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-05-06 14:15:25 +0200
committerLinus Nordberg <linus@nordberg.se>2015-05-06 14:15:49 +0200
commite9881b073fc771a5969f19530794803f3692d55a (patch)
treef6aee1c3a1ab29d33302e34a0bd34895b57eca19 /test
parent577ab359ea0a3c1d286b813c2c1f60f793846e7b (diff)
Remove unused file.
Diffstat (limited to 'test')
-rw-r--r--test/catlfish_test.erl36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/catlfish_test.erl b/test/catlfish_test.erl
deleted file mode 100644
index b098cc1..0000000
--- a/test/catlfish_test.erl
+++ /dev/null
@@ -1,36 +0,0 @@
-%%% Copyright (c) 2014, NORDUnet A/S.
-%%% See LICENSE for licensing information.
-
--module(catlfish_test).
--include_lib("eunit/include/eunit.hrl").
-
-%% Requires that catlfish is running (or, at the moment, that v1 has
-%% been installed as an mod_esi module -- use https_server:start()).
-
--define(URL, "https://flimsytest:8080/ct/v1/add_chain").
-
-add_chain_test_() ->
- {setup,
- fun() ->
- Input = "{\"chain\": [\"some test data\"]}",
- {OK, {{_, RC, _}, _, _}} = httpc:request(post, {?URL, [], [], Input}, [], []),
- %% TODO: Verify signature.
- {OK, RC}
- end,
- fun(_) -> ok end,
- fun({OK, RC}) ->
- [?_assertEqual(ok, OK),
- ?_assertEqual(RC, 200)]
- end}.
-
-add_sth_test_() ->
- {setup,
- fun() ->
- {OK, {{_, RC, _}, _, _}} = httpc:request(get, {?URL, []}, [], []),
- {OK, RC}
- end,
- fun(_) -> ok end,
- fun({OK, RC}) ->
- [?_assertEqual(ok, OK),
- ?_assertEqual(RC, 200)]
- end}.