diff --git a/backend/testjam/services/integration_service.py b/backend/testjam/services/integration_service.py index 9a7256b..30df378 100644 --- a/backend/testjam/services/integration_service.py +++ b/backend/testjam/services/integration_service.py @@ -50,6 +50,20 @@ def create_integration( ensure_encryption_available() provider = _provider_or_400(provider_key) validated_config = _validate_provider_config(provider, config) + existing = ( + db.query(ProjectIntegration) + .filter( + ProjectIntegration.project_id == project_id, + ProjectIntegration.provider == provider.key, + ProjectIntegration.name == name, + ) + .first() + ) + if existing: + raise HTTPException( + status_code=409, + detail=f"Integration '{name}' for provider '{provider.key}' already exists", + ) integration = ProjectIntegration( project_id=project_id, provider=provider.key, diff --git a/frontend/src/i18n/locales/es/cases.json b/frontend/src/i18n/locales/es/cases.json index 2cd1227..af72d84 100644 --- a/frontend/src/i18n/locales/es/cases.json +++ b/frontend/src/i18n/locales/es/cases.json @@ -21,7 +21,7 @@ "stepSaved": "Paso guardado", "stepExpected": "Resultado esperado", "stepLabel": "Paso", - "stepExpectedInline": "Esperado:", + "stepExpectedInline": "Resultado esperado:", "context": { "about": "Información", "project": "Proyecto", diff --git a/frontend/src/i18n/locales/es/executions.json b/frontend/src/i18n/locales/es/executions.json index 8083703..6a2b482 100644 --- a/frontend/src/i18n/locales/es/executions.json +++ b/frontend/src/i18n/locales/es/executions.json @@ -158,7 +158,7 @@ } }, "step": { - "expected": "Esperado:", + "expected": "Resultado esperado:", "saving": "Guardando…", "save": "Guardar", "cancel": "Cancelar",