friday-ai / friday

Friday is your open-source home automation assistant.
MIT License
1 stars 1 forks source link

Feat/adding capabilities #92

Closed vincentBesseau closed 1 year ago

github-actions[bot] commented 1 year ago

Unit Test Results

0 files   -     1  0 suites   - 158   0s :stopwatch: -34s 0 tests  - 476  0 :heavy_check_mark:  - 476  0 :zzz: ±0  0 :x: ±0  0 runs   - 485  0 :heavy_check_mark:  - 485  0 :zzz: ±0  0 :x: ±0 

Results for commit 906545ca. ± Comparison against base commit 7c452ee6.

This pull request removes 476 tests. ``` admin should have access to delete a plugin ‑ DELETE /api/v1/plugin/:id admin should have access to delete a plugin admin should have access to update a plugin ‑ PATCH /api/v1/plugin/:id admin should have access to update a plugin admin should have to create a user ‑ POST /api/v1/user admin should have to create a user admin should have to delete a user ‑ DELETE /api/v1/user/:id admin should have to delete a user admin should have to login an user ‑ POST /api/v1/user/login admin should have to login an user admin should have to read a plugin with full scope ‑ GET /api/v1/plugin/:id admin should have to read a plugin with full scope admin should have to read a variable value ‑ GET /api/v1/variable/:key admin should have to read a variable value admin should have to read all plugins with full scope ‑ GET /api/v1/plugin admin should have to read all plugins with full scope admin should have to update a user ‑ PATCH /api/v1/user/:id admin should have to update a user admin should't have to create a variable ‑ POST /api/v1/variable admin should't have to create a variable … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±0  159 suites  +1   32s :stopwatch: -2s 480 tests +4  476 :heavy_check_mark: ±0  0 :zzz: ±0  4 :x: +4  489 runs  +4  485 :heavy_check_mark: ±0  0 :zzz: ±0  4 :x: +4 

For more details on these failures, see this check.

Results for commit 49f0013d. ± Comparison against base commit 7c452ee6.

github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±0  159 suites  +1   32s :stopwatch: -2s 481 tests +5  481 :heavy_check_mark: +5  0 :zzz: ±0  0 :x: ±0  490 runs  +5  490 :heavy_check_mark: +5  0 :zzz: ±0  0 :x: ±0 

Results for commit 93b31211. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 6 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change to cold white ‑ Device.color should change to cold white should change to warm white ‑ Device.color should change to warm white should not change color ‑ Device.color should not change color should not exec a device action with wrong capability id ‑ Device.exec should not exec a device action with wrong capability id should set off ‑ POST /api/v1/capability/:id should set off ```
codecov[bot] commented 1 year ago

Codecov Report

Base: 93.91% // Head: 94.41% // Increases project coverage by +0.49% :tada:

Coverage data is based on head (a29298c) compared to base (7c452ee). Patch coverage: 96.85% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #92 +/- ## ========================================== + Coverage 93.91% 94.41% +0.49% ========================================== Files 68 74 +6 Lines 887 1002 +115 Branches 58 74 +16 ========================================== + Hits 833 946 +113 Misses 37 37 - Partials 17 19 +2 ``` | [Impacted Files](https://codecov.io/gh/friday-ai/friday/pull/92?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai) | Coverage Δ | | |---|---|---| | [server/src/core/device/capabilities/brightness.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvYnJpZ2h0bmVzcy50cw==) | `86.66% <84.61%> (-13.34%)` | :arrow_down: | | [server/src/core/device/capabilities/hue.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvaHVlLnRz) | `95.74% <95.74%> (ø)` | | | [.../src/core/device/capabilities/energyConsumption.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvZW5lcmd5Q29uc3VtcHRpb24udHM=) | `100.00% <100.00%> (ø)` | | | [server/src/core/device/capabilities/luminosity.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvbHVtaW5vc2l0eS50cw==) | `100.00% <100.00%> (ø)` | | | [server/src/core/device/capabilities/motion.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvbW90aW9uLnRz) | `100.00% <100.00%> (ø)` | | | [server/src/core/device/capabilities/onOff.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvb25PZmYudHM=) | `100.00% <100.00%> (+22.22%)` | :arrow_up: | | [server/src/core/device/capabilities/openClose.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvb3BlbkNsb3NlLnRz) | `100.00% <100.00%> (ø)` | | | [...rc/core/device/capabilities/temperatureHumidity.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9jYXBhYmlsaXRpZXMvdGVtcGVyYXR1cmVIdW1pZGl0eS50cw==) | `100.00% <100.00%> (ø)` | | | [server/src/core/device/device.exec.ts](https://codecov.io/gh/friday-ai/friday/pull/92/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai#diff-c2VydmVyL3NyYy9jb3JlL2RldmljZS9kZXZpY2UuZXhlYy50cw==) | `88.88% <100.00%> (+3.17%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=friday-ai)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±0  159 suites  +1   34s :stopwatch: ±0s 483 tests +7  483 :heavy_check_mark: +7  0 :zzz: ±0  0 :x: ±0  492 runs  +7  492 :heavy_check_mark: +7  0 :zzz: ±0  0 :x: ±0 

Results for commit 114204cc. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 8 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should not change color ‑ Device.color should not change color should not exec a device action with wrong capability id ‑ Device.exec should not exec a device action with wrong capability id should set off ‑ POST /api/v1/capability/:id should set off ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±0  159 suites  +1   30s :stopwatch: -4s 483 tests +7  483 :heavy_check_mark: +7  0 :zzz: ±0  0 :x: ±0  492 runs  +7  492 :heavy_check_mark: +7  0 :zzz: ±0  0 :x: ±0 

Results for commit 57cc8f52. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 8 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should not change color ‑ Device.color should not change color should not exec a device action with wrong capability id ‑ Device.exec should not exec a device action with wrong capability id should set off ‑ POST /api/v1/capability/:id should set off ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  159 suites  +1   31s :stopwatch: -3s 488 tests +12  488 :heavy_check_mark: +12  0 :zzz: ±0  0 :x: ±0  497 runs  +12  497 :heavy_check_mark: +12  0 :zzz: ±0  0 :x: ±0 

Results for commit c3740a21. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 13 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error should not exec a device action with wrong capability id ‑ Device.exec should not exec a device action with wrong capability id … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  159 suites  +1   32s :stopwatch: -2s 488 tests +12  488 :heavy_check_mark: +12  0 :zzz: ±0  0 :x: ±0  497 runs  +12  497 :heavy_check_mark: +12  0 :zzz: ±0  0 :x: ±0 

Results for commit 433a8fcf. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 13 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error should not exec a device action with wrong capability id ‑ Device.exec should not exec a device action with wrong capability id … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  159 suites  +1   33s :stopwatch: -1s 493 tests +17  493 :heavy_check_mark: +17  0 :zzz: ±0  0 :x: ±0  502 runs  +17  502 :heavy_check_mark: +17  0 :zzz: ±0  0 :x: ±0 

Results for commit 8f51397b. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 18 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error should not exec a device action with wrong capability id ‑ Device.exec should not exec a device action with wrong capability id … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  159 suites  +1   32s :stopwatch: -2s 495 tests +19  495 :heavy_check_mark: +19  0 :zzz: ±0  0 :x: ±0  504 runs  +19  504 :heavy_check_mark: +19  0 :zzz: ±0  0 :x: ±0 

Results for commit 1fd3d48e. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 20 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change saturation ‑ Device.color should change saturation should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  161 suites  +3   31s :stopwatch: -3s 500 tests +24  500 :heavy_check_mark: +24  0 :zzz: ±0  0 :x: ±0  509 runs  +24  509 :heavy_check_mark: +24  0 :zzz: ±0  0 :x: ±0 

Results for commit 7977af83. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 25 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change saturation ‑ Device.color should change saturation should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  162 suites  +4   32s :stopwatch: -2s 504 tests +28  504 :heavy_check_mark: +28  0 :zzz: ±0  0 :x: ±0  513 runs  +28  513 :heavy_check_mark: +28  0 :zzz: ±0  0 :x: ±0 

Results for commit 91ea3397. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 29 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change saturation ‑ Device.color should change saturation should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error … ```
github-actions[bot] commented 1 year ago

Unit Test Results

0 files   -     1  0 suites   - 158   0s :stopwatch: -34s 0 tests  - 476  0 :heavy_check_mark:  - 476  0 :zzz: ±0  0 :x: ±0  0 runs   - 485  0 :heavy_check_mark:  - 485  0 :zzz: ±0  0 :x: ±0 

Results for commit e55d9da0. ± Comparison against base commit 7c452ee6.

This pull request removes 476 tests. ``` admin should have access to delete a plugin ‑ DELETE /api/v1/plugin/:id admin should have access to delete a plugin admin should have access to update a plugin ‑ PATCH /api/v1/plugin/:id admin should have access to update a plugin admin should have to create a user ‑ POST /api/v1/user admin should have to create a user admin should have to delete a user ‑ DELETE /api/v1/user/:id admin should have to delete a user admin should have to login an user ‑ POST /api/v1/user/login admin should have to login an user admin should have to read a plugin with full scope ‑ GET /api/v1/plugin/:id admin should have to read a plugin with full scope admin should have to read a variable value ‑ GET /api/v1/variable/:key admin should have to read a variable value admin should have to read all plugins with full scope ‑ GET /api/v1/plugin admin should have to read all plugins with full scope admin should have to update a user ‑ PATCH /api/v1/user/:id admin should have to update a user admin should't have to create a variable ‑ POST /api/v1/variable admin should't have to create a variable … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  163 suites  +5   32s :stopwatch: -2s 507 tests +31  507 :heavy_check_mark: +31  0 :zzz: ±0  0 :x: ±0  516 runs  +31  516 :heavy_check_mark: +31  0 :zzz: ±0  0 :x: ±0 

Results for commit e55d9da0. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 32 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change saturation ‑ Device.color should change saturation should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error … ```
github-actions[bot] commented 1 year ago

Unit Test Results

    1 files  ±  0  164 suites  +6   34s :stopwatch: ±0s 509 tests +33  509 :heavy_check_mark: +33  0 :zzz: ±0  0 :x: ±0  518 runs  +33  518 :heavy_check_mark: +33  0 :zzz: ±0  0 :x: ±0 

Results for commit a29298c1. ± Comparison against base commit 7c452ee6.

This pull request removes 1 and adds 34 tests. Note that renamed tests count towards both. ``` should not exec a device action with wrong device id ‑ Device.exec should not exec a device action with wrong device id ``` ``` should change color ‑ Device.color should change color should change saturation ‑ Device.color should change saturation should change to cold white ‑ Device.color should change to cold white should change to color temperature ‑ Device.color should change to color temperature should change to warm white ‑ Device.color should change to warm white should change to white color ‑ Device.color should change to white color should make error to change cold or warm white ‑ Device.color should make error to change cold or warm white should not change color ‑ Device.color should not change color should not change color, param rgb error ‑ Device.color should not change color, param rgb error should not change color, range error ‑ Device.color should not change color, range error … ```
github-actions[bot] commented 1 year ago

Unit Test Results

0 files  ±0  0 suites  ±0   0s :stopwatch: ±0s 0 tests ±0  0 :heavy_check_mark: ±0  0 :zzz: ±0  0 :x: ±0 

Results for commit cfd72f87. ± Comparison against base commit cfd72f87.