about summary refs log tree commit diff
path: root/nixos/tests/gitea.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-11-07nixosTests.gitea: remove emilylange from maintainersemilylange1-1/+1
I no longer contribute to this test nor do I plan to do so in the future. My contributions moved to nixosTests.forgejo, after we (nixpkgs) decided to split the gitea and forgejo nixpkgs modules.
2023-10-07nixos/gitea: Add option to supply the metrics token via fileTristan Daniël Maat1-0/+8
2023-07-28nixos/tests/gitea: Test actions runner registrationMartin Weinelt1-1/+26
2023-07-17nixos/tests/gitea: fixMaximilian Bosch1-5/+1
* Since Gitea 1.20 the request to `/commits` requires at least one retry because it appears to take a moment until Gitea actually knows that this repo isn't empty anymore (previously on 1.20 this failed with HTTP 409 which occurs when the requested repo is empty). * Remove `*.shutdown()`, for some reason they hang regularly for unknown reasons.
2023-05-21maintainers: rename indeednotjames to emilylangeemilylange1-1/+1
2023-05-09nixosTests.gitea,nixosTests.forgejo: fix test on `i686-linux`IndeedNotJames1-1/+1
Fail pattern: 1. Unsuspecting `qemu-kvm` notice: ``` server # qemu-kvm: at most 2047 MB RAM can be simulated ``` 2. Hard fail ``` self.shell.send(out_command.encode()) BrokenPipeError: [Errno 32] Broken pipe ``` (Took me a while to consider those lines are related)
2023-04-21nixosTests.gitea: fix sshd race conditionIndeedNotJames1-0/+1
2023-03-20gitea: 1.18.5 -> 1.19.0Maximilian Bosch1-1/+1
ChangeLog: https://github.com/go-gitea/gitea/releases/tag/v1.19.0
2023-03-03nixos/tests/gitea: keep calling the file itself evaluatableMaximilian Bosch1-1/+1
When I work on something gitea-related I want to be able to just do `nix-build nixos/tests/gitea.nix` to run the tests.
2023-03-01nixos/tests/gitea: test gpg commit signing keyIndeedNotJames1-1/+24
`/api/v1/signing-key.gpg` spawns a `gpg` process, which is great to test if `gpg` is available and can be invoked from in the unit. Which is somewhat relevant, since `gpg` was missing from the unit's `$PATH` until recently. And even after adding `gpg` to the unit's `$PATH`, configuring commit signing for a instance resulted in http/500s nonetheless. That's due to `@memlock` being present in `SystemCallFilter=~` and `gpg` trying to use `mlock` (probably to prevent secrets in the memory to swap), resulting in an immediate `SIGKILL` of any spawned `gpg` processes.
2023-02-24nixos/tests/gitea: add indeednotjames as maintainerIndeedNotJames1-1/+1
Mostly, because I (@IndeedNotJames) made a slight change to those tests and intend on extending them in the future.
2023-02-24nixos/tests/gitea: make gitea package configurableIndeedNotJames1-2/+4
This allows the same tests to be used for forgejo, a soft-fork of gitea, which currently does not have any tests.
2022-09-07nixosTests.gitea.*: adapt to option renamingkilianar1-1/+1
2021-04-11gitea: 1.13.7 -> 1.14.0Maximilian Bosch1-1/+1
ChangeLog: https://github.com/go-gitea/gitea/releases/tag/v1.14.0
2020-12-02nixos/tests/gitea: increase memory for VMMaximilian Bosch1-0/+1
Otherwise, the relevant processes are stopped by the kernel's OOM killer[1]. [1] https://github.com/NixOS/nixpkgs/pull/105698#issuecomment-737257293
2019-12-12nixos/gitea: test creation and cloning of a repo via sshMaximilian Bosch1-11/+85
2019-12-06nixos/gitea: simplify testMaximilian Bosch1-49/+15
This reduces the length of the gitea-test by creating a single `makeGiteaTest` function which creates the configuration for a testcase with a given database driver.
2019-11-04nixos/gitea: convert test to pythonJana Traue1-14/+16
2019-06-10nixos/gitea: utilize mysql|postgresql.ensureDatabases & ensureUsers to ↵Aaron Andersen1-14/+2
provision databases
2019-05-11maintainers: add kolaentekolaente1-1/+1
2019-02-11nixos/tests/gitea: fix eval warningsPierre Bourdon1-1/+1
trace: warning: config.services.gitea.database.password will be stored as plaintext in the Nix store. Use database.passwordFile instead. (Arguably, this shouldn't be a warning at all. But making it happy is easier than having a debate on the value of this warning.)
2019-01-14nixos/gitea: add option to disable registrationMaximilian Bosch1-0/+2
Although this can be added to `extraOptions` I figured that it makes sense to add an option to explicitly promote this feature in our documentation since most of the self-hosted gitea instances won't be intended for common use I guess. Also added a notice that this should be added after the initial deploy as you have to register yourself using that feature unless the install wizard is used.
2018-11-11tests: refactor to carry the package set as an argumentLéo Gaspard1-2/+5
This way, the package set will be possible to pass without re-importing all the time
2018-11-08nixos/gitea: add a nixos test to ensure the initial database migration ↵Aaron Andersen1-0/+74
succeeds so the application can start