summaryrefslogtreecommitdiff
path: root/test/ctls_test.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-06-10 20:27:06 +0200
committerLinus Nordberg <linus@nordberg.se>2014-06-10 20:27:06 +0200
commitf473802d5ebe9192c635c477d053523b2baaa3a3 (patch)
tree93715c463006a28fddcd2dd55fb49abae9169e71 /test/ctls_test.erl
parenta59474f202b8115a8bff58101b1b9847551764ce (diff)
Change ctls -> catlfish.
Diffstat (limited to 'test/ctls_test.erl')
-rw-r--r--test/ctls_test.erl33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/ctls_test.erl b/test/ctls_test.erl
deleted file mode 100644
index bd477de..0000000
--- a/test/ctls_test.erl
+++ /dev/null
@@ -1,33 +0,0 @@
--module(ctls_test).
--include_lib("eunit/include/eunit.hrl").
-
-%% Requires that ctls 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}.