19
19
20
20
package org .elasticsearch .packaging .test ;
21
21
22
+ import com .carrotsearch .randomizedtesting .annotations .TestCaseOrdering ;
22
23
import org .apache .http .client .fluent .Request ;
23
24
import org .elasticsearch .packaging .util .Archives ;
24
25
import org .elasticsearch .packaging .util .Platforms ;
27
28
import org .elasticsearch .packaging .util .Shell .Result ;
28
29
import org .junit .Before ;
29
30
import org .junit .BeforeClass ;
30
- import org .junit .FixMethodOrder ;
31
- import org .junit .Test ;
32
- import org .junit .runners .MethodSorters ;
33
31
34
32
import org .elasticsearch .packaging .util .Distribution ;
35
33
import org .elasticsearch .packaging .util .Installation ;
67
65
* Tests that apply to the archive distributions (tar, zip). To add a case for a distribution, subclass and
68
66
* override {@link ArchiveTestCase#distribution()}. These tests should be the same across all archive distributions
69
67
*/
70
- @ FixMethodOrder ( MethodSorters . NAME_ASCENDING )
71
- public abstract class ArchiveTestCase {
68
+ @ TestCaseOrdering ( TestCaseOrdering . AlphabeticOrder . class )
69
+ public abstract class ArchiveTestCase extends PackagingTestCase {
72
70
73
71
private static Installation installation ;
74
72
@@ -86,13 +84,11 @@ public void onlyCompatibleDistributions() {
86
84
assumeTrue ("only compatible distributions" , distribution ().packaging .compatible );
87
85
}
88
86
89
- @ Test
90
87
public void test10Install () {
91
88
installation = installArchive (distribution ());
92
89
verifyArchiveInstallation (installation , distribution ());
93
90
}
94
91
95
- @ Test
96
92
public void test20PluginsListWithNoPlugins () {
97
93
assumeThat (installation , is (notNullValue ()));
98
94
@@ -103,7 +99,6 @@ public void test20PluginsListWithNoPlugins() {
103
99
assertThat (r .stdout , isEmptyString ());
104
100
}
105
101
106
- @ Test
107
102
public void test30AbortWhenJavaMissing () {
108
103
assumeThat (installation , is (notNullValue ()));
109
104
@@ -146,7 +141,6 @@ public void test30AbortWhenJavaMissing() {
146
141
});
147
142
}
148
143
149
- @ Test
150
144
public void test40CreateKeystoreManually () {
151
145
assumeThat (installation , is (notNullValue ()));
152
146
@@ -180,7 +174,6 @@ public void test40CreateKeystoreManually() {
180
174
});
181
175
}
182
176
183
- @ Test
184
177
public void test50StartAndStop () throws IOException {
185
178
assumeThat (installation , is (notNullValue ()));
186
179
@@ -198,7 +191,6 @@ public void test50StartAndStop() throws IOException {
198
191
Archives .stopElasticsearch (installation );
199
192
}
200
193
201
- @ Test
202
194
public void test60AutoCreateKeystore () {
203
195
assumeThat (installation , is (notNullValue ()));
204
196
@@ -218,7 +210,6 @@ public void test60AutoCreateKeystore() {
218
210
});
219
211
}
220
212
221
- @ Test
222
213
public void test70CustomPathConfAndJvmOptions () throws IOException {
223
214
assumeThat (installation , is (notNullValue ()));
224
215
@@ -268,7 +259,6 @@ public void test70CustomPathConfAndJvmOptions() throws IOException {
268
259
}
269
260
}
270
261
271
- @ Test
272
262
public void test80RelativePathConf () throws IOException {
273
263
assumeThat (installation , is (notNullValue ()));
274
264
0 commit comments