Commit graph

27 commits

Author SHA1 Message Date
Kay0u
dc6033c399
python3 way to get a list of dict keys 2021-03-15 14:10:13 +01:00
yunohost-bot
c4439110e1 [CI] Format code 2021-02-02 03:37:40 +00:00
Alexandre Aubin
ecbd63636b autopep8 --in-place -a -a -a -a -a -r data/ doc/ tests/ src/yunohost/tests/ src/yunohost/utils/ src/yunohost/data_migrations/ 2020-09-03 17:36:59 +02:00
Alexandre Aubin
fa19c9480c Cleanup unused imports / misc 'fatal' flake8 errors 2020-09-03 17:01:24 +02:00
Alexandre Aubin
1f1b233839 Use a .get() here to avoid crashing if key doesn't exist 2020-05-22 13:28:38 +02:00
Alexandre Aubin
7818eb3946 Better handling of failure to use the remote-diagnosis 2020-04-19 00:26:33 +02:00
Alexandre Aubin
db347115fc In fact we can't have a hard dependency on dnsrecords here, otherwise no check are performed until the dnsrecords have no important issue ... 2020-04-18 03:24:31 +02:00
Alexandre Aubin
749ca54a34 More sensible cache_duration for diagnosis categories 2020-04-18 02:53:15 +02:00
Alexandre Aubin
2c26961314 Fix bad copy pasta for string key 2020-04-17 03:20:40 +02:00
Alexandre Aubin
dd7b42d3e8 Add ipv6 check for ports 2020-04-17 03:20:40 +02:00
Alexandre Aubin
7f3cc33487 Add a static method to call remote diagnosis and supports ipv4-only or ipv6-only check 2020-04-17 03:20:40 +02:00
Alexandre Aubin
3cff370c62 Add some bits of magic to simplify the way we yield test items 2020-04-17 03:20:40 +02:00
Alexandre Aubin
f0c0f63bb4 Let's use dict for details data, much better for semantic when defining strings etc... 2020-04-17 03:20:40 +02:00
Alexandre Aubin
8e83f8aa29 Add a 'yunohost diagnosis get' to get one specific raw info 2020-04-17 03:20:40 +02:00
Alexandre Aubin
526a3a25c9 Remote diagnoser also returns code 400 or 418 when port / http ain't correctly exposed 2020-03-26 19:38:34 +01:00
Alexandre Aubin
de879e1d30 Merge branch 'fix-diagnosis-server-bad-response' into stretch-unstable 2020-03-22 01:46:06 +01:00
Alexandre Aubin
fff2fcd67c Simplify identation (and diff) by reversing the if statement 2020-03-22 01:41:58 +01:00
Alexandre Aubin
4399c9b740 Tweak exception messages to hopefully help debugging if this happens 2020-03-22 01:40:02 +01:00
Alexandre Aubin
937d339631 Add category to services to have more meaningful messages in reports about port forwarding checks 2020-03-21 23:09:47 +01:00
Kay0u
87a3ceb983
[FIX] bad response from the server 2020-01-25 20:49:29 +07:00
Alexandre Aubin
69b611bd28
Merge branch 'stretch-unstable' into improve-service-status-checks 2019-11-14 17:16:44 +01:00
Alexandre Aubin
cfabb83c0e Use Yunohost's server instead of tmp server 2019-11-14 15:40:48 +01:00
Alexandre Aubin
a9dd701824 Improve port diagnosis by adding a relation between ports and services 2019-11-08 22:29:21 +01:00
Alexandre Aubin
612a96e1e2 Yield one item per port open to be consistent with other diagnosers 2019-10-10 16:13:13 +02:00
Alexandre Aubin
91ec775ebb Implement basic dependency system between diagnoser 2019-10-10 16:13:13 +02:00
Alexandre Aubin
6c48c131a8 Fix small issues in port diagnoser 2019-10-10 16:12:50 +02:00
Alexandre Aubin
f690ff6e1e First version of port exposure diagnosis 2019-10-10 16:12:50 +02:00