forked from elastic/elasticsearch-migration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_index_segments.html
72 lines (65 loc) · 2.36 KB
/
test_index_segments.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<html>
<head>
<title>Elasticsearch Migration Checker</title>
<link href="styles.css" media="all" rel="stylesheet" />
<script type="text/javascript" src="js/bluebird/bluebird.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="js/registry.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/logger.js"></script>
<script type="text/javascript" src="js/index_segments/checks.js"></script>
<script type="text/javascript" src="js/index_segments/tests.js"></script>
<script type="text/javascript" src="js/test.js"></script>
<script type="text/javascript">
<!--
jQuery(function() {
jQuery('#es_host').val(location.protocol + '//' + location.host);
jQuery('#main_form').submit(function(e) {
e.preventDefault();
var host = jQuery('#es_host').val();
jQuery('#log_container').attr('style','');
var tester = new Test_Checker(host,'#temp','#log','no_delete');
tester.run();
});
jQuery('#show_green').click(function(e) {
jQuery('#log').toggleClass('no_green');
});
});
-->
</script>
</head>
<body>
<div id="body">
<h1>THIS TEST SUITE IS DESTRUCTIVE</h1>
<h1>TEST INDEX SEGMENTS</h1>
<p>
In order to run this test, replace the <code>./data</code> directory with
the contents of the <code>ancient_segments_data.tar.gz</code> file, then
start Elasticsearch:
</p>
<pre>
cd elasticsearch
rm -Rf data
tar -xzf plugins/migration/_site/ancient_segments_data.tar.gz
./bin/elasticsearch
</pre>
<form id="main_form">
<div>
<input type="text" name="es_host" id="es_host" value="http://localhost:9200" />
<button type="submit">
Run index segments tests
</button>
</div>
</form>
<div id="log_container" style="display:none">
<div id="show_hide_green">
<label for="show_green">
Show green results
</label>
<input type="checkbox" name="show_green" id="show_green" checked />
</div>
<div id="log"></div>
<div id="temp"></div>
</div>
</body>
</html>