mastodon/gotosocial e2e tests: infrastructure changes (#1273)

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1273
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org>
Co-authored-by: famfo <famfo@famfo.xyz>
Co-committed-by: famfo <famfo@famfo.xyz>
This commit is contained in:
famfo 2025-12-05 10:40:47 +00:00 committed by Michael Kriese
parent 4622f0fe78
commit 891e8f2d81
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
5 changed files with 39 additions and 17 deletions

View file

@ -74,15 +74,21 @@ function test_federation() {
local versions="${1:-$RELEASE_NUMBERS}"
for version in $versions; do
# name, minimum version
# NOTE: newline seperated, not comma :>
scenarios=(
"star 7.1"
)
if dpkg --compare-versions $version lt 7.1; then
continue
fi
for scenario_version_str in "${scenarios[@]}"; do
IFS=' ' declare -a scenario_version="($scenario_version_str)"
federation_setup $version
if dpkg --compare-versions "$version" lt "${scenario_version[1]}"; then
continue
fi
for scenario in star; do
run federation_verify_scenario $scenario
federation_setup "$version"
run federation_verify_scenario "${scenario_version[0]}"
done
done
}