Commit Graph

101 Commits

Author SHA1 Message Date
Pawel Olejniczak
483ac3919a [CP-828] Remove outdated calendar test scripts
These tests were created for old implementation
of calendar application, which no longer exists.
2021-11-25 15:54:32 +01:00
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Marek Niepieklo
a0677af340 [CP-615] Update existing backup/restore implementation in OS
[CP-648] Handle updated API requests

Updated B&R to handle new API
Extended error reporting
Backup/Restore code clean up

[CP-649] Check OS version compatibility during restore
Added check of OS and backup versions
Fixed adding of version.json to PurePhone.img
2021-10-11 16:19:20 +02:00
Marek Niepieklo
22a02078cd [CP-162] Implement Logs directory
Added listing of log/crash dump files
Reorg'ed log/crash dump files locations
Added harness api/device_info
Updated test and tool scripts
2021-09-29 10:37:58 +02:00
Pawel Olejniczak
caffed99b5 [CP-439] Add case color to device info endpoint
Color of Mudita Pure's case can be now read from
device info endpoint.
2021-09-21 19:39:14 +02:00
Jakub Pyszczak
b1f6d67fce [EGD-7505] Developer mode endpoint extended
Developer mode endpoint extender to support
file renaming, removal and listing dirs.
Harness requirements updated.
2021-09-08 15:15:57 +02:00
Pawel Olejniczak
d863c4c609 [CP-47] Extend service desktop API with time based phonelock
Time based phonelock can be now utilised via service desktop.
2021-09-08 11:54:05 +02:00
Artur Śleszyński
92ade4fcea [CP-522] Send SMS via desktop API
Allow the MuditaCenter desktop app to send SMS.
2021-09-06 13:59:31 +02:00
Artur Śleszyński
727cd562db [CP-544] Add phone numbers in thread list response
Replace contact number id with contact number to match the docs.
2021-09-03 08:52:55 +02:00
Piotr Tański
90e7a48198 [EGD-7362] Merge release/0.76.1 into master
Merge release/0.76.1 into master.
2021-09-02 11:12:59 +02:00
Pawel Olejniczak
cdadee24cc [CP-388] Check for duplicates before adding contact
Prevent adding duplicate contact using service desktop API.
2021-08-26 11:56:04 +02:00
GravisZro
e433e8dd03 Fix transparent backgrounds in PlantUML
Images generated using PlantUML had transparent backgrounds which made
their text difficult to read on GitHub when using "Dark Mode". Forcing
a background color of #F0F0F0 ensures they are all readable.
2021-08-16 17:01:19 +02:00
Artur Śleszyński
ec7dcfb31e [CP-46] Extend contact info endpoint
Include email, speed dial, ice and notes.
2021-08-10 09:41:41 +02:00
Marek Niepieklo
bd06eacbda [CP-403] Replace old update code
Removed update related code
Removed update test scripts
2021-08-05 17:11:24 +02:00
Marek Niepieklo
26c48bc468 [CP-424] Report SN in DeviceInfo data
Added serial number to Device Info data.
2021-08-05 12:06:42 +02:00
Marek Niepieklo
6c32205e1b [CP-371] Updater miscelanous developer mode and logs changes
This reverts commit cb93d58d85.
2021-07-27 17:03:28 +02:00
Adam Dobrowolski
cb93d58d85 [CP-371] Updater miscelanous developer mode and logs changes
Changed:
- Runtime disabled logs which didn't add value from ServiceDesktop
- Runtime disabled logs which didn't add value from SystemManager
- Added possibility to change runtime logging levels
- Integrated ServiceDesktop developer code a bit - it might be used
  as virtual base with little to no modifications for other endpoints
  which would result with less redundant code
2021-07-27 13:56:37 +02:00
Pawel Olejniczak
d87ab0a5d8 [CP-225] Create contact using post method, and update it using put
Methods were used incorrectly.
Now they are aligned with requirements.
2021-07-21 17:15:09 +02:00
Adam Dobrowolski
1b3be31117 [CP-355] Pure update full flow implemented
Update using updater implemented using pytest
2021-07-19 12:21:54 +02:00
Pawel Olejniczak
73819ffd0d [CP-215] Expose current operator name in service desktop API
Get current operator name from cellular modem,
and expose it in service desktop API to let
Mudtia Center use it.
2021-07-14 01:03:34 +02:00
Adam Dobrowolski
2a709ced4b [CP-325] Request reboot code adjusted to work with harness
We have no controll on UART over the device flushing, minimum code
added to assure that data could be flushed
We do not close services when these are closed with reason
2021-07-12 12:59:19 +02:00
Przemyslaw Brudny
ee2c085e56 [EGD-7130] Renamed settings application
Renamed settings application.
2021-07-09 18:20:12 +02:00
Marek Niepieklo
0596951027 [CP-280] Implement send file procedure
Implemented Send File operation on FS endpoint
2021-07-09 12:02:32 +02:00
Marek Niepieklo
db6e7d0416 [CP-163] Implement FS Endpoint read file
Implemented get file opration in FS Endpoint
2021-06-23 15:23:46 +02:00
Marek Niepieklo
af11f9465a [CP-166] Update Harness Tests
Renamed endpoint filesystemUpdate to filesystem
Added get file test
2021-06-23 15:23:46 +02:00
Pawel Olejniczak
c58c8568d3 [CP-143] Set 204 code for responses with empty body
Body field was always added to response json, even if
it was containing only null. Now empty body is
not attached to response json, and status code
for such message is set to 204. Additionaly some
minor cleanup in service desktop was done.
2021-06-14 17:14:16 +02:00
Pawel Olejniczak
f8c39b30d6 [CP-142] Update tests with 204 response code
Uptdate python test scripts with 204 (NoContent) code
for responsens with empty body.
2021-06-14 17:14:16 +02:00
Marek Niepieklo
9dc5ba911b [CP-187] Fix stack overflow on passcode decoding
When passcode is passed as json string, each of digits needs to be
parsed as separate character with std::atoi. Replaced the string
with json array of integers to simplify decoding and avoid SO.
2021-06-11 11:55:47 +02:00
Marek Niepieklo
9b28cd6790 [CP-84] Implement Security API
- Added pass code unlock from MC
- Removed Set USB security status
- Changed isLocked to phoneLocked in request for phone lock status
- Removed remainings of USB security in Settings App
- Reworked USB security model to depend both on
    Phone lock state and Pass code being enabled
- Updated test_security.py
2021-06-08 10:23:21 +02:00
Pawel Olejniczak
de84e4d1b9 [CP-83] Update tests for unlocking phone and usb
Removed leftovers of old usb security tests implementation.
Added tests for unlocking via security endpoint.
2021-06-08 10:23:21 +02:00
Przemyslaw Brudny
b7e710ef9e [EGD-6867] Renamed TopBar into StatusBar
Renamed TopBar into StatusBar.
2021-06-04 12:24:30 +02:00
Pawel Olejniczak
f74170387b [CP-79] Update messages API tests
Check if all required fields in resposne
json are present. Also check if they
have a proper type.
2021-05-31 17:52:35 +02:00
Michał Kamoń
0f3fb7c152 [EGD-6736] Add app's state dependent autoLock mechanism
This PR provides the implementation of the auto-locking mechanism that
is dependent on an application's current auto-locking policy. Three
auto-lock policies have been introduced:

* DetermineByWindow
* DetermineByAppState
* PreventPermanently

