Skip to content

Commit

Permalink
Skip SupportInformationRetrieverIT with Exasol 8 for now
Browse files Browse the repository at this point in the history
Will be fixed in #254
  • Loading branch information
kaklakariada committed Apr 16, 2024
1 parent 2d9d989 commit 5660ec4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ public static void assumeDockerDbVersionNotOverriddenToBelowExasolSevenOne() {
&& dockerImageReference.hasMinor() && (dockerImageReference.getMinor() > 0)));
}
}
}

/**
* Assume that the Exasol dockerdb version a container runs with is not overridden to a version below 8
*/
public static void assumeDockerDbVersionNotOverriddenToBelowExasolEight() {
if (getDockerImageOverrideProperty() != null) {
final ExasolDockerImageReference dockerImageReference = getDockerImageReference();
assumeTrue((dockerImageReference.hasMajor() && (dockerImageReference.getMajor() < 8)));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,28 @@

import org.apache.commons.compress.archivers.ArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.io.TempDir;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.ContainerLaunchException;
import org.testcontainers.junit.jupiter.Testcontainers;

import com.exasol.containers.ExasolContainer;
import com.exasol.containers.ExitType;
import com.exasol.containers.*;

@Tag("slow")
@Testcontainers
class SupportInformationRetrieverIT {
private static final Logger LOGGER = LoggerFactory.getLogger(SupportInformationRetrieverIT.class);
private static final String SYSINFO_FILENAME = "sysinfo.txt";

@BeforeAll
static void assumeSupportPackageSupported() {
// These tests don't work with Exasol v8. We will fix this in
// https://github.com/exasol/exasol-testcontainers/issues/254
ExasolContainerAssumptions.assumeDockerDbVersionNotOverriddenToBelowExasolEight();
}

// [itest->dsn~configure-support-information-retriever-via-api~1]
@Test
void testWriteSupportBundleOnExit(@TempDir final Path tempDir) {
Expand Down

0 comments on commit 5660ec4

Please sign in to comment.