aboutsummaryrefslogtreecommitdiffstats
path: root/test/req_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/req_SUITE.erl')
-rw-r--r--test/req_SUITE.erl12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/req_SUITE.erl b/test/req_SUITE.erl
index a393c08..7ed1fff 100644
--- a/test/req_SUITE.erl
+++ b/test/req_SUITE.erl
@@ -184,22 +184,16 @@ cert(Config) ->
ssl -> do_cert(Config)
end.
-do_cert(Config0) ->
+do_cert(Config) ->
doc("A client TLS certificate was provided."),
- {CaCert, Cert, Key} = ct_helper:make_certs(),
- Config = [{tls_opts, [
- {cert, Cert},
- {key, Key},
- {cacerts, [CaCert]}
- ]}|Config0],
Cert = do_get_body("/cert", Config),
Cert = do_get_body("/direct/cert", Config),
ok.
cert_undefined(Config) ->
doc("No client TLS certificate was provided."),
- <<"undefined">> = do_get_body("/cert", Config),
- <<"undefined">> = do_get_body("/direct/cert", Config),
+ <<"undefined">> = do_get_body("/cert", [{no_cert, true}|Config]),
+ <<"undefined">> = do_get_body("/direct/cert", [{no_cert, true}|Config]),
ok.
header(Config) ->