Commit graph

30 commits

Author SHA1 Message Date
Alexandre Aubin
749ca54a34 More sensible cache_duration for diagnosis categories 2020-04-18 02:53:15 +02:00
Alexandre Aubin
61ef67252e Don't contact ip6.yunohost if we can know right away that there's no IPv6 at all on the system 2020-04-17 19:38:46 +02:00
Alexandre Aubin
92d9d49a05 Fix resolvconf check 2020-04-17 03:20:40 +02:00
Alexandre Aubin
d16dab1c44 Uhoh typo 2020-04-17 03:20:40 +02:00
Alexandre Aubin
2f0a95645a Hmpf boring resolvconf shit 2020-04-17 03:20:40 +02:00
Alexandre Aubin
7c3cce6bf9 Try to diagnose and add details about global and local IPs 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
e67e9e27ba Hmm somehow there seem to be different version of ping supporting or not the -4 / -6 ... let's see if this workaroud works in all contexts 2019-10-10 16:48:58 +02:00
Alexandre Aubin
02d6a0212f Remove debug prints 2019-10-10 16:40:06 +02:00
Alexandre Aubin
356f2b9ec1 Moar ideas 2019-10-10 16:16:59 +02:00
Alexandre Aubin
0dc1909c68 Misc small UX stuff 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
35f6b77895 Reclarify ip diagnoser 2019-10-10 16:12:33 +02:00
Alexandre Aubin
d2bbb5a2b3 This 'args' things sounds like a big YAGNI after all 2019-10-10 16:12:33 +02:00
Alexandre Aubin
aed53786f2 Make the PEP8 gods less angry 2019-10-10 16:11:20 +02:00
Alexandre Aubin
5f4450ab87 Add DNS resolution tests 2019-10-10 16:11:20 +02:00
Alexandre Aubin
4d5ace06db Add test that we can ping outside before talking to ip.yunohost.org 2019-10-10 16:11:20 +02:00
Alexandre Aubin
41c3b054ba Fix semantic, way too many things called 'report' ... 2019-10-10 16:11:20 +02:00
Alexandre Aubin
af23f53d82 Simplify / reorganize i18n management for report and description 2019-10-10 16:11:20 +02:00
Alexandre Aubin
0ce4eb0a27 Fix the return interface of diagnosis hooks 2019-10-10 16:09:16 +02:00
Alexandre Aubin
2b2ff08f08 Fix error handling (Yunohost / Moulinette / Asserts) 2019-10-10 16:07:46 +02:00
Bram
ded4895b7e [mod] misc, better error message
I'm using repr to be able to detect if it's a string or a number since it's an error I'm expecting
2019-10-10 16:07:46 +02:00
Alexandre Aubin
b03e3a487e Handle cases where some category might fail for some reason 2019-10-10 16:02:50 +02:00
Alexandre Aubin
abffba9607 Remove the priority in the id of the diagnoser 2019-10-10 16:02:50 +02:00
Alexandre Aubin
12df96f33e Wrap the report with meta infos 2019-10-10 16:02:50 +02:00
Alexandre Aubin
f11206c0fa Turns out it's not really a good idea to do the internationalization right here as the strings will be kept already translated in the cache 2019-10-10 16:02:50 +02:00
Alexandre Aubin
d34ddcaaf2 Implement caching mechanism 2019-10-10 16:02:50 +02:00
Alexandre Aubin
7fb694dbcc Add diagnoser example for ip 2019-10-10 16:02:50 +02:00