mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Tests: Add tests for missing static indexes, and ensure newly added
versions will force indexes to be added.
This commit is contained in:
parent
716cc5fb05
commit
8e864d037e
16 changed files with 63 additions and 18 deletions
|
@ -37,10 +37,6 @@ except ImportError as e:
|
|||
print('Can\'t import elasticsearch please install `sudo pip install elasticsearch`')
|
||||
sys.exit(1)
|
||||
|
||||
BLACK_LIST = {'1.2.0' : { 'reason': 'Contains a major bug where routing hashes are not consistent with previous version',
|
||||
'issue': 'https://github.com/elasticsearch/elasticsearch/pull/6393'},
|
||||
'1.3.0' : { 'reason': 'Lucene Related bug prevents upgrades from 0.90.7 and some earlier versions ',
|
||||
'issue' : 'https://github.com/elasticsearch/elasticsearch/pull/7055'}}
|
||||
# sometimes returns True
|
||||
def rarely():
|
||||
return random.randint(0, 10) == 0
|
||||
|
@ -179,12 +175,6 @@ def parse_config():
|
|||
help='The port to use as the minimum port for HTTP communication')
|
||||
cfg = parser.parse_args()
|
||||
|
||||
if cfg.version in BLACK_LIST:
|
||||
entry = BLACK_LIST[cfg.version]
|
||||
msg = 'Cannot use version %s\n reason: %s\n issue: %s' % \
|
||||
(cfg.version, entry['reason'], entry['issue'])
|
||||
parser.error(msg)
|
||||
|
||||
cfg.release_dir = os.path.join(cfg.releases_dir, 'elasticsearch-%s' % cfg.version)
|
||||
if not os.path.exists(cfg.release_dir):
|
||||
parser.error('ES version %s does not exist in %s' % (cfg.version, cfg.releases_dir))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue