Commit graph

736 commits

Author SHA1 Message Date
Alexandre Aubin
c705b6b171 curl tests: forgot to return the result code 2024-08-25 12:06:29 +02:00
Alexandre Aubin
831d869e64 curl tests: be able to use __DOMAIN__ in the base url 2024-08-25 10:06:23 +02:00
Alexandre Aubin
0739f61fed Fix noslash test 2024-08-24 20:07:19 +02:00
Alexandre Aubin
988ec3cf39 Rework test that app can be accessed ... add a new syntax in tests.toml to declare what URL to test, with/without being logged in, and what code/title/content to expect 2024-08-24 19:37:31 +02:00
Alexandre Aubin
f9d42bf379 We shou;dn't need guess_test_configuration anymore because tests.toml is mandatory 2024-08-22 13:42:00 +02:00
Alexandre Aubin
cef5c96090 Revert part of the changes in previous commit because we still need to be able to test upgrades from packaging v1 2024-08-22 13:40:10 +02:00
Alexandre Aubin
b3fe86ea96 Trash legacy packaging v1 stuff 2024-08-16 15:38:13 +02:00
Salamandar
127ffc18f3
Merge pull request #162 from YunoHost/storage_dir 2024-07-15 11:05:35 +02:00
297b895470 Also allow YNH_PACKAGE_CHECK_STORAGE_DIR to be passed as an environment variable 2024-07-15 10:50:18 +02:00
f0f75fc398 Add --storage-dir argument to prevent creating huge files in the system partition or ramfs /tmp 2024-07-15 10:45:31 +02:00
Alexandre Aubin
d9f60a9c7d Adapt 'is_webapp' check to also cover helpers 2.1 2024-06-25 14:27:24 +02:00
Alexandre Aubin
0794d5967f
Merge pull request #161 from YunoHost/fix-bookworm-Yunohost-Portal-detection
fix Yunohost Portal detection on bookworm
2024-06-24 17:18:27 +02:00
Kayou
dd92428819
Update lib/tests.sh
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-06-24 17:17:08 +02:00
Kayou
a3f9ccd4ec
fix Yunohost Portal detection on bookworm 2024-06-24 17:11:16 +02:00
Alexandre Aubin
99e670fbb4
Merge pull request #160 from YunoHost/fix-install-args
add key=value args if not present in install_app script
2024-06-24 15:34:17 +02:00
Kayou
8b4c2133cc
add key=value args if not present in install_app script 2024-06-24 15:32:52 +02:00
Salamandar
77b3b4e9d5
Merge pull request #158 from YunoHost/main_branch
support main branch for app to test as git repository
2024-05-20 20:59:11 +02:00
b97296eb77 Run resource metrics inside container.
This will provide a real RAM metric of the container, and not of the full system.

