aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2023-06-26 15:52:32 +0200
committersonartech <sonartech@sonarsource.com>2023-06-30 20:02:59 +0000
commit15d956c88581e84caed8e05eb8f6a477850507c2 (patch)
tree0481ef0391b27b5e5ad21e177ea5322ac145551c
parente8305b73e2ebc8fa5c555a88bf9a9f94f4a135c2 (diff)
downloadsonarqube-15d956c88581e84caed8e05eb8f6a477850507c2.tar.gz
sonarqube-15d956c88581e84caed8e05eb8f6a477850507c2.zip
NO-JIRA fix gitlab QA: Gitlab token need to have an expiration date + improve reliability of the test suite
-rw-r--r--.cirrus.yml2
1 files changed, 2 insertions, 0 deletions
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';