initial experiments

This commit is contained in:
Jonathan Shook
2023-01-25 16:35:19 -06:00
parent c6aa66f50e
commit 6dea293d56
3 changed files with 141 additions and 0 deletions

93
nb5-proof/pom.xml Normal file
View File

@@ -0,0 +1,93 @@
<!--
~ Copyright (c) 2022-2023 nosqlbench
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>mvn-defaults</artifactId>
<groupId>io.nosqlbench</groupId>
<version>${revision}</version>
<relativePath>../mvn-defaults</relativePath>
</parent>
<artifactId>nb5-proof</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>An end-to-end testing module for bundled drivers.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<javadoc.name>nb5-end-to-end</javadoc.name>
</properties>
<dependencies>
<dependency>
<groupId>io.nosqlbench</groupId>
<artifactId>nb5</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mysql</artifactId>
<scope>test</scope>
<version>1.17.6</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>cassandra</artifactId>
<version>1.17.6</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!-- <plugin>-->
<!-- <groupId>org.codehaus.mojo</groupId>-->
<!-- <artifactId>exec-maven-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>link-nb-jar-name</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>exec</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <environmentVariables>-->
<!-- <NBJAR_VERSION>${project.version}</NBJAR_VERSION>-->
<!-- </environmentVariables>-->
<!-- <basedir>${project.basedir}</basedir>-->
<!-- <executable>${project.basedir}/nb-scripts/link-jar-name.sh</executable>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
</build>
</project>

View File

@@ -0,0 +1,47 @@
/*
* Copyright (c) 2023 nosqlbench
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.nosqlbench.nb5.proof;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.utility.DockerImageName;
public class ExampleContainers {
// private static GenericContainer cass= new CassandraContainer("cassandra").withExposedPorts(9042);
public static GenericContainer<?> redis = new GenericContainer<>(DockerImageName.parse("redis:3.0.6"))
.withExposedPorts(6379);
@BeforeAll
public static void initContainer() {
redis.start();
}
@BeforeEach
public void setUp() {
System.out.println("foo");
}
@Test
public void testSimplePutAndGet() {
System.out.println("foo");
}
}

View File

@@ -80,6 +80,7 @@
<!-- TODO - consider using properties in the module defs. -->
<!-- CORE MODULES -->
<module>mvn-defaults</module>
<module>nb5-proof</module>
<module>nb5</module>
<module>nbr</module>
<module>nbr-examples</module>