Skip to content

Commit a2310d1

Browse files
updates e2e test files
1 parent f7ebeda commit a2310d1

14 files changed

+292
-238
lines changed

tools/cli/test/data/split/dev/openapi-v2-2023-01-01.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43904,12 +43904,12 @@
4390443904
{
4390543905
"lang": "cURL",
4390643906
"label": "curl (Service Accounts)",
43907-
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz?pretty=true\""
43907+
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+gzip\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz\" \\\n --output \"file_name.gzip\""
4390843908
},
4390943909
{
4391043910
"lang": "cURL",
4391143911
"label": "curl (Digest)",
43912-
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz?pretty=true\""
43912+
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+gzip\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz\" \\\n --output \"file_name.gzip\""
4391343913
}
4391443914
]
4391543915
}
@@ -46165,12 +46165,12 @@
4616546165
{
4616646166
"lang": "cURL",
4616746167
"label": "curl (Service Accounts)",
46168-
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz?pretty=true\""
46168+
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+gzip\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz\" \\\n --output \"file_name.gzip\""
4616946169
},
4617046170
{
4617146171
"lang": "cURL",
4617246172
"label": "curl (Digest)",
46173-
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz?pretty=true\""
46173+
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+gzip\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz\" \\\n --output \"file_name.gzip\""
4617446174
}
4617546175
],
4617646176
"x-sunset": "2025-06-01"
@@ -47992,12 +47992,12 @@
4799247992
{
4799347993
"lang": "cURL",
4799447994
"label": "curl (Service Accounts)",
47995-
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz?pretty=true\""
47995+
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+gzip\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz\" \\\n --output \"file_name.gzip\""
4799647996
},
4799747997
{
4799847998
"lang": "cURL",
4799947999
"label": "curl (Digest)",
48000-
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz?pretty=true\""
48000+
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+gzip\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz\" \\\n --output \"file_name.gzip\""
4800148001
}
4800248002
]
4800348003
}
@@ -61556,12 +61556,12 @@
6155661556
{
6155761557
"lang": "cURL",
6155861558
"label": "curl (Service Accounts)",
61559-
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}?pretty=true\""
61559+
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+csv\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}?pretty=true\""
6156061560
},
6156161561
{
6156261562
"lang": "cURL",
6156361563
"label": "curl (Digest)",
61564-
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}?pretty=true\""
61564+
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+csv\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}?pretty=true\""
6156561565
}
6156661566
]
6156761567
}
@@ -62827,12 +62827,12 @@
6282762827
{
6282862828
"lang": "cURL",
6282962829
"label": "curl (Service Accounts)",
62830-
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv?pretty=true\""
62830+
"source": "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n --header \"Accept: application/vnd.atlas.2023-01-01+csv\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv?pretty=true\""
6283162831
},
6283262832
{
6283362833
"lang": "cURL",
6283462834
"label": "curl (Digest)",
62835-
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+json\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv?pretty=true\""
62835+
"source": "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n --header \"Accept: application/vnd.atlas.2023-01-01+csv\" \\\n -X GET \"https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv?pretty=true\""
6283662836
}
6283762837
]
6283862838
}

tools/cli/test/data/split/dev/openapi-v2-2023-01-01.yaml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37470,15 +37470,17 @@ paths:
3747037470
lang: cURL
3747137471
source: |-
3747237472
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
37473-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
37474-
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz?pretty=true"
37473+
--header "Accept: application/vnd.atlas.2023-01-01+gzip" \
37474+
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz" \
37475+
--output "file_name.gzip"
3747537476
- label: curl (Digest)
3747637477
lang: cURL
3747737478
source: |-
3747837479
curl --user "${PUBLIC_KEY}:${PRIVATE_KEY}" \
3747937480
--digest \
37480-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
37481-
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz?pretty=true"
37481+
--header "Accept: application/vnd.atlas.2023-01-01+gzip" \
37482+
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz" \
37483+
--output "file_name.gzip"
3748237484
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/outageSimulation:
3748337485
delete:
3748437486
description: Ends a cluster outage simulation.
@@ -39360,15 +39362,17 @@ paths:
3936039362
lang: cURL
3936139363
source: |-
3936239364
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
39363-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
39364-
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz?pretty=true"
39365+
--header "Accept: application/vnd.atlas.2023-01-01+gzip" \
39366+
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz" \
39367+
--output "file_name.gzip"
3936539368
- label: curl (Digest)
3936639369
lang: cURL
3936739370
source: |-
3936839371
curl --user "${PUBLIC_KEY}:${PRIVATE_KEY}" \
3936939372
--digest \
39370-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
39371-
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz?pretty=true"
39373+
--header "Accept: application/vnd.atlas.2023-01-01+gzip" \
39374+
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gz" \
39375+
--output "file_name.gzip"
3937239376
x-sunset: "2025-06-01"
3937339377
/api/atlas/v2/groups/{groupId}/clusters/provider/regions:
3937439378
get:
@@ -41412,15 +41416,17 @@ paths:
4141241416
lang: cURL
4141341417
source: |-
4141441418
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
41415-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
41416-
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz?pretty=true"
41419+
--header "Accept: application/vnd.atlas.2023-01-01+gzip" \
41420+
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz" \
41421+
--output "file_name.gzip"
4141741422
- label: curl (Digest)
4141841423
lang: cURL
4141941424
source: |-
4142041425
curl --user "${PUBLIC_KEY}:${PRIVATE_KEY}" \
4142141426
--digest \
41422-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
41423-
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz?pretty=true"
41427+
--header "Accept: application/vnd.atlas.2023-01-01+gzip" \
41428+
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dataFederation/{tenantName}/queryLogs.gz" \
41429+
--output "file_name.gzip"
4142441430
/api/atlas/v2/groups/{groupId}/databaseUsers:
4142541431
get:
4142641432
description: Returns all database users that belong to the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
@@ -54709,14 +54715,14 @@ paths:
5470954715
lang: cURL
5471054716
source: |-
5471154717
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
54712-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
54718+
--header "Accept: application/vnd.atlas.2023-01-01+csv" \
5471354719
-X GET "https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}?pretty=true"
5471454720
- label: curl (Digest)
5471554721
lang: cURL
5471654722
source: |-
5471754723
curl --user "${PUBLIC_KEY}:${PRIVATE_KEY}" \
5471854724
--digest \
54719-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
54725+
--header "Accept: application/vnd.atlas.2023-01-01+csv" \
5472054726
-X GET "https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}?pretty=true"
5472154727
/api/atlas/v2/orgs/{orgId}/events:
5472254728
get:
@@ -55868,14 +55874,14 @@ paths:
5586855874
lang: cURL
5586955875
source: |-
5587055876
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
55871-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
55877+
--header "Accept: application/vnd.atlas.2023-01-01+csv" \
5587255878
-X GET "https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv?pretty=true"
5587355879
- label: curl (Digest)
5587455880
lang: cURL
5587555881
source: |-
5587655882
curl --user "${PUBLIC_KEY}:${PRIVATE_KEY}" \
5587755883
--digest \
55878-
--header "Accept: application/vnd.atlas.2023-01-01+json" \
55884+
--header "Accept: application/vnd.atlas.2023-01-01+csv" \
5587955885
-X GET "https://cloud.mongodb.com/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv?pretty=true"
5588055886
/api/atlas/v2/orgs/{orgId}/invoices/pending:
5588155887
get:

0 commit comments

Comments
 (0)