Aktualizr
C++ SOTA Client
Public Member Functions | Public Attributes | List of all members
HttpFakeProv Class Reference

Check that basic device info sent by aktualizr during provisioning matches our expectations. More...

Inheritance diagram for HttpFakeProv:
[legend]
Collaboration diagram for HttpFakeProv:
[legend]

Public Member Functions

 HttpFakeProv (const boost::filesystem::path &test_dir_in, std::string flavor, Config &config_in)
 
HttpResponse post (const std::string &url, const std::string &content_type, const std::string &data) override
 
HttpResponse post (const std::string &url, const Json::Value &data) override
 
HttpResponse handle_event_single (const Json::Value &event)
 
HttpResponse handle_event (const std::string &url, const Json::Value &data) override
 
HttpResponse put (const std::string &url, const Json::Value &data) override
 
- Public Member Functions inherited from HttpFake
 HttpFake (const boost::filesystem::path &test_dir_in, std::string flavor="", const boost::filesystem::path &meta_dir_in="")
 
void setCerts (const std::string &ca, CryptoSource ca_source, const std::string &cert, CryptoSource cert_source, const std::string &pkey, CryptoSource pkey_source) override
 
bool rewrite (std::string &url, const std::string &pattern)
 
HttpResponse get (const std::string &url, int64_t maxsize) override
 
HttpResponse post (const std::string &url, const std::string &content_type, const std::string &data) override
 
HttpResponse post (const std::string &url, const Json::Value &data) override
 
HttpResponse put (const std::string &url, const std::string &content_type, const std::string &data) override
 
HttpResponse put (const std::string &url, const Json::Value &data) override
 
std::future< HttpResponsedownloadAsync (const std::string &url, curl_write_callback write_cb, curl_xferinfo_callback progress_cb, void *userp, curl_off_t from, CurlHandler *easyp) override
 
HttpResponse download (const std::string &url, curl_write_callback write_cb, curl_xferinfo_callback progress_cb, void *userp, curl_off_t from) override
 

Public Attributes

size_t events_seen {0}
 
int devices_count {0}
 
int ecus_count {0}
 
int manifest_count {0}
 
int installed_count {0}
 
int system_info_count {0}
 
int network_count {0}
 
int config_count {0}
 
Json::Value custom_hw_info
 
- Public Attributes inherited from HttpFake
const std::string tls_server = "https://tlsserver.com"
 
Json::Value last_manifest
 

Additional Inherited Members

- Static Public Attributes inherited from HttpInterface
static constexpr int64_t kNoLimit = 0
 
static constexpr int64_t kPostRespLimit = 64 * 1024
 
static constexpr int64_t kPutRespLimit = 64 * 1024
 
- Protected Attributes inherited from HttpFake
boost::filesystem::path test_dir
 
std::string flavor_
 
boost::filesystem::path meta_dir
 
TemporaryDirectory temp_meta_dir
 

Detailed Description

Check that basic device info sent by aktualizr during provisioning matches our expectations.

Ideally, we would compare what we have with what the server reports, but in lieu of that, we can check what we send via http.

Definition at line 728 of file uptane_test.cc.


The documentation for this class was generated from the following file: