Folders/k8s: Enable all dualwriter modes on remaining integration tests (#107992)

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
maicon
2025-07-11 09:20:01 -03:00
committed by GitHub
parent c9b2126c4a
commit ce73e5126a
4 changed files with 211 additions and 187 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ func ToFolderErrorResponse(err error) response.Response {
return response.Error(http.StatusConflict, err.Error(), nil)
}
if errors.Is(err, dashboards.ErrFolderVersionMismatch) {
if errors.Is(err, dashboards.ErrFolderVersionMismatch) ||
k8sErrors.IsAlreadyExists(err) {
return response.JSON(http.StatusPreconditionFailed, util.DynMap{"status": "version-mismatch", "message": dashboards.ErrFolderVersionMismatch.Error()})
}