Commit graph

4018 commits

Author SHA1 Message Date
Laurent Peuch
69f8ab1ac4 [mod] black file 2020-05-24 01:16:18 +02:00
Laurent Peuch
e181866dca [mod] add tests for password 2020-05-24 01:16:18 +02:00
Laurent Peuch
d1d38b173c [mod] add tests for path 2020-05-24 01:16:18 +02:00
Laurent Peuch
ebf9fa9d71 [mod] moar tests and tests for password argument parsing 2020-05-24 01:16:18 +02:00
Laurent Peuch
1b52eafcb7 [mod] blablabla testin' 2020-05-24 01:16:18 +02:00
Laurent Peuch
e41d6186ee [mod] and more tests 2020-05-24 01:16:18 +02:00
Laurent Peuch
ec9b020376 [mod] moar test for arguments parsing 2020-05-24 01:16:18 +02:00
Alexandre Aubin
58ce6e5e58 Webpath should also be normalized for args_list, so that we can get rid of the 'malformed path' check of the CI... 2020-05-23 23:12:16 +02:00
Alexandre Aubin
e30e25fa93 Add maindomain in diagnosis email subject 2020-05-23 13:55:10 +02:00
Kayou
cc9b8e6e16
Merge pull request #991 from YunoHost/ci-build-&-install-deb
[enh] CI V2
2020-05-22 22:08:55 +02:00
Kay0u
b6ced38314
Merge branch 'stretch-unstable' of https://github.com/YunoHost/yunohost into stretch-unstable 2020-05-22 21:05:23 +02:00
Kay0u
85f1802ec9
[fix] empty services.yml file 2020-05-22 21:05:19 +02:00
Alexandre Aubin
f0cc679828 Add an exception if packaging format is not recognized 2020-05-22 20:30:54 +02:00
Josué Tille
226bd15c55
Merge remote-tracking branch 'upstream/stretch-unstable' into permission_protection 2020-05-22 15:12:32 +02:00
Alexandre Aubin
e7a4b26af8
Also propagate to utils/network.py because we like to maintain duplicated code ;P 2020-05-21 18:01:14 +02:00
Kay0u
37f0273ff4
adding test coverage 2020-05-20 17:10:02 +02:00
Alexandre Aubin
d7891970c3 Clean unused code/imports 2020-05-19 19:56:04 +02:00
Alexandre Aubin
0dde1f6d4f Fix exception assertion 2020-05-18 19:57:54 +02:00
Alexandre Aubin
f9e4c96ca3 Crash early about apps already installed when attempting to restore 2020-05-18 18:49:38 +02:00
Alexandre Aubin
f73c34bfc1 Tell systemctl to stfu when enabling/disabling services, just do it 2020-05-17 17:00:33 +02:00
Alexandre Aubin
7b4a9b57bc Stewpeed typo :| 2020-05-17 04:22:15 +02:00
Alexandre Aubin
086db7a94b Need to explicitly convert info from dbusthingy to str :/ 2020-05-17 04:10:19 +02:00
Alexandre Aubin
f8e5ea4652 Fix tests, rely on _get_service_information_from_systemd to fetch service info during service add 2020-05-16 00:53:49 +02:00
Bram
6a75716fb5
Merge pull request #989 from YunoHost/test-for-args-parsing
Test for args parsing
2020-05-16 00:41:40 +02:00
Alexandre Aubin
dd608baec5 Small simplification? 2020-05-16 00:21:01 +02:00
Alexandre Aubin
1244241b3f Have an independant function for building the service status 2020-05-16 00:21:01 +02:00
Alexandre Aubin
dd09758fb5 Report the service status as unknown if service type is oneshot and status exited 2020-05-16 00:21:01 +02:00
Alexandre Aubin
c9b2213817 Don't miserably crash if doveadm fails to run 2020-05-15 17:08:23 +02:00
Laurent Peuch
fd358fdfcc [enh] start writting test for arguments parsing 2020-05-15 05:21:36 +02:00
Alexandre Aubin
413778d2bc Check if app broke something important only if install succeeded (if install fails, this check only matters *after* we remove the app which is already done) 2020-05-15 04:23:58 +02:00
Alexandre Aubin
5850bf610f Get rid of those damn warnings about file descriptors 2020-05-15 04:00:58 +02:00
Laurent Peuch
c600b3b53e [mod] rename everything in _parse_args_in_yunohost_format because I'm too old and too tired for shitty variable name, also docstring 2020-05-15 03:23:12 +02:00
Laurent Peuch
757cef32b3 [mod] remove unused import 2020-05-14 21:30:00 +02:00
Alexandre Aubin
4cd4938eb4 Change logic of --email to avoid sending empty mail is some issues are found but ignored 2020-05-14 19:32:45 +02:00
Alexandre Aubin
9cbd368dca Tweak apt/dpkg options to avoid the shitload of lines about progress bar stuff in logs 2020-05-14 04:46:18 +02:00
Alexandre Aubin
65c87d55df Try to not have weird warnings if no diagnosis ran yet... 2020-05-14 03:56:32 +02:00
Alexandre Aubin
c6f184960c We don't need to display hostname when fetching logs with journalctl 2020-05-13 16:59:59 +02:00
Alexandre Aubin
09d8500fda Also run dpkg --audit to check if dpkg is in a broken state 2020-05-13 16:38:27 +02:00
Alexandre Aubin
4d734a27a0 Forcing unicode creates issue with non-ascii strings or whatever.. 2020-05-13 16:18:23 +02:00
Alexandre Aubin
26fcfed7fb Only mention packages that couldn't be upgraded during failed apt upgrades 2020-05-13 15:20:49 +02:00
Alexandre Aubin
2205515d35 Add a dummy description to avoid warning 2020-05-11 00:37:25 +02:00
Alexandre Aubin
b6631b4882 Add a test for service_log 2020-05-11 00:37:12 +02:00
Alexandre Aubin
afbeb145b6 Make sure we have a list for log_list 2020-05-11 00:36:46 +02:00
Alexandre Aubin
43facfd5b5 Again here, list.remove(foo) fails if foo ain't in list :[ 2020-05-11 00:21:25 +02:00
Alexandre Aubin
8998334251
Merge pull request #985 from YunoHost/rely-on-diagnosis-for-letsencrypt-elligibility
Rely on diagnosis for letsencrypt elligibility
2020-05-09 18:09:57 +02:00
Alexandre Aubin
c8625858e2 Fetch xmpp-upload DNS record status from diagnosis directly 2020-05-09 18:01:16 +02:00
Alexandre Aubin
d8dfa1c5d5
We gotta trash the error stream because gzip complains about broken pipe when ran in python subprocess ~.~ 2020-05-09 15:58:40 +02:00
Alexandre Aubin
aecbb14aa4 Add a --human-readable option to diagnosis_show() and a --email to diagnosis_run() to email issues found by cron job 2020-05-09 01:46:28 +02:00
Alexandre Aubin
33caf9cf33 Cleanup, we don't really need this anymore 2020-05-08 21:50:41 +02:00
Alexandre Aubin
713d4926c9 Fix the way we check the A record for xmpp 2020-05-08 21:50:23 +02:00