Skip to content

Commit 347b36c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use unique in fastly tests name (#1379)
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 3a701d6 commit 347b36c

9 files changed

+23
-23
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:00.834683",
8-
"spec_repo_commit": "73e66c9a"
7+
"regenerated": "2023-03-13 10:16:15.993063",
8+
"spec_repo_commit": "5ad82066"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-07 22:36:00.847119",
13-
"spec_repo_commit": "73e66c9a"
12+
"regenerated": "2023-03-13 10:16:16.005178",
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

tests/v2/cassettes/test_scenarios/test_get_fastly_account_returns_ok_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"api_key":"TestGetFastlyaccountreturnsOKresponse1668185676","name":"test-name","services":[]},"type":"fastly-accounts"}}'
3+
body: '{"data":{"attributes":{"api_key":"TestGetFastlyaccountreturnsOKresponse1678702274","name":"Test-Get_Fastly_account_returns_OK_response-1678702274","services":[]},"type":"fastly-accounts"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts
1111
response:
1212
body:
13-
string: '{"data":{"attributes":{"services":[],"name":"test-name"},"type":"fastly-accounts","id":"42ed7da188c8af4a6964376d49bb7caa"}}
13+
string: '{"data":{"type":"fastly-accounts","id":"6d8f2860f9f3e953fb46d554b9a19627","attributes":{"services":[],"name":"Test-Get_Fastly_account_returns_OK_response-1678702274"}}}
1414
1515
'
1616
headers:
@@ -25,10 +25,10 @@ interactions:
2525
accept:
2626
- application/json
2727
method: GET
28-
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa
28+
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/6d8f2860f9f3e953fb46d554b9a19627
2929
response:
3030
body:
31-
string: '{"data":{"attributes":{"services":[],"name":"test-name"},"type":"fastly-accounts","id":"42ed7da188c8af4a6964376d49bb7caa"}}
31+
string: '{"data":{"type":"fastly-accounts","id":"6d8f2860f9f3e953fb46d554b9a19627","attributes":{"name":"Test-Get_Fastly_account_returns_OK_response-1678702274","services":[]}}}
3232
3333
'
3434
headers:
@@ -43,7 +43,7 @@ interactions:
4343
accept:
4444
- '*/*'
4545
method: DELETE
46-
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa
46+
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/6d8f2860f9f3e953fb46d554b9a19627
4747
response:
4848
body:
4949
string: ''
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

tests/v2/cassettes/test_scenarios/test_list_fastly_accounts_returns_ok_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"api_key":"TestListFastlyaccountsreturnsOKresponse1668185677","name":"test-name","services":[]},"type":"fastly-accounts"}}'
3+
body: '{"data":{"attributes":{"api_key":"TestListFastlyaccountsreturnsOKresponse1678702250","name":"Test-List_Fastly_accounts_returns_OK_response-1678702250","services":[]},"type":"fastly-accounts"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts
1111
response:
1212
body:
13-
string: '{"data":{"attributes":{"services":[],"name":"test-name"},"type":"fastly-accounts","id":"42ed7da188c8af4a6964376d49bb7caa"}}
13+
string: '{"data":{"type":"fastly-accounts","attributes":{"name":"Test-List_Fastly_accounts_returns_OK_response-1678702250","services":[]},"id":"07ec97dd43cd794c847ecf15cb25eb1c"}}
1414
1515
'
1616
headers:
@@ -28,7 +28,7 @@ interactions:
2828
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts
2929
response:
3030
body:
31-
string: '{"data":[{"attributes":{"services":[],"name":"test-name"},"type":"fastly-accounts","id":"42ed7da188c8af4a6964376d49bb7caa"}]}
31+
string: '{"data":[{"type":"fastly-accounts","attributes":{"name":"Test-List_Fastly_accounts_returns_OK_response-1678702250","services":[]},"id":"07ec97dd43cd794c847ecf15cb25eb1c"}]}
3232
3333
'
3434
headers:
@@ -43,7 +43,7 @@ interactions:
4343
accept:
4444
- '*/*'
4545
method: DELETE
46-
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa
46+
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/07ec97dd43cd794c847ecf15cb25eb1c
4747
response:
4848
body:
4949
string: ''
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

tests/v2/cassettes/test_scenarios/test_update_fastly_account_returns_ok_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"api_key":"TestUpdateFastlyaccountreturnsOKresponse1672855615","name":"test-name","services":[]},"type":"fastly-accounts"}}'
3+
body: '{"data":{"attributes":{"api_key":"TestUpdateFastlyaccountreturnsOKresponse1678702217","name":"Test-Update_Fastly_account_returns_OK_response-1678702217","services":[]},"type":"fastly-accounts"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts
1111
response:
1212
body:
13-
string: '{"data":{"attributes":{"services":[],"name":"test-name"},"type":"fastly-accounts","id":"42ed7da188c8af4a6964376d49bb7caa"}}
13+
string: '{"data":{"type":"fastly-accounts","id":"e37e834ae856fa24a2924973fdc7c276","attributes":{"services":[],"name":"Test-Update_Fastly_account_returns_OK_response-1678702217"}}}
1414
1515
'
1616
headers:
@@ -27,10 +27,10 @@ interactions:
2727
content-type:
2828
- application/json
2929
method: PATCH
30-
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa
30+
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/e37e834ae856fa24a2924973fdc7c276
3131
response:
3232
body:
33-
string: '{"data":{"attributes":{"services":[],"name":"test-name"},"type":"fastly-accounts","id":"42ed7da188c8af4a6964376d49bb7caa"}}
33+
string: '{"data":{"type":"fastly-accounts","id":"e37e834ae856fa24a2924973fdc7c276","attributes":{"services":[],"name":"Test-Update_Fastly_account_returns_OK_response-1678702217"}}}
3434
3535
'
3636
headers:
@@ -45,7 +45,7 @@ interactions:
4545
accept:
4646
- '*/*'
4747
method: DELETE
48-
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/42ed7da188c8af4a6964376d49bb7caa
48+
uri: https://api.datadoghq.com/api/v2/integrations/fastly/accounts/e37e834ae856fa24a2924973fdc7c276
4949
response:
5050
body:
5151
string: ''

tests/v2/features/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

tests/v2/features/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)