Fix PackagingTestCase for DOCKER_UBI variant

This commit is contained in:
Rory Hunter 2020-08-18 16:12:03 +01:00
parent bd7236cd65
commit d0c57c3068
1 changed files with 4 additions and 0 deletions

View File

@ -220,6 +220,7 @@ public abstract class PackagingTestCase extends Assert {
Packages.verifyPackageInstallation(installation, distribution, sh);
break;
case DOCKER:
case DOCKER_UBI:
installation = Docker.runContainer(distribution);
Docker.verifyContainerInstallation(installation, distribution);
break;
@ -295,6 +296,7 @@ public abstract class PackagingTestCase extends Assert {
case RPM:
return Packages.runElasticsearchStartCommand(sh);
case DOCKER:
case DOCKER_UBI:
// nothing, "installing" docker image is running it
return Shell.NO_OP;
default:
@ -313,6 +315,7 @@ public abstract class PackagingTestCase extends Assert {
Packages.stopElasticsearch(sh);
break;
case DOCKER:
case DOCKER_UBI:
// nothing, "installing" docker image is running it
break;
default:
@ -332,6 +335,7 @@ public abstract class PackagingTestCase extends Assert {
Packages.assertElasticsearchStarted(sh, installation);
break;
case DOCKER:
case DOCKER_UBI:
Docker.waitForElasticsearchToStart();
break;
default: