Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicated tests #2237

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-16 19:14:59.427852",
"spec_repo_commit": "4f580adf"
"regenerated": "2023-10-17 14:49:39.634317",
"spec_repo_commit": "a9d493f5"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-16 19:14:59.447539",
"spec_repo_commit": "4f580adf"
"regenerated": "2023-10-17 14:49:39.649391",
"spec_repo_commit": "a9d493f5"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29128,7 +29128,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
description: OK for get user
description: OK
'403':
content:
application/json:
Expand Down
5 changes: 4 additions & 1 deletion examples/v2/confluent-cloud/DeleteConfluentAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import (
)

func main() {
// there is a valid "confluent_account" in the system
ConfluentAccountDataID := os.Getenv("CONFLUENT_ACCOUNT_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewConfluentCloudApi(apiClient)
r, err := api.DeleteConfluentAccount(ctx, "account_id")
r, err := api.DeleteConfluentAccount(ctx, ConfluentAccountDataID)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentAccount`: %v\n", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ import (
)

func main() {
// there is a valid "confluent_account" in the system
ConfluentAccountDataID := os.Getenv("CONFLUENT_ACCOUNT_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewConfluentCloudApi(apiClient)
r, err := api.DeleteConfluentAccount(ctx, ConfluentAccountDataID)
r, err := api.DeleteConfluentResource(ctx, "account_id", "resource_id")

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentAccount`: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentResource`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
2 changes: 1 addition & 1 deletion examples/v2/downtimes/ListMonitorDowntimes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewDowntimesApi(apiClient)
resp, r, err := api.ListMonitorDowntimes(ctx, 9223372036854775807)
resp, r, err := api.ListMonitorDowntimes(ctx, 35534610)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DowntimesApi.ListMonitorDowntimes`: %v\n", err)
Expand Down
29 changes: 0 additions & 29 deletions examples/v2/downtimes/ListMonitorDowntimes_128979780.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ import (
func main() {
body := datadogV2.ApplicationKeyCreateRequest{
Data: datadogV2.ApplicationKeyCreateData{
Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS,
Attributes: datadogV2.ApplicationKeyCreateAttributes{
Name: "Application Key for managing dashboards",
Scopes: *datadog.NewNullableList(&[]string{
"dashboards_read",
"dashboards_write",
"dashboards_public_share",
}),
Name: "Example-Key-Management",
},
Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS,
},
}
ctx := datadog.NewDefaultContext(context.Background())
Expand Down

This file was deleted.

5 changes: 4 additions & 1 deletion examples/v2/key-management/DeleteApplicationKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import (
)

func main() {
// there is a valid "application_key" in the system
ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewKeyManagementApi(apiClient)
r, err := api.DeleteApplicationKey(ctx, "app_key_id")
r, err := api.DeleteApplicationKey(ctx, ApplicationKeyDataID)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteApplicationKey`: %v\n", err)
Expand Down
28 changes: 0 additions & 28 deletions examples/v2/key-management/DeleteApplicationKey_771691550.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import (
)

func main() {
// there is a valid "application_key" in the system
ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewKeyManagementApi(apiClient)
r, err := api.DeleteCurrentUserApplicationKey(ctx, "app_key_id")
r, err := api.DeleteCurrentUserApplicationKey(ctx, ApplicationKeyDataID)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteCurrentUserApplicationKey`: %v\n", err)
Expand Down

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions examples/v2/key-management/ListApplicationKeys_2237010090.go

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.go

This file was deleted.

4 changes: 3 additions & 1 deletion examples/v2/synthetics/SetOnDemandConcurrencyCap.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import (
)

func main() {
body := datadogV2.OnDemandConcurrencyCapAttributes{}
body := datadogV2.OnDemandConcurrencyCapAttributes{
OnDemandConcurrencyCap: datadog.PtrFloat64(20),
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
Expand Down
Loading