diff --git a/x-pack/plugin/build.gradle b/x-pack/plugin/build.gradle index 9045f490eaf70..c295c472defc3 100644 --- a/x-pack/plugin/build.gradle +++ b/x-pack/plugin/build.gradle @@ -110,76 +110,6 @@ tasks.named("yamlRestTestV7CompatTransform").configure{ task -> task.skipTest("ml/trained_model_cat_apis/Test cat trained models", "A type field was added to cat.ml_trained_models #73660, this is a backwards compatible change. Still this is a cat api, and we don't support them with rest api compatibility. (the test would be very hard to transform too)") task.skipTest("ml/categorization_agg/Test categorization aggregation with poor settings", "https://github.com/elastic/elasticsearch/pull/79586") - task.replaceKeyInDo("license.delete", "xpack-license.delete") - task.replaceKeyInDo("license.get", "xpack-license.get") - task.replaceKeyInDo("license.get_basic_status", "xpack-license.get_basic_status") - task.replaceKeyInDo("license.get_trial_status", "xpack-license.get_trial_status") - task.replaceKeyInDo("license.post", "xpack-license.post") - task.replaceKeyInDo("license.post_start_basic", "xpack-license.post_start_basic") - task.replaceKeyInDo("license.post_start_trial", "xpack-license.post_start_trial") - task.addAllowedWarningRegex(".*_xpack/license.* is deprecated.*") - - task.replaceKeyInDo("migration.deprecations", "xpack-migration.deprecations") - task.addAllowedWarningRegex(".*_xpack/migration.* is deprecated.*") - - task.replaceKeyInDo("rollup.delete_job", "xpack-rollup.delete_job") - task.replaceKeyInDo("rollup.get_jobs", "xpack-rollup.get_jobs") - task.replaceKeyInDo("rollup.get_rollup_caps", "xpack-rollup.get_rollup_caps") - task.replaceKeyInDo("rollup.get_rollup_index_caps", "xpack-rollup.get_rollup_index_caps") - task.replaceKeyInDo("rollup.put_job", "xpack-rollup.put_job") - task.replaceKeyInDo("rollup.start_job", "xpack-rollup.start_job") - task.replaceKeyInDo("rollup.stop_job", "xpack-rollup.stop_job") - task.addAllowedWarningRegex(".*_xpack/rollup.* is deprecated.*") - - task.replaceKeyInDo("ml.close_job", "xpack-ml.close_job") - task.replaceKeyInDo("ml.delete_calendar", "xpack-ml.delete_calendar") - task.replaceKeyInDo("ml.delete_calendar_event", "xpack-ml.delete_calendar_event") - task.replaceKeyInDo("ml.delete_calendar_job", "xpack-ml.delete_calendar_job") - task.replaceKeyInDo("ml.delete_datafeed", "xpack-ml.delete_datafeed") - task.replaceKeyInDo("ml.delete_expired_data", "xpack-ml.delete_expired_data") - task.replaceKeyInDo("ml.delete_filter", "xpack-ml.delete_filter") - task.replaceKeyInDo("ml.delete_forecast", "xpack-ml.delete_forecast") - task.replaceKeyInDo("ml.delete_job", "xpack-ml.delete_job") - task.replaceKeyInDo("ml.delete_model_snapshot", "xpack-ml.delete_model_snapshot") - task.replaceKeyInDo("ml.flush_job", "xpack-ml.flush_job") - task.replaceKeyInDo("ml.forecast", "xpack-ml.forecast") - task.replaceKeyInDo("ml.get_buckets", "xpack-ml.get_buckets") - task.replaceKeyInDo("ml.get_calendar_events", "xpack-ml.get_calendar_events") - task.replaceKeyInDo("ml.get_calendars", "xpack-ml.get_calendars") - task.replaceKeyInDo("ml.get_categories", "xpack-ml.get_categories") - task.replaceKeyInDo("ml.get_datafeed_stats", "xpack-ml.get_datafeed_stats") - task.replaceKeyInDo("ml.get_datafeeds", "xpack-ml.get_datafeeds") - task.replaceKeyInDo("ml.get_filters", "xpack-ml.get_filters") - task.replaceKeyInDo("ml.get_influencers", "xpack-ml.get_influencers") - task.replaceKeyInDo("ml.get_job_stats", "xpack-ml.get_job_stats") - task.replaceKeyInDo("ml.get_jobs", "xpack-ml.get_jobs") - task.replaceKeyInDo("ml.get_model_snapshots", "xpack-ml.get_model_snapshots") - task.replaceKeyInDo("ml.get_overall_buckets", "xpack-ml.get_overall_buckets") - task.replaceKeyInDo("ml.get_records", "xpack-ml.get_records") - task.replaceKeyInDo("ml.info", "xpack-ml.info") - task.replaceKeyInDo("ml.open_job", "xpack-ml.open_job") - task.replaceKeyInDo("ml.post_calendar_events", "xpack-ml.post_calendar_events") - task.replaceKeyInDo("ml.post_data", "xpack-ml.post_data") - task.replaceKeyInDo("ml.preview_datafeed", "xpack-ml.preview_datafeed") - task.replaceKeyInDo("ml.put_calendar", "xpack-ml.put_calendar") - task.replaceKeyInDo("ml.put_calendar_job", "xpack-ml.put_calendar_job") - task.replaceKeyInDo("ml.put_datafeed", "xpack-ml.put_datafeed") - task.replaceKeyInDo("ml.put_filter", "xpack-ml.put_filter") - task.replaceKeyInDo("ml.put_job", "xpack-ml.put_job") - task.replaceKeyInDo("ml.revert_model_snapshot", "xpack-ml.revert_model_snapshot") - task.replaceKeyInDo("ml.set_upgrade_mode", "xpack-ml.set_upgrade_mode") - task.replaceKeyInDo("ml.start_datafeed", "xpack-ml.start_datafeed") - task.replaceKeyInDo("ml.stop_datafeed", "xpack-ml.stop_datafeed") - task.replaceKeyInDo("ml.update_datafeed", "xpack-ml.update_datafeed") - task.replaceKeyInDo("ml.update_filter", "xpack-ml.update_filter") - task.replaceKeyInDo("ml.update_job", "xpack-ml.update_job") - task.replaceKeyInDo("ml.update_model_snapshot", "xpack-ml.update_model_snapshot") - task.replaceKeyInDo("ml.validate", "xpack-ml.validate") - task.replaceKeyInDo("ml.validate_detector", "xpack-ml.validate_detector") - task.addAllowedWarningRegex(".*_xpack/ml.* is deprecated.*") - - task.replaceKeyInDo("ssl.certificates", "xpack-ssl.certificates", "Test get SSL certificates") - task.addAllowedWarningRegexForTest(".*_xpack/ssl.* is deprecated.*", "Test get SSL certificates") task.replaceValueInMatch("_type", "_doc") task.addAllowedWarningRegex("\\[types removal\\].*") task.addAllowedWarningRegexForTest("Including \\[accept_enterprise\\] in get license.*", "Installing enterprise license") diff --git a/x-pack/qa/xpack-prefix-rest-compat/build.gradle b/x-pack/qa/xpack-prefix-rest-compat/build.gradle new file mode 100644 index 0000000000000..63d92014065d4 --- /dev/null +++ b/x-pack/qa/xpack-prefix-rest-compat/build.gradle @@ -0,0 +1,175 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +import org.elasticsearch.gradle.VersionProperties +import org.elasticsearch.gradle.internal.info.BuildParams +import org.elasticsearch.gradle.internal.test.rest.CopyRestTestsTask +import org.elasticsearch.gradle.util.GradleUtils + +apply plugin: 'elasticsearch.yaml-rest-compat-test' + +/** + * This project exists to test the _xpack prefix for REST compatibility. The _xpack prefix was removed from the specification, but still supported + * in 7x. This project re-introduces the _xpack prefix in the specification but only for compatibility testing purposes. + */ + +configurations { + compatXpackTests +} + +int compatVersion = VersionProperties.getElasticsearchVersion().getMajor() - 1; + +dependencies { + "yamlRestTestV${compatVersion}CompatImplementation" project(':test:framework') + "yamlRestTestV${compatVersion}CompatImplementation"(testArtifact(xpackProject('plugin'))) + compatXpackTests project(path: ':x-pack:plugin', configuration: 'restCompatTests') +} + +// copy the already transformed compatible rest tests from the x-pack compatible tests +tasks.named("copyRestCompatTestTask").configure { task -> + task.dependsOn(configurations.compatXpackTests); + task.setXpackConfig(configurations.compatXpackTests); + task.getIncludeXpack().set(List.of("ml", "rollup", "license", "migration", "ssl")); + task.getOutputResourceDir().set(project.getLayout().getBuildDirectory().dir("restResources/v${compatVersion}/yamlTests/original")); + task.setXpackConfigToFileTree( + config -> project.fileTree( + config.getSingleFile().toPath() + ) + ) + } + +// location for keys and certificates +File extraResourceDir = file("$buildDir/extra_resource") +File nodeKey = file("$extraResourceDir/testnode.pem") +File nodeCert = file("$extraResourceDir/testnode.crt") +// location for service tokens +File serviceTokens = file("$extraResourceDir/service_tokens") + +// Add key and certs to test classpath: it expects them there +// User cert and key PEM files instead of a JKS Keystore for the cluster's trust material so that +// it can run in a FIPS 140 JVM +// TODO: Remove all existing uses of cross project file references when the new approach for referencing static files is available +// https://github.com/elastic/elasticsearch/pull/32201 +tasks.register("copyExtraResources", Copy) { + from(project(':x-pack:plugin:core').file('src/test/resources/org/elasticsearch/xpack/security/transport/ssl/certs/simple/')) { + include 'testnode.crt', 'testnode.pem' + } + from(project(':x-pack:plugin:security:qa:service-account').file('src/javaRestTest/resources/')) { + include 'service_tokens' + } + into extraResourceDir +} +// Add keystores to test classpath: it expects it there +sourceSets."yamlRestTestV${compatVersion}Compat".resources.srcDir(extraResourceDir) +tasks.named("processYamlRestTestV${compatVersion}CompatResources").configure { + dependsOn("copyExtraResources") +} + +testClusters.configureEach { + testDistribution = 'DEFAULT' // this is important since we use the reindex module in ML + setting 'xpack.ml.enabled', 'true' + setting 'xpack.security.enabled', 'true' + setting 'xpack.watcher.enabled', 'false' + setting 'xpack.security.authc.token.enabled', 'true' + setting 'xpack.security.authc.api_key.enabled', 'true' + setting 'xpack.security.transport.ssl.enabled', 'true' + setting 'xpack.security.transport.ssl.key', nodeKey.name + setting 'xpack.security.transport.ssl.certificate', nodeCert.name + setting 'xpack.security.transport.ssl.verification_mode', 'certificate' + setting 'xpack.security.audit.enabled', 'true' + setting 'xpack.license.self_generated.type', 'trial' + // disable ILM history, since it disturbs tests using _all + setting 'indices.lifecycle.history_index_enabled', 'false' + keystore 'bootstrap.password', 'x-pack-test-password' + keystore 'xpack.security.transport.ssl.secure_key_passphrase', 'testnode' + setting 'xpack.searchable.snapshot.shared_cache.size', '10mb' + + user username: "x_pack_rest_user", password: "x-pack-test-password" + extraConfigFile nodeKey.name, nodeKey + extraConfigFile nodeCert.name, nodeCert + extraConfigFile serviceTokens.name, serviceTokens + + if (BuildParams.isSnapshotBuild() == false) { + systemProperty 'es.index_mode_feature_flag_registered', 'true' + } +} + +// transform (again) the (already) transformed x-pack compatibility tests to test the xpack prefixes +tasks.named("yamlRestTestV7CompatTransform").configure{ task -> + + task.replaceKeyInDo("license.delete", "xpack-license.delete") + task.replaceKeyInDo("license.get", "xpack-license.get") + task.replaceKeyInDo("license.get_basic_status", "xpack-license.get_basic_status") + task.replaceKeyInDo("license.get_trial_status", "xpack-license.get_trial_status") + task.replaceKeyInDo("license.post", "xpack-license.post") + task.replaceKeyInDo("license.post_start_basic", "xpack-license.post_start_basic") + task.replaceKeyInDo("license.post_start_trial", "xpack-license.post_start_trial") + task.addAllowedWarningRegex(".*_xpack/license.* is deprecated.*") + + task.replaceKeyInDo("migration.deprecations", "xpack-migration.deprecations") + task.addAllowedWarningRegex(".*_xpack/migration.* is deprecated.*") + + task.replaceKeyInDo("rollup.delete_job", "xpack-rollup.delete_job") + task.replaceKeyInDo("rollup.get_jobs", "xpack-rollup.get_jobs") + task.replaceKeyInDo("rollup.get_rollup_caps", "xpack-rollup.get_rollup_caps") + task.replaceKeyInDo("rollup.get_rollup_index_caps", "xpack-rollup.get_rollup_index_caps") + task.replaceKeyInDo("rollup.put_job", "xpack-rollup.put_job") + task.replaceKeyInDo("rollup.start_job", "xpack-rollup.start_job") + task.replaceKeyInDo("rollup.stop_job", "xpack-rollup.stop_job") + task.addAllowedWarningRegex(".*_xpack/rollup.* is deprecated.*") + + task.replaceKeyInDo("ml.close_job", "xpack-ml.close_job") + task.replaceKeyInDo("ml.delete_calendar", "xpack-ml.delete_calendar") + task.replaceKeyInDo("ml.delete_calendar_event", "xpack-ml.delete_calendar_event") + task.replaceKeyInDo("ml.delete_calendar_job", "xpack-ml.delete_calendar_job") + task.replaceKeyInDo("ml.delete_datafeed", "xpack-ml.delete_datafeed") + task.replaceKeyInDo("ml.delete_expired_data", "xpack-ml.delete_expired_data") + task.replaceKeyInDo("ml.delete_filter", "xpack-ml.delete_filter") + task.replaceKeyInDo("ml.delete_forecast", "xpack-ml.delete_forecast") + task.replaceKeyInDo("ml.delete_job", "xpack-ml.delete_job") + task.replaceKeyInDo("ml.delete_model_snapshot", "xpack-ml.delete_model_snapshot") + task.replaceKeyInDo("ml.flush_job", "xpack-ml.flush_job") + task.replaceKeyInDo("ml.forecast", "xpack-ml.forecast") + task.replaceKeyInDo("ml.get_buckets", "xpack-ml.get_buckets") + task.replaceKeyInDo("ml.get_calendar_events", "xpack-ml.get_calendar_events") + task.replaceKeyInDo("ml.get_calendars", "xpack-ml.get_calendars") + task.replaceKeyInDo("ml.get_categories", "xpack-ml.get_categories") + task.replaceKeyInDo("ml.get_datafeed_stats", "xpack-ml.get_datafeed_stats") + task.replaceKeyInDo("ml.get_datafeeds", "xpack-ml.get_datafeeds") + task.replaceKeyInDo("ml.get_filters", "xpack-ml.get_filters") + task.replaceKeyInDo("ml.get_influencers", "xpack-ml.get_influencers") + task.replaceKeyInDo("ml.get_job_stats", "xpack-ml.get_job_stats") + task.replaceKeyInDo("ml.get_jobs", "xpack-ml.get_jobs") + task.replaceKeyInDo("ml.get_model_snapshots", "xpack-ml.get_model_snapshots") + task.replaceKeyInDo("ml.get_overall_buckets", "xpack-ml.get_overall_buckets") + task.replaceKeyInDo("ml.get_records", "xpack-ml.get_records") + task.replaceKeyInDo("ml.info", "xpack-ml.info") + task.replaceKeyInDo("ml.open_job", "xpack-ml.open_job") + task.replaceKeyInDo("ml.post_calendar_events", "xpack-ml.post_calendar_events") + task.replaceKeyInDo("ml.post_data", "xpack-ml.post_data") + task.replaceKeyInDo("ml.preview_datafeed", "xpack-ml.preview_datafeed") + task.replaceKeyInDo("ml.put_calendar", "xpack-ml.put_calendar") + task.replaceKeyInDo("ml.put_calendar_job", "xpack-ml.put_calendar_job") + task.replaceKeyInDo("ml.put_datafeed", "xpack-ml.put_datafeed") + task.replaceKeyInDo("ml.put_filter", "xpack-ml.put_filter") + task.replaceKeyInDo("ml.put_job", "xpack-ml.put_job") + task.replaceKeyInDo("ml.revert_model_snapshot", "xpack-ml.revert_model_snapshot") + task.replaceKeyInDo("ml.set_upgrade_mode", "xpack-ml.set_upgrade_mode") + task.replaceKeyInDo("ml.start_datafeed", "xpack-ml.start_datafeed") + task.replaceKeyInDo("ml.stop_datafeed", "xpack-ml.stop_datafeed") + task.replaceKeyInDo("ml.update_datafeed", "xpack-ml.update_datafeed") + task.replaceKeyInDo("ml.update_filter", "xpack-ml.update_filter") + task.replaceKeyInDo("ml.update_job", "xpack-ml.update_job") + task.replaceKeyInDo("ml.update_model_snapshot", "xpack-ml.update_model_snapshot") + task.replaceKeyInDo("ml.validate", "xpack-ml.validate") + task.replaceKeyInDo("ml.validate_detector", "xpack-ml.validate_detector") + task.addAllowedWarningRegex(".*_xpack/ml.* is deprecated.*") + + task.replaceKeyInDo("ssl.certificates", "xpack-ssl.certificates", "Test get SSL certificates") + task.addAllowedWarningRegexForTest(".*_xpack/ssl.* is deprecated.*", "Test get SSL certificates") +} diff --git a/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java new file mode 100644 index 0000000000000..3e060d2875e8a --- /dev/null +++ b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java @@ -0,0 +1,24 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +package org.elasticsearch.xpack.test.rest; + +import com.carrotsearch.randomizedtesting.annotations.ParametersFactory; + +import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate; + +public class XPackRestIT extends AbstractXPackRestTest { + + public XPackRestIT(ClientYamlTestCandidate testCandidate) { + super(testCandidate); + } + + @ParametersFactory + public static Iterable parameters() throws Exception { + return createParameters(); + } +} diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/test/monitoring/bulk/10_basic_compat.yml b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec.test.monitoring.bulk/10_basic_compat.yml similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/test/monitoring/bulk/10_basic_compat.yml rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec.test.monitoring.bulk/10_basic_compat.yml diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.delete.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.delete.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.delete.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.delete.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_basic_status.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_basic_status.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_basic_status.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_basic_status.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_trial_status.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_trial_status.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_trial_status.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.get_trial_status.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_basic.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_basic.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_basic.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_basic.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_trial.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_trial.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_trial.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-license.post_start_trial.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-migration.deprecations.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-migration.deprecations.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-migration.deprecations.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-migration.deprecations.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.close_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.close_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.close_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.close_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_event.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_event.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_event.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_event.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_calendar_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_datafeed.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_datafeed.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_datafeed.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_datafeed.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_expired_data.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_expired_data.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_expired_data.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_expired_data.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_filter.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_filter.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_filter.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_filter.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_forecast.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_forecast.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_forecast.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_forecast.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_model_snapshot.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_model_snapshot.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_model_snapshot.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.delete_model_snapshot.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.flush_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.flush_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.flush_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.flush_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.forecast.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.forecast.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.forecast.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.forecast.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_buckets.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_buckets.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_buckets.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_buckets.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendar_events.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendar_events.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendar_events.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendar_events.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendars.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendars.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendars.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_calendars.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_categories.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_categories.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_categories.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_categories.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeed_stats.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeed_stats.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeed_stats.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeed_stats.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeeds.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeeds.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeeds.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_datafeeds.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_filters.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_filters.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_filters.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_filters.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_influencers.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_influencers.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_influencers.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_influencers.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_job_stats.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_job_stats.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_job_stats.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_job_stats.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_jobs.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_jobs.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_jobs.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_jobs.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_model_snapshots.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_model_snapshots.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_model_snapshots.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_model_snapshots.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_overall_buckets.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_overall_buckets.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_overall_buckets.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_overall_buckets.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_records.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_records.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_records.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.get_records.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.info.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.info.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.info.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.info.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.open_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.open_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.open_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.open_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_calendar_events.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_calendar_events.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_calendar_events.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_calendar_events.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_data.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_data.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_data.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.post_data.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.preview_datafeed.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.preview_datafeed.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.preview_datafeed.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.preview_datafeed.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_calendar_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_datafeed.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_datafeed.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_datafeed.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_datafeed.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_filter.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_filter.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_filter.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_filter.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.put_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.revert_model_snapshot.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.revert_model_snapshot.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.revert_model_snapshot.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.revert_model_snapshot.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.set_upgrade_mode.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.set_upgrade_mode.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.set_upgrade_mode.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.set_upgrade_mode.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.start_datafeed.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.start_datafeed.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.start_datafeed.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.start_datafeed.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.stop_datafeed.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.stop_datafeed.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.stop_datafeed.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.stop_datafeed.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_datafeed.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_datafeed.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_datafeed.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_datafeed.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_filter.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_filter.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_filter.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_filter.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_model_snapshot.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_model_snapshot.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_model_snapshot.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.update_model_snapshot.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate_detector.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate_detector.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate_detector.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ml.validate_detector.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-monitoring.bulk.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-monitoring.bulk.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-monitoring.bulk.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-monitoring.bulk.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.delete_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.delete_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.delete_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.delete_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_jobs.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_jobs.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_jobs.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_jobs.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_caps.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_caps.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_caps.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_caps.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_index_caps.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_index_caps.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_index_caps.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.get_rollup_index_caps.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.put_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.put_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.put_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.put_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.start_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.start_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.start_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.start_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.stop_job.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.stop_job.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.stop_job.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-rollup.stop_job.json diff --git a/x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ssl.certificates.json b/x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ssl.certificates.json similarity index 100% rename from x-pack/plugin/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ssl.certificates.json rename to x-pack/qa/xpack-prefix-rest-compat/src/yamlRestTestV7Compat/resources/rest-api-spec/api/xpack-ssl.certificates.json