Skip to content

Commit

Permalink
moved test class definition into test file
Browse files Browse the repository at this point in the history
  • Loading branch information
nedvedba committed Nov 11, 2024
1 parent 9acb26c commit e03e512
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 44 deletions.
43 changes: 0 additions & 43 deletions core/server/TestGlobusAPI.hpp

This file was deleted.

27 changes: 26 additions & 1 deletion core/server/tests/unit/test_GlobusAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,44 @@

#define BOOST_TEST_MODULE globusapi

// Local includes
// Local private includes
#include "GlobusAPI.hpp"

// Local public includes
#include "common/DynaLog.hpp"
#include "common/libjson.hpp"

// Third party includes
#include <curl/curl.h>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem.hpp>
#include <boost/test/unit_test.hpp>

// Standard includes
#include <string>
#include <vector>
#include <map>
#include <memory>

using namespace SDMS::Core;

class TestGlobusAPI: public GlobusAPI {
public:
TestGlobusAPI();
explicit TestGlobusAPI(LogContext log_context);

~TestGlobusAPI();

long get(CURL *a_curl, const std::string &a_base_url,
const std::string &a_url_path, const std::string &a_token,
const std::vector<std::pair<std::string, std::string>> &a_params,
std::string &a_result);
long post(CURL *a_curl, const std::string &a_base_url,
const std::string &a_url_path, const std::string &a_token,
const std::vector<std::pair<std::string, std::string>> &a_params,
const libjson::Value *a_body, std::string &a_result);
};

BOOST_AUTO_TEST_SUITE(GlobusAPITest)

BOOST_AUTO_TEST_CASE(testing_GlobusAPIPost) {
Expand Down

0 comments on commit e03e512

Please sign in to comment.