Commit Graph
32 Commits
Author SHA1 Message Date
andrey 975d4741e2 feat: add authenticated HTTP client (Basic/Bearer/Session) over PIHTTPClient
High-level client hiding authentication behind a regular request API.
PIAuthHTTPClient base (base URL, SSL, single-retry on 401) with
PIBasicAuthHTTPClient, PIBearerAuthHTTPClient and PISessionHTTPClient
(login/logout, token store, auto re-login). Adds sendRawRequest so
login/logout never carry a stale token.
2026-10-01 15:55:20 +03:00
andrey 084addbc1b Merge branch 'master' into http_auth 2026-09-30 17:27:51 +03:00
andrey 64a9fc3dae more gtests and fix piauth 2026-09-24 11:49:36 +03:00
andrey e1a24a98f7 fix: accept case-insensitive Basic scheme and guard HTTP test target
- parse the Basic auth-scheme case-insensitively (RFC 7235), matching Bearer
- register the http_server test only when pip_http_server and pip_http_client
  targets exist, so TESTS=ON without the HTTP modules does not fail to link
- add a Basic_LowercaseScheme test
2026-09-23 08:49:04 +03:00
peri4 031c3b9999 more 17 standard 2026-09-15 10:56:04 +03:00
andrey 1adb8b528e Merge branch 'master' into http_auth 2026-09-06 13:54:25 +03:00
andrey 4e1ab26124 Add HTTP Basic Auth and protected server modules
- PIHTTPServerBasicAuth: parse Authorization: Basic header, validate credentials via callback
- PIHTTPServerProtected: wrap any handler with auth check (basic or custom token)
- Integration tests for both modules (12 test cases)
2026-09-05 21:59:42 +03:00
andrey 5bde1603cd test: add PIStateMachine test suite (states, transitions, guards, final/parallel states, timeouts, nested posts) 2026-08-31 21:47:29 +03:00
andrey 69b22bf95a feat: complete PIP_HAS_* feature guards in code and auto-generate flag summary
Guard PIConnection, thread primitives, PICodeParser and other feature
code behind PIP_HAS_THREADS/PIP_HAS_FILESYSTEM. In CMake generate the
feature flags summary from the single PIP_HAS_FLAGS list (used by the
add_definitions loop as well), default ICU to OFF and make introspection
also require PIP_HAS_SOCKET. Build system/thread test suites only when
the corresponding feature flags are enabled.
2026-08-25 11:14:25 +03:00
andrey 5fe03eaf96 fix ctest 2026-08-11 14:41:25 +03:00
andrey 399ae3a20c fix ctest 2026-08-11 14:40:51 +03:00
andrey edb7189013 disable gmock build and remove obsolete tests 2026-03-21 13:31:29 +03:00
andrey 99c99c39c2 separate cmake opts for tests 2026-03-18 13:39:01 +03:00
andrey 8ccc05ee78 simplify piprotectedvariable 2026-03-17 17:33:27 +03:00
andrey da30ae558f add process tests 2025-08-13 14:09:18 +03:00
andrey 64e142b8c6 fix warning tmpnam 2025-08-13 11:17:31 +03:00
andrey.bychkov 3255199b3f Unit tests for PIClientServer 2024-09-16 19:54:44 +03:00
peri4 0f19719a98 fix CMake policy check 2023-04-23 23:15:55 +03:00
andrey 650dadc347 new gtest 2023-03-16 09:34:34 +03:00
Andrey 62e130f91b disconnect test failed 2021-09-30 18:41:01 +03:00
Gama 41cfaefda8 1-10 tests for PIString 2021-01-21 13:20:02 +03:00
zzuummaa 1dc827f16a Fix windows build tests 2021-01-20 16:52:57 +03:00
zzuummaa 493b211886 Configure address and undefined sanitizers & fix delete UB 2021-01-12 13:53:32 +03:00
andrey 334efaefbe code clean 2020-10-02 15:04:15 +03:00
andrey 2ba05c81b1 disable pistring tests 2020-09-25 13:03:56 +03:00
maakshishov f9c1dbc661 bugzz 2020-09-15 15:39:17 +03:00
Федоренко Дмитрий Витальевич 88a147e0a1 string tests 2020-09-10 18:27:58 +03:00
Шишов Максим Денисович 2913fc284b Merge with pip 3 2020-09-01 12:54:02 +03:00
peri4 9cd108cf20 tests binary dir fix 2020-08-03 11:10:27 +03:00
peri4 22208fbf51 tests binary dir fix 2020-08-03 11:10:05 +03:00
peri4 c7ac4fa551 Refactored CMakeLists.txt
* new pip_module() macro
 * fixed exports
 * automatic gather all exports and pass them to Doxygen and PICodeParser
2020-08-01 21:29:32 +03:00
peri4 21111b3e67 move tests to separate dir
create macro "pip_test()" for easily add new tests
2020-07-31 15:47:08 +03:00