mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Add one missing test case (#111553)
This commit is contained in:
parent
bf7be8e23a
commit
7500484646
1 changed files with 12 additions and 2 deletions
|
@ -208,8 +208,18 @@ public class SystemIndexMappingUpdateServiceTests extends ESTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO[wrb]: add test where we have the old mappings version but not the new one
|
||||
// Is this where we "placeholder" a "distant future" version string?
|
||||
/**
|
||||
* Check that the manager will try to upgrade indices when we have the old mappings version but not the new one
|
||||
*/
|
||||
public void testManagerProcessesIndicesWithOldMappingsVersion() {
|
||||
assertThat(
|
||||
SystemIndexMappingUpdateService.getUpgradeStatus(
|
||||
markShardsAvailable(createClusterState(Strings.toString(getMappings("1.0.0", null)))),
|
||||
DESCRIPTOR
|
||||
),
|
||||
equalTo(UpgradeStatus.NEEDS_MAPPINGS_UPDATE)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the manager will try to upgrade indices where their mappings are out-of-date.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue