Skip to content

Commit ab7f412

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use unique for okta account name in tests (#1503)
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 4e90849 commit ab7f412

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
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.6",
7-
"regenerated": "2024-01-26 20:56:59.043844",
8-
"spec_repo_commit": "a1db94fd"
7+
"regenerated": "2024-01-29 18:55:20.121425",
8+
"spec_repo_commit": "5ded48a3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-26 20:56:59.077077",
13-
"spec_repo_commit": "a1db94fd"
12+
"regenerated": "2024-01-29 18:55:20.136596",
13+
"spec_repo_commit": "5ded48a3"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-11-21T16:59:43.805Z"
1+
"2024-01-29T14:58:52.386Z"

cassettes/v2/Okta-Integration_3932182642/Add-Okta-account-returns-OK-response_4007271140/recording.har

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "1f7ad4881024ab95f4420e8ba9f41dcd",
11+
"_id": "56b23e8de17267b9ec080d554f59e5d8",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 226,
15+
"bodySize": 262,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"auth_method\":\"oauth\",\"client_id\":\"client_id\",\"client_secret\":\"client_secret\",\"domain\":\"https://example.okta.com/\",\"name\":\"Okta_Prod\"},\"id\":\"f749daaf-682e-4208-a38d-c9b43162c609\",\"type\":\"okta-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"auth_method\":\"oauth\",\"client_id\":\"client_id\",\"client_secret\":\"client_secret\",\"domain\":\"https://example.okta.com/\",\"name\":\"testaddoktaaccountreturnsokresponse1706540332\"},\"id\":\"f749daaf-682e-4208-a38d-c9b43162c609\",\"type\":\"okta-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/okta/accounts"
3939
},
4040
"response": {
41-
"bodySize": 195,
41+
"bodySize": 231,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 195,
45-
"text": "{\"data\":{\"type\":\"okta-accounts\",\"attributes\":{\"domain\":\"https://example.okta.com/\",\"client_id\":\"client_id\",\"auth_method\":\"oauth\",\"name\":\"Okta_Prod\"},\"id\":\"6330b376-d352-4a06-a169-107002bd6e6c\"}}\n"
44+
"size": 231,
45+
"text": "{\"data\":{\"type\":\"okta-accounts\",\"attributes\":{\"auth_method\":\"oauth\",\"client_id\":\"client_id\",\"domain\":\"https://example.okta.com/\",\"name\":\"testaddoktaaccountreturnsokresponse1706540332\"},\"id\":\"1e62be98-94ab-403d-9491-98b7fbf9a7de\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 658,
54+
"headersSize": 657,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-11-21T16:59:43.813Z",
61-
"time": 496
60+
"startedDateTime": "2024-01-29T14:58:52.398Z",
61+
"time": 255
6262
},
6363
{
64-
"_id": "04f5a1b2c6f2e4d89bc5c35c0ba0f5ba",
64+
"_id": "27a6fdbceb32903698655f33967d283d",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integrations/okta/accounts/6330b376-d352-4a06-a169-107002bd6e6c"
81+
"url": "https://api.datadoghq.com/api/v2/integrations/okta/accounts/1e62be98-94ab-403d-9491-98b7fbf9a7de"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -93,14 +93,14 @@
9393
"value": "text/html; charset=utf-8"
9494
}
9595
],
96-
"headersSize": 648,
96+
"headersSize": 647,
9797
"httpVersion": "HTTP/1.1",
9898
"redirectURL": "",
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2023-11-21T16:59:44.318Z",
103-
"time": 441
102+
"startedDateTime": "2024-01-29T14:58:52.674Z",
103+
"time": 194
104104
}
105105
],
106106
"pages": [],

examples/v2/okta-integration/CreateOktaAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const params: v2.OktaIntegrationApiCreateOktaAccountRequest = {
1313
attributes: {
1414
authMethod: "oauth",
1515
domain: "https://example.okta.com/",
16-
name: "Okta_Prod",
16+
name: "exampleoktaintegration",
1717
clientId: "client_id",
1818
clientSecret: "client_secret",
1919
},

features/v2/okta_integration.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Okta Integration
2424
@team:DataDog/saas-integrations @team:DataDog/web-integrations
2525
Scenario: Add Okta account returns "OK" response
2626
Given new "CreateOktaAccount" request
27-
And body with value {"data": {"attributes": {"auth_method": "oauth", "domain": "https://example.okta.com/", "name": "Okta_Prod", "client_id": "client_id", "client_secret":"client_secret"},"id": "f749daaf-682e-4208-a38d-c9b43162c609", "type": "okta-accounts"}}
27+
And body with value {"data": {"attributes": {"auth_method": "oauth", "domain": "https://example.okta.com/", "name": "{{ unique_lower_alnum }}", "client_id": "client_id", "client_secret":"client_secret"},"id": "f749daaf-682e-4208-a38d-c9b43162c609", "type": "okta-accounts"}}
2828
When the request is sent
2929
Then the response status is 201 OK
3030

0 commit comments

Comments
 (0)