def METHOD_NAME(ddev, repository, helpers):
    import yaml
    check = 'apache'
    spec_yaml = repository.path / check / 'assets' / 'configuration' / 'spec.yaml'
    with spec_yaml.open(encoding='utf-8') as file:
        spec_info = yaml.safe_load(file)
    spec_info['files'][0]['options'][1]['options'] = spec_info['files'][0]['options'][1]['options'][0]
    output = yaml.safe_dump(spec_info, default_flow_style=False, sort_keys=False)
    with spec_yaml.open(mode='w', encoding='utf-8') as file:
        file.write(output)
    result = ddev('validate', 'http', check)
    assert result.exit_code == 1, result.output
    assert helpers.remove_trailing_spaces(result.output) == helpers.dedent(
        """
        HTTP wrapper validation
        └── Apache
            Detected apache is missing `instances/http` or `instances/openmetrics_legacy` template in spec.yaml
        Errors: 1
        """
    )