[PR #3247] feat: api tests #3145

Open
opened 2026-10-15 04:07:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3247
Author: @MrMirDan
Created: 10/1/2026
Status: 🔄 Open

Base: dev ← Head: feat/api-tests


📝 Commits (10+)

  • c6958d8 added news ui test
  • 4b6f09d fix: typos
  • 80ff2e0 added ui services model and controller api test
  • c107c01 rewrited news test to use gateway and added services test to cmake and workflow
  • b16d603 changed prem_key to amnezia_test_api_key
  • 812ee90 fix: proper object name in services tests
  • 378b30f fix: removed last arg for makeServiceItem
  • 6aefc6b various changes
  • a5cb567 temporary checks
  • 1b47d79 some fixes for news test

📊 Changes

11 files changed (+1625 additions, -141 deletions)

View changed files

📝 .github/workflows/deploy.yml (+28 -1)
📝 client/tests/api/CMakeLists.txt (+71 -10)
➕ client/tests/api/testApiBenefitsModel.cpp (+213 -0)
➕ client/tests/api/testApiCountryListModel.cpp (+165 -0)
➕ client/tests/api/testApiCountryModel.cpp (+190 -0)
➕ client/tests/api/testApiDevicesModel.cpp (+158 -0)
➕ client/tests/api/testSubscriptionUiController.cpp (+108 -0)
➕ client/tests/api/testUiApiAccountInfoModel.cpp (+146 -0)
➖ client/tests/api/testUiApiServicesModelAndController.cpp (+0 -97)
📝 client/tests/api/testUiNewsModelAndController.cpp (+236 -33)
➕ client/tests/api/testUiServicesModelAndController.cpp (+310 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/3247 **Author:** [@MrMirDan](https://github.com/MrMirDan) **Created:** 10/1/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feat/api-tests` --- ### 📝 Commits (10+) - [`c6958d8`](https://github.com/amnezia-vpn/amnezia-client/commit/c6958d8b7037f543dc49da29631d8cbf9037f458) added news ui test - [`4b6f09d`](https://github.com/amnezia-vpn/amnezia-client/commit/4b6f09d55f99cf1ec74c4ded103d57fdce5f9987) fix: typos - [`80ff2e0`](https://github.com/amnezia-vpn/amnezia-client/commit/80ff2e06762d7fd683b0273bad39ba3d313fb56e) added ui services model and controller api test - [`c107c01`](https://github.com/amnezia-vpn/amnezia-client/commit/c107c01cab09f54478fdb6f029ff1baf871fdafe) rewrited news test to use gateway and added services test to cmake and workflow - [`b16d603`](https://github.com/amnezia-vpn/amnezia-client/commit/b16d603435b1eacdf8d7db4bfe9fbbe6edaae91c) changed prem_key to amnezia_test_api_key - [`812ee90`](https://github.com/amnezia-vpn/amnezia-client/commit/812ee905f4b44b9553ae25e30c48906b34d13b5a) fix: proper object name in services tests - [`378b30f`](https://github.com/amnezia-vpn/amnezia-client/commit/378b30f5536b6aee4a9e3c34e1c097c09abffbfb) fix: removed last arg for makeServiceItem - [`6aefc6b`](https://github.com/amnezia-vpn/amnezia-client/commit/6aefc6be475d005d7ef13f8ad9eeeed2416c88ef) various changes - [`a5cb567`](https://github.com/amnezia-vpn/amnezia-client/commit/a5cb5679ae96f3bb8d3ec1f801d51750afebaeb0) temporary checks - [`1b47d79`](https://github.com/amnezia-vpn/amnezia-client/commit/1b47d79f26c836663446e143644ed2d503e0d901) some fixes for news test ### 📊 Changes **11 files changed** (+1625 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/deploy.yml` (+28 -1) 📝 `client/tests/api/CMakeLists.txt` (+71 -10) ➕ `client/tests/api/testApiBenefitsModel.cpp` (+213 -0) ➕ `client/tests/api/testApiCountryListModel.cpp` (+165 -0) ➕ `client/tests/api/testApiCountryModel.cpp` (+190 -0) ➕ `client/tests/api/testApiDevicesModel.cpp` (+158 -0) ➕ `client/tests/api/testSubscriptionUiController.cpp` (+108 -0) ➕ `client/tests/api/testUiApiAccountInfoModel.cpp` (+146 -0) ➖ `client/tests/api/testUiApiServicesModelAndController.cpp` (+0 -97) 📝 `client/tests/api/testUiNewsModelAndController.cpp` (+236 -33) ➕ `client/tests/api/testUiServicesModelAndController.cpp` (+310 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3145
No description provided.