Tests: make sure that repository is not stored when old index file is created

Otherwise the fs repository metadata that points to non-existing location is stored in the old index cluster state, which causes warnings during OldIndexBackwardsCompatibilityTests.
This commit is contained in:
Igor Motov 2015-02-24 19:28:35 -05:00
parent b96bd201c1
commit a7f8e636ba
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ def snapshot_index(client, cfg):
} }
}) })
client.snapshot.create(repository='test_repo', snapshot='test_1', wait_for_completion=True) client.snapshot.create(repository='test_repo', snapshot='test_1', wait_for_completion=True)
client.snapshot.delete_repository(repository='test_repo')
def compress_index(version, tmp_dir, output_dir): def compress_index(version, tmp_dir, output_dir):
compress(tmp_dir, output_dir, 'index-%s.zip' % version, 'data') compress(tmp_dir, output_dir, 'index-%s.zip' % version, 'data')