diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index db0bdfdf15..b6f328a844 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -143806,6 +143806,12 @@ paths: schema: $ref: "#/components/schemas/APIErrorResponse" description: Not Found + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/APIErrorResponse" + description: Conflict - Another active feature flag already uses the archived flag's key or name. "429": $ref: "#/components/responses/TooManyRequestsResponse" security: diff --git a/tests/v2/features/feature_flags.feature b/tests/v2/features/feature_flags.feature index f44699236d..67787fc35b 100644 --- a/tests/v2/features/feature_flags.feature +++ b/tests/v2/features/feature_flags.feature @@ -430,6 +430,13 @@ Feature: Feature Flags When the request is sent Then the response status is 400 Bad Request + @generated @skip @team:DataDog/feature-flags + Scenario: Unarchive a feature flag returns "Conflict - Another active feature flag already uses the archived flag's key or name." response + Given new "UnarchiveFeatureFlag" request + And request contains "feature_flag_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 409 Conflict - Another active feature flag already uses the archived flag's key or name. + @skip @team:DataDog/feature-flags Scenario: Unarchive a feature flag returns "Not Found" response Given new "UnarchiveFeatureFlag" request