Skip to content

Commit c44344b

Browse files
authored
feat: add fixtures for create-org e2e test updates (#6401)
* e2e test updates for create-org * chore: save createOrg test changes for second PR
1 parent 966d10a commit c44344b

22 files changed

+298
-10
lines changed

cypress/e2e/cloud/globalHeaderOrgMenuItems.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('FREE: global header menu items test', () => {
3939
Cypress.Cookies.preserveOnce('sid')
4040

4141
makeQuartzUseIDPEOrgID(idpeOrgID)
42-
getOrgCreationAllowance('createOrgAllowance')
42+
getOrgCreationAllowance('createOrg/allowanceFreeFalse')
4343

4444
cy.visit('/')
4545
})
@@ -78,7 +78,7 @@ describe('PAYG: global header menu items test', () => {
7878

7979
beforeEach(() => {
8080
makeQuartzUseIDPEOrgID(idpeOrgID, 'pay_as_you_go')
81-
getOrgCreationAllowance('createOrgAllowancePAYG')
81+
getOrgCreationAllowance('createOrg/allowancePAYGTrue')
8282

8383
cy.visit('/')
8484
})
@@ -117,7 +117,7 @@ describe('Contract: global header menu items test', () => {
117117

118118
beforeEach(() => {
119119
makeQuartzUseIDPEOrgID(idpeOrgID, 'contract')
120-
getOrgCreationAllowance('createOrgAllowanceContract')
120+
getOrgCreationAllowance('createOrg/allowanceContractTrue')
121121

122122
cy.visit('/')
123123
})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"allowed": false,
3+
"availableUpgrade": "none"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"allowed": true,
3+
"availableUpgrade": "pay_as_you_go"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"allowed": false,
3+
"availableUpgrade": "contract"
4+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
[
2+
{
3+
"isProviderAvailable": true,
4+
"isRegionAvailable": true,
5+
"priority": 2,
6+
"providerId": "AWS",
7+
"providerName": "Amazon Web Services",
8+
"regionId": "ap-southeast-2",
9+
"regionName": "Asia Pacific (Australia)"
10+
},
11+
{
12+
"isProviderAvailable": true,
13+
"isRegionAvailable": true,
14+
"priority": 4,
15+
"providerId": "AWS",
16+
"providerName": "Amazon Web Services",
17+
"regionId": "eu-central-1",
18+
"regionName": "EU Frankfurt"
19+
},
20+
{
21+
"isProviderAvailable": true,
22+
"isRegionAvailable": true,
23+
"priority": 1,
24+
"providerId": "AWS",
25+
"providerName": "Amazon Web Services",
26+
"regionId": "us-east-1",
27+
"regionName": "US East (N. Virginia)"
28+
},
29+
{
30+
"isProviderAvailable": true,
31+
"isRegionAvailable": true,
32+
"priority": 3,
33+
"providerId": "AWS",
34+
"providerName": "Amazon Web Services",
35+
"regionId": "us-west-2-2",
36+
"regionName": "US West (Oregon)"
37+
},
38+
{
39+
"isProviderAvailable": true,
40+
"isRegionAvailable": true,
41+
"priority": 1,
42+
"providerId": "Azure",
43+
"providerName": "Microsoft Azure",
44+
"regionId": "eastus",
45+
"regionName": "Virginia"
46+
},
47+
{
48+
"isProviderAvailable": true,
49+
"isRegionAvailable": true,
50+
"priority": 2,
51+
"providerId": "Azure",
52+
"providerName": "Microsoft Azure",
53+
"regionId": "westeurope",
54+
"regionName": "Amsterdam"
55+
},
56+
{
57+
"isProviderAvailable": true,
58+
"isRegionAvailable": true,
59+
"priority": 1,
60+
"providerId": "GCP",
61+
"providerName": "Google Cloud",
62+
"regionId": "eu-west1",
63+
"regionName": "Belgium"
64+
},
65+
{
66+
"isProviderAvailable": true,
67+
"isRegionAvailable": true,
68+
"priority": 2,
69+
"providerId": "GCP",
70+
"providerName": "Google Cloud",
71+
"regionId": "us-central1",
72+
"regionName": "Iowa"
73+
}
74+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"clusterHost": "https://aws-local.aws.cloud2.influxdata.com",
3+
"creationDate": "12/12/2022",
4+
"description": "",
5+
"id": "213901",
6+
"name": "A New Org",
7+
"provider": "AWS",
8+
"regionCode": "aws-local",
9+
"regionName": "aws-local region",
10+
"state": "provisioned"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"clusterHost": "https://aws-local.aws.cloud2.influxdata.com",
3+
"creationDate": "12/12/2022",
4+
"description": "",
5+
"id": "213901",
6+
"name": "A New Org",
7+
"provider": "GCP",
8+
"regionCode": "iowa-local",
9+
"regionName": "Iowa",
10+
"state": "provisioned"
11+
}

0 commit comments

Comments
 (0)