mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
update test to support reference checking
This commit is contained in:
parent
e8cb418b14
commit
3a3ebc3203
@ -43,8 +43,8 @@ public class CqlParserHarnessTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testAllTypes() {
|
public void testAllTypes() {
|
||||||
CGWorkloadExporter exporter = new CGWorkloadExporter();
|
CGWorkloadExporter exporter = new CGWorkloadExporter();
|
||||||
exporter.appMain(new String[]{"src/test/resources/testschemas/cql_alltypes.cql"});
|
exporter.appMain(new String[]{"src/test/resources/testschemas/cql_alltypes.cql","_alltypes.yaml"});
|
||||||
exporter.setNamingTemplate("[OPTYPE-][COLUMN-][TYPEDEF-][TABLE!]-[KEYSPACE]");
|
exporter.setNamingTemplate("[OPTYPE-][COLUMN-][TYPEDEF-][TABLE-]-[KEYSPACE]");
|
||||||
var data = exporter.getWorkloadAsYaml();
|
var data = exporter.getWorkloadAsYaml();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,12 @@
|
|||||||
-- CREATE KEYSPACE baselines
|
-- CREATE KEYSPACE baselines
|
||||||
-- WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
|
-- WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
|
||||||
|
|
||||||
|
CREATE KEYSPACE baselines
|
||||||
|
WITH REPLICATION = {
|
||||||
|
'class' : 'SimpleStrategy',
|
||||||
|
'replication_factor' : 1
|
||||||
|
};
|
||||||
|
|
||||||
CREATE TABLE baselines.alltypes
|
CREATE TABLE baselines.alltypes
|
||||||
(
|
(
|
||||||
id text PRIMARY KEY,
|
id text PRIMARY KEY,
|
||||||
|
Loading…
Reference in New Issue
Block a user