Skip to content

Commit 844c1d2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add RUM to cleanup script, update RUM test to use unique names (#1637)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3b6ae8a commit 844c1d2

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
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:13.877755",
8-
"spec_repo_commit": "e63e296b"
7+
"regenerated": "2023-09-19 15:38:29.693348",
8+
"spec_repo_commit": "30c5293b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-09-19 14:54:13.891947",
13-
"spec_repo_commit": "e63e296b"
12+
"regenerated": "2023-09-19 15:38:29.707115",
13+
"spec_repo_commit": "30c5293b"
1414
}
1515
}
1616
}

examples/v2/rum/CreateRUMApplication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
body = RUMApplicationCreateRequest(
1313
data=RUMApplicationCreate(
1414
attributes=RUMApplicationCreateAttributes(
15-
name="my_new_rum_application",
15+
name="test-rum-5c67ebb32077e1d9",
1616
type="ios",
1717
),
1818
type=RUMApplicationCreateType.RUM_APPLICATION_CREATE,
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

tests/v2/cassettes/test_scenarios/test_create_a_new_rum_application_returns_ok_response.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"name":"my_new_rum_application","type":"ios"},"type":"rum_application_create"}}'
3+
body: '{"data":{"attributes":{"name":"test-rum-2b75921f066af13d","type":"ios"},"type":"rum_application_create"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/rum/applications
1111
response:
1212
body:
13-
string: '{"data":{"attributes":{"updated_by_handle":"[email protected]","application_id":"a5107087-ff92-413e-9dac-7ee1ebaa2322","name":"my_new_rum_application","created_by_handle":"[email protected]","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"}}
13+
string: '{"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":"[email protected]","hash":"pube38c4c6cfb13be706c9f90c6c949e507","client_token":"pube38c4c6cfb13be706c9f90c6c949e507","created_at":1693328714224,"created_by_handle":"[email protected]"}}}
1414
1515
'
1616
headers:
@@ -25,7 +25,7 @@ interactions:
2525
accept:
2626
- '*/*'
2727
method: DELETE
28-
uri: https://api.datadoghq.com/api/v2/rum/applications/a5107087-ff92-413e-9dac-7ee1ebaa2322
28+
uri: https://api.datadoghq.com/api/v2/rum/applications/40e84dc3-03d2-4839-83c0-929248f0b18c
2929
response:
3030
body:
3131
string: ''

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