For disk usage that won't change anything.
2024-05-20 20:08:55 +02:00
Alexandre Aubin
aaca713790 Fix stupid edge case where people add comment after [install.foobar] when parsing the manifest arg list 2024-05-19 14:06:50 +02:00
211ec2aefd support main branch for app to test as git repository 2024-03-23 19:01:26 +01:00
Salamandar
b9640a3ffb
Merge pull request #156 from YunoHost/incus
Allow the use of incus instead of LXD.
2024-03-15 19:45:20 +01:00
fc79adbed4 Support different syntaxes for lxc incus snapshot create / restore 2024-03-15 16:00:13 +01:00
0998271a98 Allow the use of incus instead of LXD. In the future, we could remove LXD support, making the README way shorter (no snap, etc) 2024-03-10 00:47:09 +01:00
OniriCorpe
5934139593 fix typo 2024-03-07 16:07:41 +01:00
OniriCorpe
a10cd914da ci: add autoblacks actions 2024-03-07 16:07:41 +01:00
Félix Piédallu
11bbec5b8d Add disk usage metrics based on df output 2024-03-07 12:16:10 +01:00
d1b7d4907f When testing for app page access, reuse cookies between requests.
cURL --location will follow redirects, but by default won't reuse cookies.
Some apps, like Jackett, might add authentication cookies in a chain of redirections
Passing --cookie <useless file> to cURL tells it to keep cookies between 'sessions'.
2024-03-07 11:12:50 +01:00
Kayou
42961ea755
Merge pull request #153 from OniriCorpe/patch-1
Force current hour in UTC and show explicitly that we’re using UTC
2024-02-20 07:51:07 +01:00
OniriCorpe
074b79ea48
Force current hour in UTC and show explicitly that we’re using UTC 2024-02-20 03:30:25 +01:00
Alexandre Aubin
17a37b5927
Merge pull request #152 from Salamandar/fix_parse_tests
Ffs, add execution permission to script
2024-01-28 23:31:03 +01:00
0fba05bb5f Ffs, add execution permission to script 2024-01-28 23:29:42 +01:00
Alexandre Aubin
12412eb5a5
Merge pull request #151 from Salamandar/fix_parse_tests
Fix parse_tests_toml, oopsie on pathlib, and in the calling bash script
2024-01-28 23:27:14 +01:00
1b10f0ff76 Fix parse_tests_toml, oopsie on pathlib, and in the calling bash script 2024-01-28 23:22:00 +01:00
Alexandre Aubin
815de69187
Merge pull request #150 from Salamandar/rework
Rework a bit parse_tests_toml.py
2024-01-28 22:34:13 +01:00
a2e27999e6 parse_tests_toml: make a proper python script (chmod, shebang, argparse), use a bit typing 2024-01-28 20:43:41 +01:00
68718c951c Rework a bit default_install_args.py, make a proper python script, use typing, split into 2 functions 2024-01-28 20:37:19 +01:00
Alexandre Aubin
dbe2441b0c
Merge pull request #144 from YunoHost/yunopaste-on-failure
Publish logs with YunoPaste on failure
2024-01-22 18:29:47 +01:00
Alexandre Aubin
7cdffc745c Fix boring issue with preinstalling apt dependencies in the context of transmission/cockpit: ignore apt dependencies starting with the app's id 2024-01-22 16:00:29 +01:00
Alexandre Aubin
9627a8c0a3 Make sure to generate the psql password to prevent warnings 2024-01-10 22:06:18 +01:00
Alexandre Aubin
ac8108a352 Woopsies 2024-01-10 21:44:31 +01:00
Alexandre Aubin
8e267559a7 Restructure some stuff to improve UX, ideally don't want to wait for the apt deps to install before being able to know which yunohost version is running and package linter ... 2024-01-10 21:41:48 +01:00
Alexandre Aubin
1dda43eef4 Zgrompf 2024-01-10 21:22:35 +01:00
Alexandre Aubin
2def397a8a Need those classic option for noninteractive apt etc.. 2024-01-10 21:18:02 +01:00
Alexandre Aubin
94abddf58d yolo: attempt to preinstall apt dependencies in the initial lxc snapshot 2024-01-10 21:13:08 +01:00
Alexandre Aubin
e7b47542c8 People keep writing name = 'Upgrade from x.y.z' but then it's also added by the test code which ends up in 'Upgrade from Upgrade from x.y.z' 2024-01-08 19:37:01 +01:00
Alexandre Aubin
3b76e5159a
Merge pull request #148 from Salamandar/patch-1
Fix get_default_values
2024-01-06 17:09:10 +01:00
Salamandar
472e316a97
Fix get_default_values
For choices, default value is the first of either list or dict.
2024-01-06 17:06:39 +01:00
Alexandre Aubin
27c4baa97b Revert "..."
This reverts commit 6953d958e6.
2024-01-02 18:04:37 +01:00
Alexandre Aubin
6953d958e6 ... 2024-01-02 02:37:02 +01:00
Alexandre Aubin
fa38485328 Revert "More stupid debugging because i can't even"
This reverts commit 81ffd3b7bf.
2024-01-01 23:49:49 +01:00