1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

use TLS in integration test

This commit is contained in:
Falk Werner
2020-04-01 21:42:50 +02:00
parent c62b6edde2
commit f8a402c3a1
9 changed files with 53 additions and 2 deletions

View File

@@ -19,6 +19,9 @@ public:
: is_shutdown_requested(false)
{
config = wfp_client_config_create();
wfp_client_config_set_certpath(config, "client-cert.pem");
wfp_client_config_set_keypath(config, "client-key.pem");
wfp_client_config_set_ca_filepath(config, "server-cert.pem");
fs = wfp_static_filesystem_create(config);
wfp_static_filesystem_add_text(fs, "hello.txt", 0444, "Hello, World");

View File

@@ -63,6 +63,8 @@ public:
wf_server_config_set_mountpoint_factory(config,
&webfuse_test_server_create_mountpoint,
reinterpret_cast<void*>(base_dir));
wf_server_config_set_keypath(config, "server-key.pem");
wf_server_config_set_certpath(config, "server-cert.pem");
server = wf_server_create(config);

View File

@@ -38,7 +38,7 @@ namespace
void SetUp()
{
server = new Server();
provider = new Provider("ws://localhost:8080/");
provider = new Provider("wss://localhost:8080/");
}
void TearDown()