Commit Graph

225 Commits

Author SHA1 Message Date
Mateusz Szczesny
724567929d [BH-1842] Fix dependabot alerts
GitHub's dependabot suggests to stop using the py library and switch
to a new pytest version
2024-02-26 11:07:26 +01:00
Mateusz Szczesny
e7bbf38253 [BH-1765] Added missing python requirement
while setting up MuditaOS toolchain in a virtual environment
I noticed a requirement was missing. Probably it comes preinstalled
on Ubuntu so no one noticed until now.
2023-09-15 10:24:37 +02:00
Lefucjusz
1f50621c2f [MOS-184] Fix unit tests not failing on duplicate test case
Fix of the issue that unit tests build would not
fail when unit test contained 2 test cases with
identical name.
Changed Catch2 submodule to local fork.
Minor unit tests and build target docs cleanup.
2023-06-27 09:21:37 +02:00
Lefucjusz
8d96f2d354 [MOS-993] Logger bug fixes and optimizations
Fixes and optimizations in logger:

* fixed possible buffer overflow when logging
logs over line buffer size;
* reduced max log line length to 2048;
* moved pubsetbuf before file opening;
* log file stream buffer created once
in logger ctor;
* updatet UTs;
* additional minor cleanup.
2023-05-29 09:38:57 +02:00
Pawel Olejniczak
3ef3a8cce0 [CP-702] Add API for managing templates order
This API allows for managing message templates order.
DB Migration: adding a new column to templates tables.
2023-03-27 16:27:17 +02:00
Lukasz Mastalerz
950cf78aa9 [CP-1825] Update while on onboarding screen
Add a parameter to device info about onboarding state.
Update documentation for Pure and Harmony.
2023-03-06 12:07:52 +01:00
Lukasz Mastalerz
cecfb8a00e [CP-1624] Cover new fields in contact and message endpoints with tests
Cover new fields for holding numberID in contact and message endpoint
response to keep the integrity and test passing.
2023-02-16 09:34:02 +01:00
Lefucjusz
9ece62c171 [MOS-903] Remove reboot to USB MSC mode
Remove mechanics enabling to perform reboot
to MSC mode by sending request to one of the
endpoints via serial port, as it is not
implemented in bootloader and may potentially
be unsafe.
2023-02-14 10:59:43 +01:00
Bartosz
03379186f9 [MOS-000] Fixed tests for update
Fixed tests for performing update, now it does not require
developer endpoint
2023-01-19 16:41:56 +01:00
Bartosz
663e427024 [MOS-000] Fix for test_updater
Fixed outdated method in harness
2023-01-19 16:41:56 +01:00
Lefucjusz
58fe1b1e7b [CP-1421] Fix backup, restore and device info tests
Fix of the aforementioned tests after changes
implemented in PureOS.
2023-01-19 16:41:56 +01:00
Lefucjusz
215e4d96b7 [MOS-783] Fixed Pure unit tests
Fixed (most of the) hardcoded
paths in Pure's unit tests.
2023-01-19 16:41:56 +01:00
Lefucjusz
178fba165e [MOS-783] First part of new dir structure implementation
Works:
    - generating .img for Pure;
    - Pure boots after flashing new image and
    seems to be working fine;

    Not yet:
    - generating update package;
    - generating image for Harmony;
    - simulator;
    - path-related unit tests fail
    due to paths being hardcoded
    in test scenarios.
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
ef556d43f2 [CP-1423] Update backup and restore endpoint API test
Adjust the test script for new implementation of backup
and restore.
Disabling SettingsApi Test
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
1723f12895 [CP-1483] Add test for sync API
Purpose of this test script is to test
synchronization API introduced in CP-1484
2023-01-19 16:41:56 +01:00
Mateusz Piesta
c424b67280 [BH-1515] Revert bedtime changes
Due to many regressions these changes
introduced, we decided to revert them.

