Skip to content

Increase tests personal access token expiry

Désirée Chevalier requested to merge qa-increase-test-token-expiry into master

What does this MR do?

This increases the personal access token expiration by 1 day so that people in certain timezones can run the tests locally after a certain time.

When I run the tests on my GDK after 8pm (EDT), the token is immediately expired, giving this error:

...using the API failed (401) with `{"error":"invalid_token","error_description":"Token is expired. You can either do re-authorization or token refresh."}`.

If I increase the expiry to 3, the token is created with an expiration date of today's date + 1 and the tests run.

Screenshots

Date is entered as today's date + 2: Screen_Shot_2020-06-01_at_8.35.38_PM
Once selected, date changes to today's date + 1: Screen_Shot_2020-06-01_at_8.40.23_PM
Token says it's created but it's already expired: Screen_Shot_2020-06-01_at_8.36.20_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports