Skip to content

Commit 45779ab

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use unique in fastly tests name (#1064)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 627b75b commit 45779ab

File tree

9 files changed

+69
-69
lines changed

9 files changed

+69
-69
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-03-07 22:36:05.692522",
8-
"spec_repo_commit": "73e66c9a"
7+
"regenerated": "2023-03-13 10:16:17.697859",
8+
"spec_repo_commit": "5ad82066"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-07 22:36:05.705736",
13-
"spec_repo_commit": "73e66c9a"
12+
"regenerated": "2023-03-13 10:16:17.712054",
13+
"spec_repo_commit": "5ad82066"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-11-11T16:54:36.129Z"
1+
"2023-03-13T10:11:14.475Z"

cassettes/v2/Fastly-Integration_4018761042/Get-Fastly-account-returns-OK-response_936775753/recording.har

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "4419270cbd410fb41a2467c7e6ed6420",
11+
"_id": "26bebde2a12f259c5394ea549b070d36",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 143,
15+
"bodySize": 188,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"api_key\":\"TestGetFastlyaccountreturnsOKresponse1668185676\",\"name\":\"test-name\",\"services\":[]},\"type\":\"fastly-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"TestGetFastlyaccountreturnsOKresponse1678702274\",\"name\":\"Test-Get_Fastly_account_returns_OK_response-1678702274\",\"services\":[]},\"type\":\"fastly-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts"
3939
},
4040
"response": {
41-
"bodySize": 124,
41+
"bodySize": 169,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 124,
45-
"text": "{\"data\":{\"attributes\":{\"services\":[],\"name\":\"test-name\"},\"type\":\"fastly-accounts\",\"id\":\"42ed7da188c8af4a6964376d49bb7caa\"}}\n"
44+
"size": 169,
45+
"text": "{\"data\":{\"type\":\"fastly-accounts\",\"id\":\"6d8f2860f9f3e953fb46d554b9a19627\",\"attributes\":{\"services\":[],\"name\":\"Test-Get_Fastly_account_returns_OK_response-1678702274\"}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2022-11-11T16:54:36.149Z",
61-
"time": 848
60+
"startedDateTime": "2023-03-13T10:11:14.490Z",
61+
"time": 508
6262
},
6363
{
64-
"_id": "309abbacf40bde4931eeb2f3ad9d7e24",
64+
"_id": "95c0b036d810198ea16c89997a1f7018",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,18 +74,18 @@
7474
"value": "application/json"
7575
}
7676
],
77-
"headersSize": 557,
77+
"headersSize": 558,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "GET",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa"
81+
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/6d8f2860f9f3e953fb46d554b9a19627"
8282
},
8383
"response": {
84-
"bodySize": 124,
84+
"bodySize": 169,
8585
"content": {
8686
"mimeType": "application/json",
87-
"size": 124,
88-
"text": "{\"data\":{\"attributes\":{\"services\":[],\"name\":\"test-name\"},\"type\":\"fastly-accounts\",\"id\":\"42ed7da188c8af4a6964376d49bb7caa\"}}\n"
87+
"size": 169,
88+
"text": "{\"data\":{\"type\":\"fastly-accounts\",\"id\":\"6d8f2860f9f3e953fb46d554b9a19627\",\"attributes\":{\"name\":\"Test-Get_Fastly_account_returns_OK_response-1678702274\",\"services\":[]}}}\n"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,11 +100,11 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2022-11-11T16:54:37.008Z",
104-
"time": 226
103+
"startedDateTime": "2023-03-13T10:11:15.012Z",
104+
"time": 491
105105
},
106106
{
107-
"_id": "6deeab12395396ccb337045823a1fa7d",
107+
"_id": "547c7cab6527346c189d408af92bc5e0",
108108
"_order": 0,
109109
"cache": {},
110110
"request": {
@@ -121,7 +121,7 @@
121121
"httpVersion": "HTTP/1.1",
122122
"method": "DELETE",
123123
"queryString": [],
124-
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa"
124+
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/6d8f2860f9f3e953fb46d554b9a19627"
125125
},
126126
"response": {
127127
"bodySize": 0,
@@ -142,8 +142,8 @@
142142
"status": 204,
143143
"statusText": "No Content"
144144
},
145-
"startedDateTime": "2022-11-11T16:54:37.244Z",
146-
"time": 252
145+
"startedDateTime": "2023-03-13T10:11:15.518Z",
146+
"time": 437
147147
}
148148
],
149149
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-11-11T16:54:37.514Z"
1+
"2023-03-13T10:10:50.453Z"

