test(scaffolder-backend-module-gitlab): fix tests for gitlabProjectAccessTokenCreate examples

Fixes tests created in #25713

Signed-off-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
This commit is contained in:
Thomas Cardonne
2024-07-22 22:19:06 +02:00
parent 7b3f59211c
commit 3ca333b683
@@ -215,7 +215,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 30,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -271,7 +271,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 40,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -299,7 +299,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository', 'read_api'],
{
accessLevel: 40,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -327,7 +327,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 10,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -355,7 +355,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 40,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -383,7 +383,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 50,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -411,7 +411,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 40,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);
@@ -439,7 +439,7 @@ describe('gitlab:projectAccessToken:create examples', () => {
['read_repository'],
{
accessLevel: 40,
expiresAt: '2025-07-21',
expiresAt: DateTime.now().plus({ days: 365 }).toISODate()!,
},
);