close networks and containers in tests (#16375)

This commit is contained in:
Tomas Dvorak
2023-09-05 16:25:59 +02:00
committed by GitHub
parent cd4e31052e
commit d16c68f1a2
2 changed files with 15 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ import org.graylog.datanode.testinfra.DatanodeContainerizedBackend;
import org.graylog2.plugin.Tools;
import org.graylog2.shared.utilities.StringUtils;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
@@ -106,6 +107,11 @@ public class DatanodeSecuritySetupIT {
}).start();
}
@AfterEach
void tearDown() {
backend.stop();
}
@Test
void testSecuredSetup() throws ExecutionException, RetryException {