1919
2020package org .elasticsearch .packaging .test ;
2121
22+ import com .carrotsearch .randomizedtesting .annotations .TestCaseOrdering ;
2223import org .apache .http .client .fluent .Request ;
2324import org .elasticsearch .packaging .util .Archives ;
2425import org .elasticsearch .packaging .util .Platforms ;
2728import org .elasticsearch .packaging .util .Shell .Result ;
2829import org .junit .Before ;
2930import org .junit .BeforeClass ;
30- import org .junit .FixMethodOrder ;
31- import org .junit .Test ;
32- import org .junit .runners .MethodSorters ;
3331
3432import org .elasticsearch .packaging .util .Distribution ;
3533import org .elasticsearch .packaging .util .Installation ;
6765 * Tests that apply to the archive distributions (tar, zip). To add a case for a distribution, subclass and
6866 * override {@link ArchiveTestCase#distribution()}. These tests should be the same across all archive distributions
6967 */
70- @ FixMethodOrder ( MethodSorters . NAME_ASCENDING )
71- public abstract class ArchiveTestCase {
68+ @ TestCaseOrdering ( TestCaseOrdering . AlphabeticOrder . class )
69+ public abstract class ArchiveTestCase extends PackagingTestCase {
7270
7371 private static Installation installation ;
7472
@@ -86,13 +84,11 @@ public void onlyCompatibleDistributions() {
8684 assumeTrue ("only compatible distributions" , distribution ().packaging .compatible );
8785 }
8886
89- @ Test
9087 public void test10Install () {
9188 installation = installArchive (distribution ());
9289 verifyArchiveInstallation (installation , distribution ());
9390 }
9491
95- @ Test
9692 public void test20PluginsListWithNoPlugins () {
9793 assumeThat (installation , is (notNullValue ()));
9894
@@ -103,7 +99,6 @@ public void test20PluginsListWithNoPlugins() {
10399 assertThat (r .stdout , isEmptyString ());
104100 }
105101
106- @ Test
107102 public void test30AbortWhenJavaMissing () {
108103 assumeThat (installation , is (notNullValue ()));
109104
@@ -146,7 +141,6 @@ public void test30AbortWhenJavaMissing() {
146141 });
147142 }
148143
149- @ Test
150144 public void test40CreateKeystoreManually () {
151145 assumeThat (installation , is (notNullValue ()));
152146
@@ -180,7 +174,6 @@ public void test40CreateKeystoreManually() {
180174 });
181175 }
182176
183- @ Test
184177 public void test50StartAndStop () throws IOException {
185178 assumeThat (installation , is (notNullValue ()));
186179
@@ -198,7 +191,6 @@ public void test50StartAndStop() throws IOException {
198191 Archives .stopElasticsearch (installation );
199192 }
200193
201- @ Test
202194 public void test60AutoCreateKeystore () {
203195 assumeThat (installation , is (notNullValue ()));
204196
@@ -218,7 +210,6 @@ public void test60AutoCreateKeystore() {
218210 });
219211 }
220212
221- @ Test
222213 public void test70CustomPathConfAndJvmOptions () throws IOException {
223214 assumeThat (installation , is (notNullValue ()));
224215
@@ -268,7 +259,6 @@ public void test70CustomPathConfAndJvmOptions() throws IOException {
268259 }
269260 }
270261
271- @ Test
272262 public void test80RelativePathConf () throws IOException {
273263 assumeThat (installation , is (notNullValue ()));
274264
0 commit comments