Skip to content
Snippets Groups Projects
Verified Commit f7a91d70 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST: enable all tests

parent 0a708961
No related branches found
No related tags found
No related merge requests found
Pipeline #9650 passed
Pipeline: caosdb-cppinttest

#9652

    ......@@ -26,9 +26,7 @@
    #include <fstream>
    #include <string>
    #include <cstdlib>
    /*
    #include <boost/beast/core/detail/base64.hpp>
    */
    namespace caosdb::utils {
    ......@@ -70,16 +68,14 @@ inline auto get_env_var(const std::string &key, const std::string &fall_back)
    * @brief Encode string as base64
    */
    inline auto base64_encode(const std::string &plain) -> std::string {
    return std::string("YWRtaW46Y2Fvc2Ri");
    // TODO
    // auto size_plain = plain.size();
    // auto size_encoded = boost::beast::detail::base64::encoded_size(size_plain);
    auto size_plain = plain.size();
    auto size_encoded = boost::beast::detail::base64::encoded_size(size_plain);
    // char encoded[size_encoded];
    // boost::beast::detail::base64::encode(&encoded, plain.c_str(), size_plain);
    char encoded[size_encoded];
    boost::beast::detail::base64::encode(&encoded, plain.c_str(), size_plain);
    //// the encoded char[] is not null terminated, so explicitely set the length
    // return std::string(encoded, encoded + size_encoded);
    // the encoded char[] is not null terminated, so explicitely set the length
    return std::string(encoded, encoded + size_encoded);
    }
    } // namespace caosdb::utils
    ......
    ......@@ -21,7 +21,7 @@
    # append all the test cases here (file name without the ".cpp" suffix)
    set(test_cases
    test_connection
    #test_utils
    test_utils
    )
    # download gtest library
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment