diff --git a/internal/testrunner/runners/system/tester.go b/internal/testrunner/runners/system/tester.go index f01e488f8..356d54f34 100644 --- a/internal/testrunner/runners/system/tester.go +++ b/internal/testrunner/runners/system/tester.go @@ -1524,10 +1524,10 @@ func (r *tester) validateTestScenario(ctx context.Context, result *testrunner.Re return result.WithError(err) } - exceptionFields := listExceptionFields(scenario.docs, fieldsValidator) - if r.fieldValidationMethod == allMethods || r.fieldValidationMethod == mappingsMethod { logger.Warn("Validate mappings found (technical preview)") + exceptionFields := listExceptionFields(scenario.docs, fieldsValidator) + mappingsValidator, err := fields.CreateValidatorForMappings(r.dataStreamPath, r.esClient, fields.WithMappingValidatorFallbackSchema(fieldsValidator.Schema), fields.WithMappingValidatorIndexTemplate(scenario.indexTemplateName),