Browse Source

fix REST compat test with test transform

Jake Landis 4 years ago
parent
commit
26ed10b4df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rest-api-spec/build.gradle

+ 4 - 0
rest-api-spec/build.gradle

@@ -34,6 +34,7 @@ tasks.named("yamlRestCompatTest").configure {
     // Skip these tests on Windows since the blacklist exceeds Windows CLI limits
     OS.current() != OS.WINDOWS
   }
+
   systemProperty 'tests.rest.blacklist', [
     'bulk/11_basic_with_types/Array of objects',
     'bulk/11_basic_with_types/Empty _id',
@@ -359,6 +360,9 @@ tasks.named("yamlRestCompatTest").configure {
 tasks.named("transformV7RestTests").configure({ task ->
   task.replaceMatch("_type", "_doc")
   task.addAllowedWarningRegex("\\[types removal\\].*")
+  task.replaceMatch("nodes.\$node_id.roles.1", "data_cold", "node_info role test") //remove once #71084 is backported
+  task.replaceMatch("nodes.\$node_id.roles.2", "data_content", "node_info role test") //remove once #71084 is backported
+  task.replaceMatch("nodes.\$node_id.roles.3", "data_frozen", "node_info role test") //remove once #71084 is backported
 })
 
 tasks.register('enforceYamlTestConvention').configure {