From 152d00901ba809b18ed909b263ccdc34bbd39fa4 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Wed, 10 Jan 2024 18:35:43 +0100 Subject: [PATCH] fix: GitLab test (#2112) * fix: GitLab test Update to URL used in newer versions of GitLab. Signed-off-by: Matej Vasek * fixup: increase resource limit Signed-off-by: Matej Vasek --------- Signed-off-by: Matej Vasek --- hack/install-gitlab.sh | 4 ++-- pkg/pipelines/tekton/gitlab_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/install-gitlab.sh b/hack/install-gitlab.sh index 1d6779905..03a0c5410 100755 --- a/hack/install-gitlab.sh +++ b/hack/install-gitlab.sh @@ -81,9 +81,9 @@ spec: name: ssh resources: requests: - memory: "1024Mi" - limits: memory: "2048Mi" + limits: + memory: "4096Mi" volumes: - name: gitlab persistentVolumeClaim: diff --git a/pkg/pipelines/tekton/gitlab_test.go b/pkg/pipelines/tekton/gitlab_test.go index 580f8f617..350d85db4 100644 --- a/pkg/pipelines/tekton/gitlab_test.go +++ b/pkg/pipelines/tekton/gitlab_test.go @@ -410,7 +410,7 @@ func getAPIToken(baseURL, username, password string) (string, error) { return "", fmt.Errorf("cannot sign in, unexpected status: %d", resp.StatusCode) } - personalAccessTokensURL := baseURL + "/-/profile/personal_access_tokens" + personalAccessTokensURL := baseURL + "/-/user_settings/personal_access_tokens" resp, err = c.Get(personalAccessTokensURL) if err != nil {