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:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace
|
||||
void SetUp()
|
||||
{
|
||||
server = new Server();
|
||||
provider = new Provider("ws://localhost:8080/");
|
||||
provider = new Provider("wss://localhost:8080/");
|
||||
}
|
||||
|
||||
void TearDown()
|
||||
|
||||
Reference in New Issue
Block a user