about summary refs log tree commit diff
path: root/nixos/tests/gitlab.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-04-02nixos/tests/gitlab: reduce memory usageYureka1-0/+4
Co-Authored-By: Yaya <github@uwu.is>
2024-02-07nixos/services.gitlab: loosen the coupling between gitlab and postgres/ ↵Oliver Schmidt1-1/+1
redis to avoid restarts and races Gitlab stays running at redis and postgresql restarts as if these components were on a different host anyways. Handling reconnetctions is part of the application logic. Co-authored-by: Kim Lindberger <kim.lindberger@gmail.com> for formatting fixes and test failure debugging.
2023-12-18nixos/tests/gitlab: download even more RAMK9001-1/+1
Also remove the 32-bit conditional as it already fails on 4GB.
2023-05-31nixosTests.gitlab: fix project idsYureka1-2/+2
2023-05-12nixos/tests/gitlab.nix: get rid of `with lib`Anderson Torres1-10/+6
2023-05-11nixos/tests/gitlab.nix: Document running it Robert Hensing1-0/+3
`nix-build $file` is not possible anymore, so this helps both newcomers and old hands. It's documented in the manual, but that's far away.
2023-05-11nixosTests.gitlab: Use module system based runnerYaya1-7/+7
2023-03-10Merge branch 'gitlab-pages' of github.com:talyz/nixpkgs into HEADYureka1-7/+5
2023-01-17nixos/gitlab: Improve support for GitLab Pagestalyz1-7/+5
- provide options and set defaults for important settings - generate the shared secret - reenable gitlab-pages in test
2023-01-10nixos/tests/gitlab: Fix a regression introduced in 15.7.0Yaya1-2/+2
``` {"message":{"password":["must not contain commonly used combinations of words and letters"]}} ```
2022-07-17nixos/tests/gitlab: Optimize with EROFSRobert Hensing1-0/+2
2022-05-02nixos/tests/gitlab: Add additional test cases (#167223)Yaya1-25/+298
This commit implements the following additional test cases for gitlab: - Creating regular users - git clone over http and ssh - git push over ssh - Forking projects - Creating and merging Merge Requests - Opening and closing issues.
2022-03-31nixos/tests/gitlab: Add yayayayaka to maintainersYaya1-1/+1
2022-03-31nixos/tests/gitlab: Check HTTP response codesYaya1-4/+10
cURL always exits with `0` even when the HTTP response codes are above 400, leading to false-positive test results.
2022-03-31nixos/tests/gitlab: Fix project idYaya1-3/+3
Gitlab automatically creates a repository, taking away the project id=1.
2022-03-31nixos/tests/gitlab: Fix Authorization Bearer fieldYaya1-1/+1
Due to an incorrect shell escape the Authorization Bearer Token was not present in the cURL request headers.
2021-10-28gitlab.tests: Improve test performancetalyz1-0/+2
Massively reduce the time it takes running the test by building a proper root disk image and increasing the virtualized core count to 4. This should make it much easier for the tests to pass even on weaker systems. With my laptop (AMD Ryzen 7 PRO 2700U) as the reference system, I see the following test run times: - No change: Times out after 28 mins - Building a root image: 7 mins, 48 secs - Building a root image and bumping the core count: 7 mins, 17 secs The times include the time it takes to build the image (~1 min, 20 secs).
2021-08-26gitlab: 14.1.2 -> 14.2.1talyz1-1/+2
2021-08-02nixos/tests/gitlab: disable gitlab-pages testsYureka1-5/+7
2021-06-05nixosTests.*: Don't use the `-q` flag with grep when used with curltalyz1-1/+1
The `-q` flag makes grep close the pipe early, which curl doesn't handle gracefully, but exits with an error like "(23) Failed writing body".
2021-04-27Revert "nixos/tests/gitlab: add 32 byte secrets"talyz1-3/+3
This reverts commit d6e0d38b84a00b2ab05324b69e3253d956bb5be7. We need shorter secrets to continue working, since the earlier recommendation was too short and there's no way to rotate the them.
2021-03-30gitlab.tests: Test backup and restoretalyz1-52/+83
Test the automatic backup and restore functionality by backing up the instance after running the initial tests, stopping GitLab and removing all state, running the restore rake task, then running the tests again, but without pushing data.
2021-02-26nixosTests.gitlab: Test pages and mailroom service starttalyz1-0/+26
Make sure that the `gitlab-pages` and `gitlab-mailroom` services at least start.
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2020-11-21nixos/tests/gitlab: add 32 byte secretsMilan Pässler1-3/+3
2019-11-22nixosTests.gitlab: port to pythonFlorian Klink1-17/+31
2019-09-07Merge pull request #66274 from talyz/gitlabFlorian Klink1-36/+6
nixos/gitlab: Add support for secure secrets and more
2019-09-06nixos/gitlab: Add support for storing secrets in filestalyz1-36/+6
Add support for storing secrets in files outside the nix store, since files in the nix store are world-readable and secrets therefore can't be stored safely there. The old string options are kept, since they can potentially be handy for testing purposes, but their descriptions now state that they shouldn't be used in production. The manual section is updated to use the file options rather than the string options and the tests now test both.
2019-08-26treewide: remove redundant quotesvolth1-1/+1
2019-03-12nixos/gitlab: improved test to check download of repository archivesJohan Thomsen1-3/+33
2018-12-16gitlab: run test with 4096 bits if on 64bit, else the the maximum for 32bitFlorian Klink1-1/+1
2018-12-05pkgsi686Linux.nixosTests.gitlab: fix 32 bit testsFlorian Klink1-1/+1
GitLab 11.5.1 dropped the dependency to posix_spawn, which is broken on 32bit. (See https://gitlab.com/gitlab-org/gitlab-ce/issues/53525) The only part missing is decreasing virtualisation.memorySize to something that a 32 bit qemu still executes. The maximum seems to be 2047, and tests passed with that value for me.
2018-11-23gitlab tests: enable recommendedProxySettings, test redirection works as it ↵Florian Klink1-1/+3
should The nixos test is a bit misleading, as the given nginx configuration would always cause gitlab to redirect to localhost, which is clearly not what you want in a production setup. Instead we now enable services.nginx.recommendedProxySettings, curl against http://gitlab, and assure we get redirected to that same hostname, too.
2018-11-14gitlab: fix smtp settingRobin Gloster1-0/+1
fixes #50163
2018-11-02gitlab: refactor and fix testRobin Gloster1-5/+13
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-1/+1
2017-11-06nixos/tests/gitlab.nix: Unbreak config, still times outSarah Brofeldt1-3/+51
2016-05-17rename iElectric to domenkozar to match GitHubDomen Kožar1-1/+1
2015-07-12all tests: added meta.maintainers sectionJoachim Schiele1-2/+5
2014-12-17nixos/tests/gitlab.nix: set TimeoutStartSec to 10minDomen Kožar1-0/+1
(cherry picked from commit 5bafb9cf0fea00470be4ff9b342849339297eeb4) Signed-off-by: Domen Kožar <domen@dev.si>
2014-12-14nixos/gitlab: imporove testsJaka Hudoklin1-1/+2
2014-12-12nixos/gitlab: fixesJaka Hudoklin1-0/+19
- fix timezone data not found - fix module, add simple test - allow to set port