Commit Graph

10 Commits

Author SHA1 Message Date
fc2bb6cf47 Add Upgrade detail infos (#86)
* get update detail info

* missing new line at the end

* black compliant

* flake8 compliant

* fix pre-commit

* Update tests/api_data/dsm_6/core/const_6_core_upgrade.py

* Update tests/api_data/dsm_6/core/const_6_core_upgrade.py

Co-authored-by: Quentame <polletquentin74@me.com>
2020-10-27 10:45:26 +01:00
08035384ad Add parameter verify_ssl (#76)
* add parameter ssl_validation

* add parameter ssl_validation

* rename to verify_ssl

* rename to verify_ssl

* object property use_https not needed

* black

* VALID_SSL_VERIFICATION --> VALID_SSL_VERIFY

* disable_warnings on urllib only if not verify_ssl

* VALID_SSL_VERIFY --> VALID_VERIFY_SSL

* VALID_SSL --> VALID_HTTPS

* Add test

* black again

* Add test

Co-authored-by: Quentin POLLET <polletquentin74@me.com>
2020-10-19 23:57:58 +02:00
590f2d9a17 Add Core System and Upgrade APIs info and actions (#72)
* add syno system data and actions

* add system usage examples

* add upgrade information

* Fix default login Exception (#73)

* Migrate to Python 3.6+ (#70)

* Migrate to Python 3.6+

Drop support of Python < 3.6
- remove six + future deps + usage
- update deps
- remove encoding
- remove (object)

* Fix pylint

- pip3 super() style
- remove simplejson dep + usage

* Black format

* lint setup

* Travix CI py version

* Use f string

* Basic Typing

* Revert setup version bump

* correct alphabetically order

* add SynoCoreUpgrade instance

* simplify update_available()

* correct defaults of .get()

* harmonize use of API_KEY

* update docs

* add test data

* due to #70

* update docs

* solve conflict

* add syno system data and actions

* add system usage examples

* add upgrade information

* correct alphabetically order

* add SynoCoreUpgrade instance

* simplify update_available()

* correct defaults of .get()

* harmonize use of API_KEY

* update docs

* add test data

* due to #70

* update docs

* Apply suggestions from code review: function return type

* Don't save previous update data

Co-authored-by: Quentame <polletquentin74@me.com>
2020-10-18 20:01:24 +02:00
212f029478 Migrate to Python 3.6+ (#70)
* Migrate to Python 3.6+

Drop support of Python < 3.6
- remove six + future deps + usage
- update deps
- remove encoding
- remove (object)

* Fix pylint

- pip3 super() style
- remove simplejson dep + usage

* Black format

* lint setup

* Travix CI py version

* Use f string

* Basic Typing

* Revert setup version bump
2020-10-15 00:48:35 +02:00
27379e7cd6 Add Shared Folders support (#61)
* Minimal Shared Folders support

* Bugfixes in share.py and README updates

* Added tests for shares

* Formatted with black

* Added myself as a contributor.

* Support for extended attributes for shares.

* Tidied up some comments.

* Reformatted with Black

* Fixed tests

* Fixed tests, maybe

* addressing initial feedback on pull request \#61

* Working on tests, can't repro failure locally.

* Updated test per comment on #61 and added a generic to shares.

* Fixed pylint complaint

* Tried to fix the test again, didn\'t

* Ran Black

* Implemented feedback on pull request.

* Updated tests to reflect the move of shares to UUID

* Fix CI

* Rename to SynoCoreShare

* Remove useless _execute_request() special treatment

Co-authored-by: Quentin POLLET <polletquentin74@me.com>
2020-07-12 12:45:28 +02:00
796a1a7dc5 Add SynoSecurity status_by_check + add outOfDate test (#54) 2020-06-02 10:57:29 +02:00
9a523c75a2 Make Exceptions detailed (#52) 2020-05-15 00:11:25 +02:00
e460eb73cb Add API SYNO.Core.SecurityScan.Status (#46) 2020-05-02 15:47:00 +02:00
4096d7886b Add DSM 5 tests + fix DSM 5 issues 2020-04-28 22:56:51 +02:00
e393b1282c Add SYNO.API.Info to test constants + reorganize test consts (#31) 2020-04-14 14:01:58 +02:00