|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Web server requiring authentication, with the credentials held by the password manager rather than being part of the requested url. More...
Protected Member Functions | |
| void | SetUp () override |
| void | TearDown () override |
Protected Member Functions inherited from TestWebServer | |
| TestWebServer () | |
| ~TestWebServer () override=default | |
| void | SetUp () override |
| void | TearDown () override |
| void | SetupMediaSources () |
| void | TearDownMediaSources () |
| std::string | GetUrl (const std::string &path) |
| std::string | GetUrlOfTestFile (const std::string &testFile) |
| bool | GetLastModifiedOfTestFile (const std::string &testFile, CDateTime &lastModified) |
| void | CheckHtmlTestFileResponse (const CCurlFile &curl) |
| void | CheckRangesTestFileResponse (const CCurlFile &curl, int httpStatus=MHD_HTTP_OK, bool empty=false) |
| void | CheckRangesTestFileResponse (const CCurlFile &curl, const std::string &result, const CHttpRanges &ranges) |
| std::string | GenerateRangeHeaderValue (unsigned int start, unsigned int end) |
Static Protected Member Functions | |
| static void | SetUpTestSuite () |
| static void | TearDownTestSuite () |
Static Protected Member Functions inherited from TestWebServer | |
| static void | StartSuiteServer (std::string_view username, std::string_view password) |
| static void | StopSuiteServer () |
| static void | SetUpTestSuite () |
| static void | TearDownTestSuite () |
Static Protected Attributes | |
| static constexpr std::string_view | SERVER_USERNAME {"kodi"} |
| static constexpr std::string_view | SERVER_PASSWORD {"secret"} |
Static Protected Attributes inherited from TestWebServer | |
| static constexpr std::string_view | SERVER_USERNAME {""} |
| static constexpr std::string_view | SERVER_PASSWORD {""} |
| static std::unique_ptr< CWebServer > | s_webserver |
| static std::unique_ptr< CHTTPJsonRpcHandler > | s_jsonRpcHandler |
| static std::unique_ptr< CHTTPVfsHandler > | s_vfsHandler |
| static std::string | s_baseUrl |
Additional Inherited Members | |
Protected Attributes inherited from TestWebServer | |
| std::string | sourcePath |
Web server requiring authentication, with the credentials held by the password manager rather than being part of the requested url.
This is what adding a source with a username/password gives us: sources.xml holds the plain url and passwords.xml holds the credentials, so every request has to pick them up from CPasswordManager. Anything talking to the server directly instead of going through CFile has to apply them itself, which is what these tests cover.
|
inlineoverrideprotected |
|
inlinestaticprotected |
|
inlineoverrideprotected |
|
inlinestaticprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |