Commit Graph
17 Commits
Author SHA1 Message Date
linsui 14573e7ccb fix B105 hardcoded_password_string 2026-01-19 21:53:43 +08:00
linsui 4b969184be black: bump target version to py39 2025-12-11 19:54:54 +08:00
Hans-Christoph Steiner 9a6148c5b4 deploy: do not leak username/hostname from machine pushing repo
Git will use the username/hostname to set the Author and Committer fields
if the config items user.name and user.email are not set.  This might
inadvertently leak info about the machine that is hosting the deploy
process.  So this changes it to be a hardcoded value, unless the repo
environment has explicitly set these values either in the Git config or in
environment variables.
2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner 473068f311 deploy: test case for !1666
This is included here and not there because it relies on lots of stuff that
was refactored.  !1666 was broken out to get the fix out for fdroidclient
as soon as possible.
2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner 8601749734 deploy: assert logs when error messges should be thrown 2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner e8f7771c1f tests: suppress "WARNING:root:unsafe permissions on 'config.yml' (should be 0600)!" 2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner 04ec16d68a deploy: move remote repo to common test setup in TestServerGitMirrors 2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner 5fcc5b1252 deploy: simplify asserts in servergitmirrors tests 2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner a96e647b2f deploy: common test setup for all tests of servergitmirrors
This refactors the servergitmirrors tests into their own class.
2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner b6e73345e2 deploy: convert to common.get_config()
717df09be0
2025-09-29 13:25:13 +02:00
Hans-Christoph Steiner 1f9fb16844 deploy: find rclone.conf in the root of the repo
This enables the same way of managing the config as existed with s3cmd's
s3cfg file.
2025-09-18 11:05:18 +02:00
paul mayero dbd769db9f Remove libcloud and s3cmd from fdroidserver 2025-09-17 11:36:12 +00:00
linsui 7a98650ed3 Sort import
ruff check --fix --select I
2025-07-26 15:35:19 +00:00
Hans-Christoph Steiner 4b9100ae80 publish: remove last use of stats/ dir
This file can be treated like the other index files in repo/. This also has
the advantage that it will automatically get synced by @CiaranG's existing
sync scripts.
2025-03-20 15:08:32 +01:00
Hans-Christoph Steiner 66d220bd9f tests: rename testcommon module to shared_test_code
This name always confuses me, since there is also test_common.py. And this
module is not actually a test suite, even though it starts with "test".
This also makes for better tab completion, e.g.

python3 -m unittest tests/te[Tab] -> tests/test_
2025-01-27 10:11:19 +00:00
Hans-Christoph Steiner 487269c667 tests: standardize on VerboseFalseOptions as mock 2024-11-20 10:46:21 +01:00
SilentGhost 7ff32bc4b0 Refactor TestCase files into python modules
Convert all TestCase files into standard python modules to be run and
discovered by unittest.
2024-11-20 10:37:52 +01:00