summaryrefslogtreecommitdiff
path: root/internal/testhelper
Commit message (Collapse)AuthorAgeFilesLines
* refactor: move away from ioutil (deprecated)feistel2021-08-191-2/+1
|
* Remove some unreliable testsNick Thomas2021-07-301-25/+0
| | | | | | | | | | | | | Logrus buffers its output internally, which makes these tests fail intermittently. They're also not a good example to follow generally. We now have acceptance tests that exercise this functionality so I'm pretty relaxed about losing the expectations. However, we can test them by inspecting the server-received metadata too, so there's no loss of coverage here. The move from logrus to labkit for logging also makes these tests hard to justify keeping.
* Sshd: Log same correlation_id on auth keysIgor Drozdov2021-07-271-0/+1
|
* Fix formatting via make fmtStan Hu2021-07-261-1/+1
|
* Refactor testhelper.PrepareTestRootDir using t.CleanupIgor Drozdov2021-07-141-29/+10
|
* Add a simple acceptance test for git-receive-packSean McGivern2021-05-201-3/+3
|
* Add acceptance test for git-lfs-authenticateSean McGivern2021-05-171-0/+22
|
* Replace cleanup functions with t.CleanupIgor Drozdov2021-03-171-1/+1
| | | | | In this case we don't need to propagate cleanup function. It simplifies the code.
* GitLab API Client support for client certificatesPaul Okstad2020-11-172-0/+86
|
* Log SSH key detailsStan Hu2020-07-231-2/+4
| | | | | | | | | | | | | | | | | | | | | Right now when a client such as gitlab-shell calls the `/api/v4/internal/allowed` API, the response only tells the client what user has been granted access, and it's impossible to tell which deploy key/token was used in the authentication request. This commit adds logs for the following when available: 1. `gl_key_type` (e.g. `deploy_key` or `key`) 2. `gl_key_id` These fields make it possible for admins to identify the exact record that was used to authenticate the user. API changes in the `/internal/allowed` endpoint in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37289 are needed to support this. Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/203
* Fix race conditions with logrus testingsh-fix-logrus-raceStan Hu2020-05-111-0/+16
| | | | | | | | | logrus fires a Goroutine to write logs, so the tests could fail if they checked the event queue before the logrus have fired. Since there isn't an easy way to flush all outstanding hooks, we just retry every 100 ms for up to a second for log to arrive in the queue. Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450
* Move gitlabnet client to client packagejc-refactor-gitlabnet-clientJohn Cai2020-05-041-1/+1
|
* Geo Pull custom action supportAsh McKenzie2020-04-171-0/+40
|
* Rename allowed payload JSON for accuracyAsh McKenzie2020-04-171-1/+1
|
* Extract customaction into a separate moduleid-extract-custom-action-in-separate-moduleIgor Drozdov2020-04-141-0/+40
| | | | We'll reuse this module for uploadpack in the future
* Log internal HTTP requestsStan Hu2020-03-101-0/+9
| | | | | | | This restores the previous behavior of logging the success and failures of internal HTTP requests. Part of https://gitlab.com/gitlab-org/gitlab/issues/207916
* Remove support for Custom data.info_message210-remove-action-custom-inform_client-once-12-3-has-been-releasedAsh McKenzie2019-12-241-2/+1
|
* Merge branch 'pass-ff-to-gitaly' into 'master'Ash McKenzie2019-10-291-0/+5
| | | | | Add support for Gitaly feature flags See merge request gitlab-org/gitlab-shell!351
* Rename import pathsNick Thomas2019-10-181-1/+1
|
* Move go code up one levelNick Thomas2019-10-1812-0/+265