Skip to content

Commit 065c83b

Browse files
One more try...
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent 9a0193f commit 065c83b

File tree

11 files changed

+89
-84
lines changed

11 files changed

+89
-84
lines changed

tests/functional/cypress/e2e/v4/company.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ describe('To Validate & get Company Activity Callback via API call', function ()
944944
method: 'POST',
945945
url: url,
946946
timeout: timeout,
947-
failOnStatusCode: allowFail,
947+
failOnStatusCode: false,
948948
headers: getXACLHeader(),
949949
auth: {
950950
bearer: bearerToken,

tests/functional/cypress/e2e/v4/docs.cy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ describe('To Validate & get api-docs via API call', function () {
44
//Reference api doc: https://api-gw.dev.platform.linuxfoundation.org/cla-service/v4/api-docs#tag/docs
55
const claEndpoint = getAPIBaseURL('v4');
66
let allowFail: boolean = !(Cypress.env('ALLOW_FAIL') === 1);
7+
const timeout = 180000;
78

89
it('Endpoint to render the API documentation - Record should return 200 Response', function () {
910
cy.request({
1011
method: 'GET',
1112
url: `${claEndpoint}api-docs`,
12-
timeout: 180000,
13+
timeout: timeout,
1314
failOnStatusCode: allowFail,
1415
}).then((response) => {
1516
validate_200_Status(response);
@@ -20,7 +21,7 @@ describe('To Validate & get api-docs via API call', function () {
2021
cy.request({
2122
method: 'GET',
2223
url: `${claEndpoint}swagger.json`,
23-
timeout: 180000,
24+
timeout: timeout,
2425
failOnStatusCode: allowFail,
2526
}).then((response) => {
2627
validate_200_Status(response);

tests/functional/cypress/e2e/v4/github-repositories.cy.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe('To Validate github-repositories API call', function () {
4242
let gitHubOrgName: string = '';
4343
let branch_name: string = '';
4444
let allowFail: boolean = !(Cypress.env('ALLOW_FAIL') === 1);
45+
const timeout = 180000;
4546

4647
let bearerToken: string = null;
4748
before(() => {
@@ -59,7 +60,7 @@ describe('To Validate github-repositories API call', function () {
5960
cy.request({
6061
method: 'GET',
6162
url: `${claEndpoint}`,
62-
timeout: 180000,
63+
timeout: timeout,
6364
failOnStatusCode: allowFail,
6465
headers: getXACLHeader(),
6566
auth: { bearer: bearerToken },
@@ -91,7 +92,7 @@ describe('To Validate github-repositories API call', function () {
9192
cy.request({
9293
method: 'DELETE',
9394
url: `${claEndpoint}/${repository_id}`,
94-
timeout: 180000,
95+
timeout: timeout,
9596
failOnStatusCode: allowFail,
9697
headers: getXACLHeader(),
9798
auth: {
@@ -106,7 +107,7 @@ describe('To Validate github-repositories API call', function () {
106107
cy.request({
107108
method: 'POST',
108109
url: `${claEndpoint}`,
109-
timeout: 180000,
110+
timeout: timeout,
110111
failOnStatusCode: allowFail,
111112
headers: getXACLHeader(),
112113
auth: {
@@ -144,7 +145,7 @@ describe('To Validate github-repositories API call', function () {
144145
cy.request({
145146
method: 'GET',
146147
url: url,
147-
timeout: 180000,
148+
timeout: timeout,
148149
failOnStatusCode: allowFail,
149150
headers: getXACLHeader(),
150151
auth: {
@@ -172,7 +173,7 @@ describe('To Validate github-repositories API call', function () {
172173
cy.request({
173174
method: 'POST',
174175
url: `${claEndpoint}/${repository_id}/branch-protection`,
175-
timeout: 180000,
176+
timeout: timeout,
176177
failOnStatusCode: allowFail,
177178
headers: getXACLHeader(),
178179
auth: {

tests/functional/cypress/e2e/v4/githubActivity.cy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ describe('To Validate & get GitHub Activity Callback via API call', function ()
1010
//Reference api doc: https://api-gw.dev.platform.linuxfoundation.org/cla-service/v4/api-docs#tag/github-activity
1111
const claEndpoint = getAPIBaseURL('v4') + `github/activity`;
1212
let allowFail: boolean = !(Cypress.env('ALLOW_FAIL') === 1);
13+
const timeout = 180000;
1314

1415
let bearerToken: string = null;
1516
before(() => {
@@ -30,7 +31,7 @@ describe('To Validate & get GitHub Activity Callback via API call', function ()
3031
cy.request({
3132
method: 'POST',
3233
url: `${claEndpoint}`,
33-
timeout: 180000,
34+
timeout: timeout,
3435
failOnStatusCode: allowFail,
3536
auth: {
3637
bearer: bearerToken,

tests/functional/cypress/e2e/v4/gitlab-organizations.cy.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('To Validate & get list of gitlab-organizations via API call', function
5050
cy.request({
5151
method: 'GET',
5252
url: `${claEndpoint}gitlab/group/${organizationExternalId}/members`,
53-
timeout: 180000,
53+
timeout: timeout,
5454
failOnStatusCode: allowFail,
5555
headers: getXACLHeader(),
5656
auth: {
@@ -67,7 +67,7 @@ describe('To Validate & get list of gitlab-organizations via API call', function
6767
cy.request({
6868
method: 'PUT',
6969
url: `${claEndpoint}project/${projectSFID}/gitlab/group/${gitLabGroupID}/config`,
70-
timeout: 180000,
70+
timeout: timeout,
7171
failOnStatusCode: allowFail,
7272
headers: getXACLHeader(),
7373
auth: {
@@ -90,7 +90,7 @@ describe('To Validate & get list of gitlab-organizations via API call', function
9090
cy.request({
9191
method: 'POST',
9292
url: `${claEndpoint}project/${projectSFID}/gitlab/organizations`,
93-
timeout: 180000,
93+
timeout: timeout,
9494
failOnStatusCode: allowFail,
9595
headers: getXACLHeader(),
9696
auth: {
@@ -120,7 +120,7 @@ describe('To Validate & get list of gitlab-organizations via API call', function
120120
cy.request({
121121
method: 'DELETE',
122122
url: `${claEndpoint}project/${projectSFID}/gitlab/organization?organization_full_path=${gitLabOrganizationFullPath}`,
123-
timeout: 180000,
123+
timeout: timeout,
124124
failOnStatusCode: allowFail,
125125
headers: getXACLHeader(),
126126
auth: {
@@ -373,7 +373,7 @@ describe('To Validate & get list of gitlab-organizations via API call', function
373373
cy.request({
374374
method: 'GET',
375375
url: `${claEndpoint}project/${projectSFID}/gitlab/organizations`,
376-
timeout: 180000,
376+
timeout: timeout,
377377
failOnStatusCode: allowFail,
378378
headers: getXACLHeader(),
379379
auth: {

tests/functional/cypress/e2e/v4/gitlab-repositories.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('To Validate & Get the GitLab repositories of the project via API call'
4646
cy.request({
4747
method: 'GET',
4848
url: `${claEndpoint}`,
49-
timeout: 180000,
49+
timeout: timeout,
5050
failOnStatusCode: allowFail,
5151
headers: getXACLHeader(),
5252
auth: {
@@ -71,7 +71,7 @@ describe('To Validate & Get the GitLab repositories of the project via API call'
7171
cy.request({
7272
method: 'PUT',
7373
url: `${claEndpoint}`,
74-
timeout: 180000,
74+
timeout: timeout,
7575
failOnStatusCode: allowFail,
7676
headers: getXACLHeader(),
7777
auth: {
@@ -99,7 +99,7 @@ describe('To Validate & Get the GitLab repositories of the project via API call'
9999
cy.request({
100100
method: 'PUT',
101101
url: `${claEndpoint}`,
102-
timeout: 180000,
102+
timeout: timeout,
103103
failOnStatusCode: allowFail,
104104
headers: getXACLHeader(),
105105
auth: {

tests/functional/cypress/e2e/v4/health.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('To Validate & get health status via API call', function () {
1111
//Reference api doc: https://api-gw.dev.platform.linuxfoundation.org/cla-service/v4/api-docs#tag/health/operation/healthCheck
1212
const claEndpoint = getAPIBaseURL('v4');
1313
let allowFail: boolean = !(Cypress.env('ALLOW_FAIL') === 1);
14-
const timeout = 60000;
14+
const timeout = 180000;
1515
const local = Cypress.env('LOCAL');
1616

1717
let bearerToken: string = null;
@@ -28,7 +28,7 @@ describe('To Validate & get health status via API call', function () {
2828
cy.request({
2929
method: 'GET',
3030
url: `${claEndpoint}ops/health`,
31-
timeout: 180000,
31+
timeout: timeout,
3232
failOnStatusCode: allowFail,
3333
headers: getXACLHeader(),
3434
auth: {
@@ -45,7 +45,7 @@ describe('To Validate & get health status via API call', function () {
4545
cy.request({
4646
method: 'GET',
4747
url: `${claEndpoint}ops/health`,
48-
timeout: 180000,
48+
timeout: timeout,
4949
failOnStatusCode: allowFail,
5050
headers: getXACLHeader(),
5151
// No auth - health endpoint is public

tests/functional/cypress/e2e/v4/metrics.cy.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
describe('To Validate cla-manager API call', function () {
1313
// Define a variable for the environment
1414
const environment = Cypress.env('CYPRESS_ENV');
15+
const timeout = 180000;
1516

1617
// Import the appropriate configuration based on the environment
1718
let appConfig;
@@ -46,7 +47,7 @@ describe('To Validate cla-manager API call', function () {
4647
cy.request({
4748
method: 'GET',
4849
url: `${claEndpoint}cla-manager-distribution`,
49-
timeout: 180000,
50+
timeout: timeout,
5051
failOnStatusCode: allowFail,
5152
headers: getXACLHeader(),
5253
auth: {
@@ -62,7 +63,7 @@ describe('To Validate cla-manager API call', function () {
6263
cy.request({
6364
method: 'GET',
6465
url: `${claEndpoint}company/${companyID}`,
65-
timeout: 180000,
66+
timeout: timeout,
6667
failOnStatusCode: allowFail,
6768
headers: getXACLHeader(),
6869
auth: {
@@ -80,7 +81,7 @@ describe('To Validate cla-manager API call', function () {
8081
cy.request({
8182
method: 'GET',
8283
url: `${claEndpoint}company/${companyID}/project/${projectSFID}`,
83-
timeout: 180000,
84+
timeout: timeout,
8485
failOnStatusCode: allowFail,
8586
headers: getXACLHeader(),
8687
auth: {
@@ -102,7 +103,7 @@ describe('To Validate cla-manager API call', function () {
102103
cy.request({
103104
method: 'GET',
104105
url: `${claEndpoint}project`,
105-
timeout: 180000,
106+
timeout: timeout,
106107
failOnStatusCode: allowFail,
107108
headers: getXACLHeader(),
108109
auth: {
@@ -121,7 +122,7 @@ describe('To Validate cla-manager API call', function () {
121122
cy.request({
122123
method: 'GET',
123124
url: `${claEndpoint}project?=${projectID}`,
124-
timeout: 180000,
125+
timeout: timeout,
125126
failOnStatusCode: allowFail,
126127
headers: getXACLHeader(),
127128
auth: {
@@ -137,7 +138,7 @@ describe('To Validate cla-manager API call', function () {
137138
cy.request({
138139
method: 'GET',
139140
url: `${claEndpoint}top-companies`,
140-
timeout: 180000,
141+
timeout: timeout,
141142
failOnStatusCode: allowFail,
142143
headers: getXACLHeader(),
143144
auth: {
@@ -153,7 +154,7 @@ describe('To Validate cla-manager API call', function () {
153154
cy.request({
154155
method: 'GET',
155156
url: `${claEndpoint}top-projects`,
156-
timeout: 180000,
157+
timeout: timeout,
157158
failOnStatusCode: allowFail,
158159
headers: getXACLHeader(),
159160
auth: {
@@ -169,7 +170,7 @@ describe('To Validate cla-manager API call', function () {
169170
cy.request({
170171
method: 'GET',
171172
url: `${claEndpoint}total-count`,
172-
timeout: 180000,
173+
timeout: timeout,
173174
failOnStatusCode: allowFail,
174175
headers: getXACLHeader(),
175176
auth: {
@@ -372,7 +373,7 @@ describe('To Validate cla-manager API call', function () {
372373
cy.request({
373374
method: 'GET',
374375
url: `${URL}?nextKey=${NextKey}&pageSize=100`,
375-
timeout: 180000,
376+
timeout: timeout,
376377
failOnStatusCode: allowFail,
377378
headers: getXACLHeader(),
378379
auth: {

tests/functional/cypress/e2e/v4/projects.cy.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('To Validate & get projects Activity Callback via API call', function (
4848
cy.request({
4949
method: 'GET',
5050
url: `${claEndpoint}`,
51-
timeout: 180000,
51+
timeout: timeout,
5252
failOnStatusCode: allowFail,
5353
headers: getXACLHeader(),
5454
auth: {
@@ -64,7 +64,7 @@ describe('To Validate & get projects Activity Callback via API call', function (
6464
cy.request({
6565
method: 'GET',
6666
url: `${claEndpoint}/enabled/${foundationSFID}`,
67-
timeout: 180000,
67+
timeout: timeout,
6868
failOnStatusCode: allowFail,
6969
headers: getXACLHeader(),
7070
auth: {
@@ -93,7 +93,7 @@ describe('To Validate & get projects Activity Callback via API call', function (
9393
cy.request({
9494
method: 'GET',
9595
url: url,
96-
timeout: 180000,
96+
timeout: timeout,
9797
failOnStatusCode: allowFail,
9898
headers: getXACLHeader(),
9999
auth: {
@@ -111,7 +111,7 @@ describe('To Validate & get projects Activity Callback via API call', function (
111111
cy.request({
112112
method: 'GET',
113113
url: url,
114-
timeout: 180000,
114+
timeout: timeout,
115115
failOnStatusCode: allowFail,
116116
headers: getXACLHeader(),
117117
auth: {
@@ -130,7 +130,7 @@ describe('To Validate & get projects Activity Callback via API call', function (
130130
cy.request({
131131
method: 'GET',
132132
url: url,
133-
timeout: 180000,
133+
timeout: timeout,
134134
failOnStatusCode: allowFail,
135135
headers: getXACLHeader(),
136136
auth: {
@@ -150,7 +150,7 @@ describe('To Validate & get projects Activity Callback via API call', function (
150150
cy.request({
151151
method: 'GET',
152152
url: url,
153-
timeout: 180000,
153+
timeout: timeout,
154154
failOnStatusCode: allowFail,
155155
headers: getXACLHeader(),
156156
auth: {
@@ -167,8 +167,8 @@ describe('To Validate & get projects Activity Callback via API call', function (
167167
cy.request({
168168
method: 'DELETE',
169169
url: `${claEndpoint}/${projectSfid}`,
170-
timeout: 180000,
171-
failOnStatusCode: allowFail,
170+
timeout: timeout,
171+
failOnStatusCode: false,
172172
headers: getXACLHeader(),
173173
auth: {
174174
bearer: bearerToken,

0 commit comments

Comments
 (0)