Skip to content

Commit 0f5b476

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove duplicated tests (#1725)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3c1a725 commit 0f5b476

File tree

65 files changed

+228
-511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+228
-511
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": "2023-10-16 19:14:55.749551",
8-
"spec_repo_commit": "4f580adf"
7+
"regenerated": "2023-10-17 14:49:44.071476",
8+
"spec_repo_commit": "a9d493f5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-16 19:14:55.767443",
13-
"spec_repo_commit": "4f580adf"
12+
"regenerated": "2023-10-17 14:49:44.215389",
13+
"spec_repo_commit": "a9d493f5"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29128,7 +29128,7 @@ paths:
2912829128
application/json:
2912929129
schema:
2913029130
$ref: '#/components/schemas/UserResponse'
29131-
description: OK for get user
29131+
description: OK
2913229132
'403':
2913329133
content:
2913429134
application/json:

examples/v2/confluent-cloud/DeleteConfluentAccount.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
Delete Confluent account returns "OK" response
33
"""
44

5+
from os import environ
56
from datadog_api_client import ApiClient, Configuration
67
from datadog_api_client.v2.api.confluent_cloud_api import ConfluentCloudApi
78

9+
# there is a valid "confluent_account" in the system
10+
CONFLUENT_ACCOUNT_DATA_ID = environ["CONFLUENT_ACCOUNT_DATA_ID"]
11+
812
configuration = Configuration()
913
with ApiClient(configuration) as api_client:
1014
api_instance = ConfluentCloudApi(api_client)
1115
api_instance.delete_confluent_account(
12-
account_id="account_id",
16+
account_id=CONFLUENT_ACCOUNT_DATA_ID,
1317
)

examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.py renamed to examples/v2/confluent-cloud/DeleteConfluentResource.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
Delete resource from Confluent account returns "OK" response
33
"""
44

5-
from os import environ
65
from datadog_api_client import ApiClient, Configuration
76
from datadog_api_client.v2.api.confluent_cloud_api import ConfluentCloudApi
87

9-
# there is a valid "confluent_account" in the system
10-
CONFLUENT_ACCOUNT_DATA_ID = environ["CONFLUENT_ACCOUNT_DATA_ID"]
11-
128
configuration = Configuration()
139
with ApiClient(configuration) as api_client:
1410
api_instance = ConfluentCloudApi(api_client)
15-
api_instance.delete_confluent_account(
16-
account_id=CONFLUENT_ACCOUNT_DATA_ID,
11+
api_instance.delete_confluent_resource(
12+
account_id="account_id",
13+
resource_id="resource_id",
1714
)

examples/v2/downtimes/ListMonitorDowntimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = DowntimesApi(api_client)
1111
response = api_instance.list_monitor_downtimes(
12-
monitor_id=9223372036854775807,
12+
monitor_id=35534610,
1313
)
1414

1515
print(response)

examples/v2/downtimes/ListMonitorDowntimes_128979780.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/v2/key-management/CreateCurrentUserApplicationKey.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,10 @@
1111

1212
body = ApplicationKeyCreateRequest(
1313
data=ApplicationKeyCreateData(
14+
type=ApplicationKeysType.APPLICATION_KEYS,
1415
attributes=ApplicationKeyCreateAttributes(
15-
name="Application Key for managing dashboards",
16-
scopes=[
17-
"dashboards_read",
18-
"dashboards_write",
19-
"dashboards_public_share",
20-
],
16+
name="Example-Key-Management",
2117
),
22-
type=ApplicationKeysType.APPLICATION_KEYS,
2318
),
2419
)
2520

examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/v2/key-management/DeleteApplicationKey.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
Delete an application key returns "No Content" response
33
"""
44

5+
from os import environ
56
from datadog_api_client import ApiClient, Configuration
67
from datadog_api_client.v2.api.key_management_api import KeyManagementApi
78

9+
# there is a valid "application_key" in the system
10+
APPLICATION_KEY_DATA_ID = environ["APPLICATION_KEY_DATA_ID"]
11+
812
configuration = Configuration()
913
with ApiClient(configuration) as api_client:
1014
api_instance = KeyManagementApi(api_client)
1115
api_instance.delete_application_key(
12-
app_key_id="app_key_id",
16+
app_key_id=APPLICATION_KEY_DATA_ID,
1317
)

examples/v2/key-management/DeleteApplicationKey_771691550.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)