From 811cf32be5a2bb86c7830f4b79ce0ef89a63dacc Mon Sep 17 00:00:00 2001 From: shawkins Date: Fri, 15 Apr 2016 10:17:50 -0400 Subject: [PATCH] TEIID-4011 refining the test to prevent false invalidation --- .../src/test/java/org/teiid/systemmodel/TestMatViews.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test-integration/common/src/test/java/org/teiid/systemmodel/TestMatViews.java b/test-integration/common/src/test/java/org/teiid/systemmodel/TestMatViews.java index 1a5193f703..5d85f67eb8 100644 --- a/test-integration/common/src/test/java/org/teiid/systemmodel/TestMatViews.java +++ b/test-integration/common/src/test/java/org/teiid/systemmodel/TestMatViews.java @@ -481,7 +481,12 @@ public void run() { + "OPTIONS (MATERIALIZED true, \"teiid_rel:ALLOW_MATVIEW_MANAGEMENT\" true, \"teiid_rel:MATVIEW_TTL\" 200) AS select 1, current_database(); " + "CREATE VIEW v2 ( col integer, col1 string, primary key (col, col1) ) " + "OPTIONS (MATERIALIZED true, \"teiid_rel:ALLOW_MATVIEW_MANAGEMENT\" true) AS select 1, current_database()"); - server.deployVDB("comp", mmd2); + VDBMetaData vdb = new VDBMetaData(); + vdb.setXmlDeployment(true); + vdb.setName("comp"); + vdb.setModels(Arrays.asList(mmd2)); + vdb.addProperty("lazy-invalidate", "true"); + server.deployVDB(vdb); Connection c = server.getDriver().connect("jdbc:teiid:comp", null); Statement s = c.createStatement();