Also changed the AutoLockWindow set/get auto-lock time value to the
message-based approach.
2021-05-26 08:31:33 +02:00
Marek Niepieklo
2e6899a492 [CP-2] I don't want to see data from Pure in Center when Pure is locked
[CP-48] Re-enabled USB security
[CP-49] Update test harness with usb security
2021-05-18 15:46:17 +02:00
Maciej Gibowicz
ee65e0c558 [EGD-6082] Fix cellular start harness test
Improved cellular cold and hot start harness test
2021-04-08 23:15:11 +02:00
Pawel.Paprocki
90bfaa847d [EGD-6352] Add Factory reset mode
Stop DB service
Delete DB files
Make reboot
2021-04-08 11:57:33 +02:00
Marek Niepieklo
f704ab3bed [EGD-5909] Fix disable test_usb_echo.py
Test checked for echo mode being enabled, and continued
execution while echo mode was off.
2021-04-02 11:04:22 +02:00
Pawel.Paprocki
29bf1e40f1 [EGD-5834] Fix restore API
Change restore API
backup/restore/update harness tests
2021-03-30 16:53:23 +02:00
Radoslaw Wicik
5d16f20edd [EGD-6113] Always run tests on linux release
With original script was able to select build dir to run
against this script always chooses "Release" version
2021-03-30 12:20:17 +02:00
Pawel.Paprocki
b318415026 [EGD-6113] Fix Test harness issue in ServiceDesktop worker
Remove spare logging in MessageHandler.cpp
Move Linux CI target to Release
Remove spare logs form harness tests
Disable failing test cases in:
test_templates and test_connection_security
2021-03-30 12:20:17 +02:00
Maciej Gibowicz
9cc5b47bdd [EGD-4863] Add harness test for cellular sleep mode
Adding test for outgoing call and text message
in cellular sleep mode
2021-03-25 11:08:08 +01:00
Tomasz Sobkowiak
d5fc8a98a4 [EGD-6259] Turn off usb security
To prevent errors with USB connectivity and charging screens.
2021-03-23 20:21:25 +01:00
Pawel Olejniczak
00c760233b [EGD-5783] Revert EGD-5783
Revert "EGD-5783 Exclude empty body from response message"
This reverts commit b64eb0622b.
2021-03-23 16:41:43 +01:00
Pawel Olejniczak
b64eb0622b [EGD-5783] Exclude empty body from response message
Remove body field from response message,
if it contains null. Add 204 and 501 status codes
and use them in proper responses.
204 stands for success but no content, and 501
means endpoint is not implemented.
Additionally some minor fixes.
2021-03-23 14:31:11 +01:00
Michał Kamoń
0218e0d7d4 [EGD-6191] Fix harness call tests
* This PR provides a fix for the bug reported in [EGD-6081].
The solution adds the `tear_down`-like fixture called after the
problematic tests, that enforce focus on `ApplicationDesktop'`s
main window.
* Additionally similar solution was added to `test_auto_lock`
to restore original (30s) lock timeout.

[EGD-6081]: https://appnroll.atlassian.net/browse/EGD-6081
2021-03-23 08:46:01 +01:00
Michał Kamoń
46b8914054 [EGD-5945] Bluetooth-harness API messages
This PR:
* provides Bluetooth-Harness API messages definition [EGD-5944]
* provides Bluetooth-Harness API messages implementation
* provides Bluetooth-Harness API usage on harness side [EGD-5946]
* provides Bluetooth-Harness tests [EGD-5947]
2021-03-19 10:27:29 +01:00
Pawel.Paprocki
b392d41b01 [EGD-6076] Fix test_send_message fails
fix for function erase_all_templates
2021-03-18 17:59:36 +01:00
Michał Kamoń
e651b2ce78 [EGD-5965] Add BT-Harness API documentation
Added documentation:
* BT endpoint API
* BT-Harness tests
2021-03-15 15:17:14 +01:00
Roman Kubiak
6bc6eccc34 [EGD-5565] Fix update process on new lf filesystem
These changes are needed for update to work with new
LFS fileystem, also minor bugfixes are included.
2021-03-11 07:35:31 -08:00
SP2FET
66db7b0841 [EGD-5512] Usb security refactor and devices pairing
Move all security related functionality to single security endpoint
Paired devices can be added to avoid further passcode requests
2021-03-11 08:46:18 +01:00