Skip to content

Commit

Permalink
Merge docker image name and tag into single string
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-rafalko authored and ebyhr committed Aug 16, 2022
1 parent 6589ba6 commit ab32ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -67,15 +67,15 @@ public class CassandraServer
public CassandraServer()
throws Exception
{
this("2.2");
this("cassandra:2.2");
}

public CassandraServer(String cassandraVersion)
public CassandraServer(String imageName)
throws Exception
{
log.info("Starting cassandra...");

this.dockerContainer = new GenericContainer<>("cassandra:" + cassandraVersion)
this.dockerContainer = new GenericContainer<>(imageName)
.withExposedPorts(PORT)
.withCopyFileToContainer(forHostPath(prepareCassandraYaml()), "/etc/cassandra/cassandra.yaml");
this.dockerContainer.start();
Expand Down
Expand Up @@ -28,7 +28,7 @@ public class TestCassandraLatestConnectorSmokeTest
protected QueryRunner createQueryRunner()
throws Exception
{
CassandraServer server = closeAfterClass(new CassandraServer("3.11.10"));
CassandraServer server = closeAfterClass(new CassandraServer("cassandra:3.11.10"));
CassandraSession session = server.getSession();
createTestTables(session, KEYSPACE, Timestamp.from(TIMESTAMP_VALUE.toInstant()));
return createCassandraQueryRunner(server, ImmutableMap.of(), ImmutableMap.of(), REQUIRED_TPCH_TABLES);
Expand Down

0 comments on commit ab32ff0

Please sign in to comment.