浏览代码

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.
Igor Motov 10 年之前
父节点
当前提交
a7f8e636ba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dev-tools/create-bwc-index.py

+ 1 - 0
dev-tools/create-bwc-index.py

@@ -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')