update test to support reference checking

This commit is contained in:
Jonathan Shook 2022-08-09 12:54:23 -05:00
parent e8cb418b14
commit 3a3ebc3203
2 changed files with 8 additions and 2 deletions

View File

@ -43,8 +43,8 @@ public class CqlParserHarnessTest {
@Test
public void testAllTypes() {
CGWorkloadExporter exporter = new CGWorkloadExporter();
exporter.appMain(new String[]{"src/test/resources/testschemas/cql_alltypes.cql"});
exporter.setNamingTemplate("[OPTYPE-][COLUMN-][TYPEDEF-][TABLE!]-[KEYSPACE]");
exporter.appMain(new String[]{"src/test/resources/testschemas/cql_alltypes.cql","_alltypes.yaml"});
exporter.setNamingTemplate("[OPTYPE-][COLUMN-][TYPEDEF-][TABLE-]-[KEYSPACE]");
var data = exporter.getWorkloadAsYaml();
}

View File

@ -17,6 +17,12 @@
-- CREATE KEYSPACE baselines
-- 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
(
id text PRIMARY KEY,