The old PR will be used as a foundation for
another fix attempt(probably including major
refactor of the alarm operations module).
2022-08-31 13:15:09 +02:00
Pawel Olejniczak
65f30a0df2 [CP-1448] Add storage info to device info endpoint
DeviceInfo endpont now contains information such as:
deviceSpaceTotal - total storage space on the device
systemReservedSpace - storage space on the device
reserved for the OS
usedUserSpace - storage space on the device used
for user files on the user partition
2022-08-12 10:42:00 +02:00
Pawel Olejniczak
969bb5bf17 [CP-1453] Update test script for file system endpoint
Add test for listing files and their size in a specified path.
2022-08-04 11:54:19 +02:00
Onufry Pajaczek
3043c063ec [BH-1515] Bedtime reminder notification issue
AbstractAlarmAction execute method takes Record as paremeter to pass it
to action
Bedtime abstraction extended to keep own EvetContainer and hadle needed
actions(push,clear ... and so on)

Fixed an issue where cpp file was added by #include directive
New fuction added to test/CMakeLists.txt to
add manually prepared target to test siute
googletest-service-time-alarm-operations source moved to library and
than linked in to googletest-service-time-bell-alarm-operations
2022-07-22 13:40:48 +02:00
Pawel Olejniczak
f56b631eb6 [CP-563] Return correct threadID after adding new message
After adding new message via Messages EP API,
threadID field was always 0, which was incorrect.
2022-07-22 10:34:31 +02:00
Pawel Olejniczak
e72ca95535 [CP-1116] Add API to create and update draft message
This change allows to create and update draft SMS
with use of service-desktop API.
2022-07-07 00:03:24 +02:00
Bartosz Cichocki
c7b1fde907 [MOS-492] Enable overriding audio profiles via harness
Profile modification is possible via python script
2022-06-15 11:03:39 +02:00
Pawel Olejniczak
291b695282 [CP-1334] Return templateID after adding new one
No information about newly added message template
was returned. Now temaplateID helps to identify
newly added record.
2022-06-09 00:33:27 +02:00
Adam Dobrowolski
2b1ae19d62 [MOS-512] Fix build with gcc12
As in topic
2022-06-03 12:38:34 +02:00
Pawel Olejniczak
ebc97dc3c9 [CP-1310] Add timeLeftToNextAttempt field to security EP
The time of the next attempt to unlock the phone on
the MC side was bonded with the system time of
the MC host system. This could lead to issues when
the time on Pure was different than on MC host
operating system. Now everything relies on Pure
system time.
2022-05-26 11:45:17 +02:00
Pawel Olejniczak
b232c9770c [CP-1135] Extend messages API by deleteThread method
Allow to delete single message thread specified by id
using messages endpoint API.
2022-05-09 11:41:28 +02:00
Pawel Olejniczak
e693cffe47 [CP-1232] Extend messages EP API with getThreadByID method
Add API for getting single thread by its ID.
2022-04-28 15:27:44 +02:00
GravisZro
c41f0d984b [MOS-377] Update community assets version for unit tests
This updates version number for the MuditaOSPublicAssets from
version 0.0.4 to version 0.0.7 in the CMake file for unit testing.
2022-04-06 19:10:56 +02:00
Paweł Joński
e833690c8f [MOS-288] Add community build
Add community build
Add targets for community fonts
2022-03-22 12:40:15 +01:00
Marek Niepieklo
841ba62b16 [CP-1103] Harmony device log is not sent to support
Isolated common Device Info EP
Added returning of diagnostic data info to Harmony DeviceInfo EP
Updated get_os_log.py tool
2022-03-21 22:06:59 +01:00
Adam Dobrowolski
053f270655 [MOS-282] Librarisation of services and test service
* options work a bit better ,now services and apps are
  selectable by option in cmake
* test service example added
* major documentation for module-services
* documentation for project configs and logs

Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
2022-03-18 08:06:21 +01:00
Adam Dobrowolski
43cd960523 [MOS-278] Fixed frequency hold algorithm behaviour
fixed hold frequency algorithm behaviour
added basic tests for frequecy changing
updated catch for newer gcc
tests added
2022-03-15 17:26:09 +01:00
Adam Dobrowolski
51c21bc394 [MOS-281] Base documentation update
Now our basic documentation should be clearer and more self
explanatory
2022-03-15 08:31:47 +01:00
Maciej Janicki
5dc42c2be6 [MOS-296] Merge new master commits into merge-stable-wip
Merge new master commits
2022-03-09 19:32:59 +01:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +01:00
Marek Niepieklo
fda43afcf5 [MOS-273] Update Harness to detect Mudita Bell devices
Added detection of Mudita Harmony
2022-03-04 16:10:21 +01:00
Marek Niepieklo
e34c5b693d [CP-1021] Add token field to Device Info API
Generating a device unique id
Returning device token generated from device unique id in DeviceInfo
Added test for device token in test_devic_info.py
2022-02-22 12:25:50 +01:00
Pawel Olejniczak
98db8f1da3 [CP-1037] Add test for Outbox EP API
Needed to verify if the Outbox endpoint API works correctly
2022-02-17 13:23:03 +01:00
Marek Niepieklo
7eddc891cf [CP-1072] Fix issues in harness test for DeviceInfo
Fixed regexp’s for gitVersion, serialNumer.
Fixed invalid escape sequence in regexp.
2022-02-10 11:27:52 +01:00
Pawel Olejniczak
6566ad7ae3 [CP-1007] Add API for rebooting to USB MSC mode
It will allow to reboot the device to USB MSC mode
without need to interact with a physical keyboard.
2022-02-01 15:26:20 +01:00
Mateusz Piesta
c1391090c6 [BH-1389] Catch2 unit tests optimization
Removed redundant recompilation of catch2 main
resulted in over 20% speed up of unit tests compilation.
2022-01-26 15:04:23 +01:00
Pawel Olejniczak
fd2051d0e7 [CP-856] Refactor test contacts
Refactor contacts EP test to make it work again.
Rewritten with use of contacts EP API
moved to harness submodule.
2022-01-21 17:22:46 +01:00
Pawel Olejniczak
2e4cb9794b [CP-850] Improve and update test device info
Previously test was expecting to get any answer.
Now it is enhanced to check if returned values make any sense.
Additionally added test for checking log files location.
2022-01-18 13:00:57 +01:00
Marek Niepieklo
04111a6e7f [CP-857] Refactor test_messages.py and test_send_sms.py
Refactored sms part of messages endpoint tests.
Rewritten with use of messages EP API from harness.
2022-01-13 09:52:06 +01:00
Pawel Olejniczak
7d68338acf [CP-855] Refactor test_threads
Refactored threads part of messages endpoint tests.
Rewritten with use of threads EP API from harness.
2022-01-11 13:52:46 +01:00
Pawel Olejniczak
f97e86c991 [CP-858] Fix test security
Add security EP API to QAMuditaHarness repo.
Refactor security EP test to make it work.
2022-01-04 23:24:57 +01:00
Adam Dobrowolski
df7d19658c [EGD-8144] PurePhone assets split mechanism
As we do not have artifactory etc. we download public assets from
public repository.

download_asset mechanism:
* added tar with unpack for releases on github
* download script create parent directory
* When there is no parent directory - then create it, not the file as
  dir
* Lessened logs status
* download release files for Pure works ok
* added option to load multiple elements from tar
* added option to load stuff from own PC

CMake fixes:
* Add option to not pass Luts.bin to the image
* Added dependencies:
    * Assets cmake
    * DiskImage
    * Generall: dependencies instead of runtime globals
    * Fixed UT for bell

Added description file to fownload files:
* Files downloaded from MuditaOSPublicAssets repository Bell
* PurePhone assets copied to build dir not to image dir
* Added test assets and bell assets
* Luts and test assets unpacked to right place
* Luts proper on img on phone

EGD-8066 sq
2022-01-03 15:53:20 +01:00
Marek Niepieklo
0c76e7650f [CP-914] Update factory reset test
Moved the test out form pytest/service-desktop
Improved test scenario to check for the onboarding screen
Used Factory Reset API for Harness
2021-12-15 13:02:39 +01:00
Marek Niepieklo
97f79cf7d7 [CP-829] Move and fix test_battery_file.py
Moved battery file test out of service-desktop
Replaced deprecated check file op with get file op to test
if the file is present.
2021-12-14 13:47:39 +01:00
Marek Niepieklo
d31fce7f85 [CP-830] Merge Backup and Restore tests
Merged Backup and Restore tests
2021-12-09 13:08:01 +01:00