Skip to content

Commit 0756342

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Add RUM to cleanup script, update RUM test to use unique names (#1298)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 12eca41 commit 0756342

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
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.5",
7-
"regenerated": "2023-09-19 14:54:11.552552",
8-
"spec_repo_commit": "e63e296b"
7+
"regenerated": "2023-09-19 15:38:28.662662",
8+
"spec_repo_commit": "30c5293b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-09-19 14:54:11.566235",
13-
"spec_repo_commit": "e63e296b"
12+
"regenerated": "2023-09-19 15:38:28.677004",
13+
"spec_repo_commit": "30c5293b"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-12-05T18:20:06.486Z"
1+
"2023-08-29T17:05:14.023Z"

cassettes/v2/RUM_2896677143/Create-a-new-RUM-application-returns-OK-response_2247322916/recording.har

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "f8f702eab48e20df059a1913bb826430",
11+
"_id": "fdbfdd63af34a2d6e68dddefe40ca9b8",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 102,
15+
"bodySize": 105,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 569,
29+
"headersSize": 571,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"name\":\"my_new_rum_application\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"name\":\"test-rum-2b75921f066af13d\",\"type\":\"ios\"},\"type\":\"rum_application_create\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/rum/applications"
3939
},
4040
"response": {
41-
"bodySize": 464,
41+
"bodySize": 467,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 464,
45-
"text": "{\"data\":{\"attributes\":{\"updated_by_handle\":\"frog@datadoghq.com\",\"application_id\":\"a5107087-ff92-413e-9dac-7ee1ebaa2322\",\"name\":\"my_new_rum_application\",\"created_by_handle\":\"frog@datadoghq.com\",\"created_at\":1670264406913,\"org_id\":321813,\"updated_at\":1670264406913,\"is_active\":false,\"hash\":\"pub827b35dae6920b425915f489a4a309ac\",\"client_token\":\"pub827b35dae6920b425915f489a4a309ac\",\"type\":\"ios\"},\"type\":\"rum_application\",\"id\":\"a5107087-ff92-413e-9dac-7ee1ebaa2322\"}}\n"
44+
"size": 467,
45+
"text": "{\"data\":{\"type\":\"rum_application\",\"id\":\"40e84dc3-03d2-4839-83c0-929248f0b18c\",\"attributes\":{\"type\":\"ios\",\"application_id\":\"40e84dc3-03d2-4839-83c0-929248f0b18c\",\"is_active\":false,\"org_id\":321813,\"updated_at\":1693328714224,\"name\":\"test-rum-2b75921f066af13d\",\"updated_by_handle\":\"frog@datadoghq.com\",\"hash\":\"pube38c4c6cfb13be706c9f90c6c949e507\",\"client_token\":\"pube38c4c6cfb13be706c9f90c6c949e507\",\"created_at\":1693328714224,\"created_by_handle\":\"frog@datadoghq.com\"}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 635,
54+
"headersSize": 662,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-12-05T18:20:06.496Z",
61-
"time": 509
60+
"startedDateTime": "2023-08-29T17:05:14.030Z",
61+
"time": 213
6262
},
6363
{
64-
"_id": "a6cc7a6d8b04047d9014d413a2ba2a5f",
64+
"_id": "4385755cf10a0d4df8b2b457f0c64e9d",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 542,
77+
"headersSize": 544,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/rum/applications/a5107087-ff92-413e-9dac-7ee1ebaa2322"
81+
"url": "https://api.datadoghq.com/api/v2/rum/applications/40e84dc3-03d2-4839-83c0-929248f0b18c"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -88,14 +88,14 @@
8888
},
8989
"cookies": [],
9090
"headers": [],
91-
"headersSize": 582,
91+
"headersSize": 609,
9292
"httpVersion": "HTTP/1.1",
9393
"redirectURL": "",
9494
"status": 204,
9595
"statusText": "No Content"
9696
},
97-
"startedDateTime": "2022-12-05T18:20:07.018Z",
98-
"time": 464
97+
"startedDateTime": "2023-08-29T17:05:14.262Z",
98+
"time": 203
9999
}
100100
],
101101
"pages": [],

examples/v2/rum/CreateRUMApplication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const params: v2.RUMApiCreateRUMApplicationRequest = {
1111
body: {
1212
data: {
1313
attributes: {
14-
name: "my_new_rum_application",
14+
name: "test-rum-5c67ebb32077e1d9",
1515
type: "ios",
1616
},
1717
type: "rum_application_create",

features/v2/rum.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Feature: RUM
3333
@team:DataDog/rum-backend
3434
Scenario: Create a new RUM application returns "OK" response
3535
Given new "CreateRUMApplication" request
36-
And body with value {"data": {"attributes": {"name": "my_new_rum_application", "type": "ios"}, "type": "rum_application_create"}}
36+
And body with value {"data": {"attributes": {"name": "test-rum-{{ unique_hash }}", "type": "ios"}, "type": "rum_application_create"}}
3737
When the request is sent
3838
Then the response status is 200 RUM application.
3939
And the response "data.type" is equal to "rum_application"
4040
And the response "data.attributes.type" is equal to "ios"
41-
And the response "data.attributes.name" is equal to "my_new_rum_application"
41+
And the response "data.attributes.name" is equal to "test-rum-{{ unique_hash }}"
4242

4343
@team:DataDog/rum-backend
4444
Scenario: Delete a RUM application returns "No Content" response

0 commit comments

Comments
 (0)