cassettes/v2/Fastly-Integration_4018761042/List-Fastly-accounts-returns-OK-response_30576988/recording.har

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "0227499ec4f8e06e72d7669f2ce1b6a9",
11+
"_id": "eb742787bb5c5ef77533dacd93d09314",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 145,
15+
"bodySize": 192,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"api_key\":\"TestListFastlyaccountsreturnsOKresponse1668185677\",\"name\":\"test-name\",\"services\":[]},\"type\":\"fastly-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"TestListFastlyaccountsreturnsOKresponse1678702250\",\"name\":\"Test-List_Fastly_accounts_returns_OK_response-1678702250\",\"services\":[]},\"type\":\"fastly-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts"
3939
},
4040
"response": {
41-
"bodySize": 124,
41+
"bodySize": 171,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 124,
45-
"text": "{\"data\":{\"attributes\":{\"services\":[],\"name\":\"test-name\"},\"type\":\"fastly-accounts\",\"id\":\"42ed7da188c8af4a6964376d49bb7caa\"}}\n"
44+
"size": 171,
45+
"text": "{\"data\":{\"type\":\"fastly-accounts\",\"attributes\":{\"name\":\"Test-List_Fastly_accounts_returns_OK_response-1678702250\",\"services\":[]},\"id\":\"07ec97dd43cd794c847ecf15cb25eb1c\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 630,
54+
"headersSize": 631,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2022-11-11T16:54:37.529Z",
61-
"time": 280
60+
"startedDateTime": "2023-03-13T10:10:50.468Z",
61+
"time": 563
6262
},
6363
{
6464
"_id": "87e451246948b0bb391fe31b7034ef24",
@@ -81,11 +81,11 @@
8181
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts"
8282
},
8383
"response": {
84-
"bodySize": 126,
84+
"bodySize": 173,
8585
"content": {
8686
"mimeType": "application/json",
87-
"size": 126,
88-
"text": "{\"data\":[{\"attributes\":{\"services\":[],\"name\":\"test-name\"},\"type\":\"fastly-accounts\",\"id\":\"42ed7da188c8af4a6964376d49bb7caa\"}]}\n"
87+
"size": 173,
88+
"text": "{\"data\":[{\"type\":\"fastly-accounts\",\"attributes\":{\"name\":\"Test-List_Fastly_accounts_returns_OK_response-1678702250\",\"services\":[]},\"id\":\"07ec97dd43cd794c847ecf15cb25eb1c\"}]}\n"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,11 +100,11 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2022-11-11T16:54:37.816Z",
104-
"time": 213
103+
"startedDateTime": "2023-03-13T10:10:51.043Z",
104+
"time": 324
105105
},
106106
{
107-
"_id": "6deeab12395396ccb337045823a1fa7d",
107+
"_id": "1527be5a31211572ad8061e6b6a1e15e",
108108
"_order": 0,
109109
"cache": {},
110110
"request": {
@@ -121,7 +121,7 @@
121121
"httpVersion": "HTTP/1.1",
122122
"method": "DELETE",
123123
"queryString": [],
124-
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa"
124+
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/07ec97dd43cd794c847ecf15cb25eb1c"
125125
},
126126
"response": {
127127
"bodySize": 0,
@@ -142,8 +142,8 @@
142142
"status": 204,
143143
"statusText": "No Content"
144144
},
145-
"startedDateTime": "2022-11-11T16:54:38.035Z",
146-
"time": 246
145+
"startedDateTime": "2023-03-13T10:10:51.379Z",
146+
"time": 444
147147
}
148148
],
149149
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-01-04T18:06:55.859Z"
1+
"2023-03-13T10:10:17.626Z"

cassettes/v2/Fastly-Integration_4018761042/Update-Fastly-account-returns-OK-response_2742002584/recording.har

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "2aa0e81ad6a2dadb8b1b0e4dda4d7ec5",
11+
"_id": "3a43a7f83d1cee7b8332d368ff50eb98",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 146,
15+
"bodySize": 194,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 580,
29+
"headersSize": 582,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"api_key\":\"TestUpdateFastlyaccountreturnsOKresponse1672855615\",\"name\":\"test-name\",\"services\":[]},\"type\":\"fastly-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"TestUpdateFastlyaccountreturnsOKresponse1678702217\",\"name\":\"Test-Update_Fastly_account_returns_OK_response-1678702217\",\"services\":[]},\"type\":\"fastly-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts"
3939
},
4040
"response": {
41-
"bodySize": 124,
41+
"bodySize": 172,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 124,
45-
"text": "{\"data\":{\"attributes\":{\"services\":[],\"name\":\"test-name\"},\"type\":\"fastly-accounts\",\"id\":\"42ed7da188c8af4a6964376d49bb7caa\"}}\n"
44+
"size": 172,
45+
"text": "{\"data\":{\"type\":\"fastly-accounts\",\"id\":\"e37e834ae856fa24a2924973fdc7c276\",\"attributes\":{\"services\":[],\"name\":\"Test-Update_Fastly_account_returns_OK_response-1678702217\"}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-01-04T18:06:55.878Z",
61-
"time": 225
60+
"startedDateTime": "2023-03-13T10:10:17.642Z",
61+
"time": 522
6262
},
6363
{
64-
"_id": "64b6b5d9a6826ab0e8caf2a4cda0a895",
64+
"_id": "d22976dbc8c1d599d1998b8a58bdc72c",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -79,7 +79,7 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 613,
82+
"headersSize": 615,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "PATCH",
8585
"postData": {
@@ -88,14 +88,14 @@
8888
"text": "{\"data\":{\"attributes\":{\"api_key\":\"update-secret\"},\"type\":\"fastly-accounts\"}}"
8989
},
9090
"queryString": [],
91-
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa"
91+
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/e37e834ae856fa24a2924973fdc7c276"
9292
},
9393
"response": {
94-
"bodySize": 124,
94+
"bodySize": 172,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 124,
98-
"text": "{\"data\":{\"attributes\":{\"services\":[],\"name\":\"test-name\"},\"type\":\"fastly-accounts\",\"id\":\"42ed7da188c8af4a6964376d49bb7caa\"}}\n"
97+
"size": 172,
98+
"text": "{\"data\":{\"type\":\"fastly-accounts\",\"id\":\"e37e834ae856fa24a2924973fdc7c276\",\"attributes\":{\"services\":[],\"name\":\"Test-Update_Fastly_account_returns_OK_response-1678702217\"}}}\n"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2023-01-04T18:06:56.112Z",
114-
"time": 372
113+
"startedDateTime": "2023-03-13T10:10:18.179Z",
114+
"time": 503
115115
},
116116
{
117-
"_id": "6deeab12395396ccb337045823a1fa7d",
117+
"_id": "e65ca2e7b2ca9c94494e9796ef2399a3",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -127,11 +127,11 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 549,
130+
"headersSize": 551,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa"
134+
"url": "https://api.datadoghq.com/api/v2/integrations/fastly/accounts/e37e834ae856fa24a2924973fdc7c276"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,8 +152,8 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2023-01-04T18:06:56.509Z",
156-
"time": 153
155+
"startedDateTime": "2023-03-13T10:10:18.698Z",
156+
"time": 587
157157
}
158158
],
159159
"pages": [],

features/v2/fastly_integration.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Feature: Fastly Integration
123123
When the request is sent
124124
Then the response status is 200 OK
125125
And the response "data.type" is equal to "fastly-accounts"
126-
And the response "data.attributes.name" is equal to "test-name"
126+
And the response "data.attributes.name" is equal to "{{ unique }}"
127127
And the response "data.attributes.services" has length 0
128128

129129
@generated @skip @team:Datadog/web-integrations

features/v2/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"parameters": [
152152
{
153153
"name": "body",
154-
"value": "{\n \"data\": {\n \"type\": \"fastly-accounts\",\n \"attributes\": {\n \"api_key\": \"{{ unique_alnum }}\",\n \"name\": \"test-name\",\n \"services\": []\n }\n }\n}"
154+
"value": "{\n \"data\": {\n \"type\": \"fastly-accounts\",\n \"attributes\": {\n \"api_key\": \"{{ unique_alnum }}\",\n \"name\": \"{{ unique }}\",\n \"services\": []\n }\n }\n}"
155155
}
156156
],
157157
"step": "there is a valid \"fastly_account\" in the system",

0 commit comments

Comments
 (0)