Commit graph

4436 commits

Author SHA1 Message Date
Alexandre Aubin
3daac24443 Typos 2021-10-01 19:25:36 +02:00
Alexandre Aubin
0f0f26f5c4 For some reason these tests now wanted to interactively ask for is_public arg ... don't know why it was working before ... 2021-10-01 19:25:32 +02:00
Alexandre Aubin
310b664fab Clarify return type for mypy 2021-10-01 19:20:21 +02:00
Alexandre Aubin
34d9573121 Misc fixes for app repo url check / parsing 2021-10-01 16:46:05 +02:00
Alexandre Aubin
171b3b25d9 Improve check that arg is a yunohost repo url 2021-10-01 16:16:31 +02:00
Alexandre Aubin
680e13c044 Make mypy happier 2021-10-01 03:45:40 +02:00
Alexandre Aubin
a26145ece0 Simplify(?) YNH_APP_BASEDIR creation, to happen in _make_env_for_app_script 2021-10-01 03:42:59 +02:00
Alexandre Aubin
313897d184 Simplify _check_manifest_requirements 2021-10-01 03:33:12 +02:00
Alexandre Aubin
5fc493058d Aaaaaand I forgot to commit app_catalog.py ... 2021-10-01 03:10:26 +02:00
Alexandre Aubin
80f4b892e6 Prevent full-domain app to be moved to a subpath with change-url ? 2021-10-01 03:05:14 +02:00
Alexandre Aubin
1e046dcd37 Misc typoz 2021-10-01 02:50:38 +02:00
Alexandre Aubin
206b430a9f Offload appcatalog stuff to a separate file to limit the size of app.py 2021-10-01 02:50:30 +02:00
Alexandre Aubin
f84d8618bc Offload legacy app patching stuff to utils/legacy.py to limit the size of app.py 2021-10-01 02:22:23 +02:00
Alexandre Aubin
a1ff2ced37 Clarify code that extract app from folder/gitrepo + misc other small refactors 2021-10-01 02:21:31 +02:00
Alexandre Aubin
8cdd5e43d7 Simplify / fix inconsistencies in app files kept after install/upgrade 2021-10-01 02:18:35 +02:00
Alexandre Aubin
55598151c0 Unhappy linter is unhappy 2021-09-29 22:29:28 +02:00
Alexandre Aubin
df0cdd483d Black 2021-09-29 22:20:36 +02:00
Alexandre Aubin
d75c1a61e8 Adapt ready_for_ACME check to the new dnsrecord result format... 2021-09-29 22:11:24 +02:00
Alexandre Aubin
b8cb374a49 Add a proper _get_parent_domain 2021-09-29 21:43:52 +02:00
Alexandre Aubin
c44560b6f7 Misc cleanups in dns diagnoser 2021-09-29 21:38:03 +02:00
Alexandre Aubin
85e6ddbeae firewall.py: fix encoding issue, remove prependline stuff 2021-09-29 20:53:12 +02:00
Alexandre Aubin
17aafe6f6a General improvement for special-use TLD / ynh dyndns domains 2021-09-29 20:36:45 +02:00
Alexandre Aubin
ad3602a24f YNH_APP_PURGE to be 1 or 0 to be consistent with other bash bools 2021-09-29 18:36:24 +02:00
yunohost-bot
7d4ab4a886 [CI] Format code 2021-09-28 21:52:29 +00:00
Alexandre Aubin
da1b9089bf Fix dns zone for dynette domains (otherwise breaks dyndns update) 2021-09-28 23:36:24 +02:00
Alexandre Aubin
8a82fe0392 Force yunohost to forget about avahi-daemon files 2021-09-24 19:43:02 +02:00
yunohost-bot
ec5e5d6b73 [CI] Format code 2021-09-23 20:18:27 +00:00
Alexandre Aubin
7484f138b1
Merge pull request #1338 from YunoHost/rework-prompt-again
Rework prompt() again
2021-09-23 21:47:49 +02:00
Alexandre Aubin
a5580caf4e Lint 2021-09-23 21:46:35 +02:00
Alexandre Aubin
9f0caedb6b tests: .coveragerc should be at the root of the repo 2021-09-23 21:30:42 +02:00
Alexandre Aubin
0693aa45de Add tests for FileQuestion 2021-09-23 20:54:31 +02:00
Alexandre Aubin
8cc229e19b Zblerg propagate changes on tests 2021-09-23 20:05:52 +02:00
Alexandre Aubin
74102b607d Simplify error management 2021-09-23 19:21:48 +02:00
Alexandre Aubin
6b8cb0c005 Hmpf refactor moar stuff but does this ever ends 2021-09-23 18:57:01 +02:00
Alexandre Aubin
548042d503 Moar fixes .. + add test for boolean normalize/humanize 2021-09-23 13:07:46 +02:00
Alexandre Aubin
68d849f7ab Adapt tests for domain/path normalize 2021-09-23 10:45:37 +02:00
Alexandre Aubin
d4c3a6975e ask_questions_and_parse_answers may take directly a dict as input 2021-09-23 10:38:30 +02:00
Alexandre Aubin
26a4992961 Refactor _normalize_domain_path into DomainQuestion + PathQuestion normalizers 2021-09-23 05:33:20 +02:00
Alexandre Aubin
4cc2c9787d Propagate changes on tests 2021-09-23 05:20:19 +02:00
Alexandre Aubin
f14d780588 Get rid of unecessary 'user_answers' arg in constructor 2021-09-23 05:09:57 +02:00
Alexandre Aubin
d5748b519a config panels: attempt to improve the semantic of 'convert()' 2021-09-23 05:02:27 +02:00
Alexandre Aubin
9c3ff52d98 file questions: we don't need to know the filename, we don't need to validate extension server-side 2021-09-23 04:38:44 +02:00
Alexandre Aubin
430f53aa73 Semantic, simplify code... 2021-09-23 03:39:43 +02:00
Alexandre Aubin
d023333fa4 questions prompt: include normalize in the try/except to re-ask question if not properly formated 2021-09-23 02:58:13 +02:00
Alexandre Aubin
78ad3b5da3 Fix weird definition for boolean's humanize/normalize 2021-09-23 02:39:39 +02:00
Alexandre Aubin
8ea160b9fe Fix tests 2021-09-23 00:37:44 +02:00
Alexandre Aubin
d1c371ec38 cli questions: Restore displaying available choices, though limit to the first 20 available options 2021-09-23 00:12:24 +02:00
Alexandre Aubin
2d158b5a6d Rework prompt() again 2021-09-21 20:21:05 +02:00
Alexandre Aubin
a6c72566a5 services.py: drop legacy hack for glances 2021-09-21 16:09:06 +02:00
Alexandre Aubin
9bcb7e0b9e certificate.py: drop legacy 000-acmechallenge.conf stuff 2021-09-21 16:08:24 +02:00