Skip to content
Snippets Groups Projects
Verified Commit c6550b8a authored by Daniel Lyubomirov's avatar Daniel Lyubomirov
Browse files

Fix integration tests

parent 22163bdf
No related branches found
No related tags found
1 merge request!98Profile certificates
......@@ -85,8 +85,8 @@ TEST_CASE("C API integration", "[.integration]") {
// std::cout << vereign::test::ProtobufToJson(getDIDsResp) << std::endl;
grpc_shutdown();
google::protobuf::ShutdownProtobufLibrary();
// grpc_shutdown();
// google::protobuf::ShutdownProtobufLibrary();
}
TEST_CASE("vereign_service_start") {
......
......@@ -84,6 +84,6 @@ TEST_CASE("grpc::Server", "[vereign/grpc/server][.integration]") {
// std::cout << vereign::test::ProtobufToJson(getDIDsResp) << std::endl;
grpc_shutdown();
google::protobuf::ShutdownProtobufLibrary();
// grpc_shutdown();
// google::protobuf::ShutdownProtobufLibrary();
}
......@@ -11,7 +11,7 @@
#include <boost/asio/ssl/context.hpp>
#include <fmt/core.h>
TEST_CASE("ClientSession::Post", "[vereign/restapi/client_session][.integration]") {
TEST_CASE("restapi::ClientSession::Post", "[vereign/restapi/client_session][.integration]") {
namespace asio = boost::asio;
namespace beast = boost::beast;
asio::io_context ioc;
......@@ -22,11 +22,9 @@ TEST_CASE("ClientSession::Post", "[vereign/restapi/client_session][.integration]
auto host = vereign::testutil::RequireEnv("TEST_VEREIGN_API_HOST");
auto port = vereign::testutil::GetEnv("TEST_VEREIGN_API_PORT", "https");
// Verify the remote server's certificate
// ctx.set_verify_mode(ssl::verify_peer);
vereign::restapi::Client client{ioc, ctx, host, port};
vereign::restapi::ClientSession client_session{client, publicKey};
vereign::restapi::ClientSession client_session{client};
client_session.SetPubKey(publicKey);
std::thread ioc_thread([&ioc]{
ioc.run();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment