From: Pierre Date: Mon, 26 Jun 2023 13:52:32 +0000 (+0200) Subject: NO-JIRA fix gitlab QA: Gitlab token need to have an expiration date + improve reliabi... X-Git-Tag: 9.9.2.77730~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15d956c88581e84caed8e05eb8f6a477850507c2;p=sonarqube.git NO-JIRA fix gitlab QA: Gitlab token need to have an expiration date + improve reliability of the test suite --- diff --git a/.cirrus.yml b/.cirrus.yml index 1409819dc9a..8e943af017c 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -422,9 +422,11 @@ qa_gitlab_task: { cat >/tmp/setup.rb <<-'EOF' token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token'); token.set_token('token-here-456'); + token.expires_at = Date.today+10.day token.save!; token_read = User.find_by_username('root').personal_access_tokens.create(scopes: [:read_user], name: 'token_read'); token_read.set_token('token-read-123'); + token_read.expires_at = Date.today+10.day token_read.save!; user = User.find_by_username('root'); user.password = 'eng-YTU1ydh6kyt7tjd';