Skip to content

Commit

Permalink
Check for specific rows in system catalog product test
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and findepi committed Oct 20, 2021
1 parent ef2a66f commit f9a3975
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
*/
package io.trino.tests.product;

import com.google.common.collect.ImmutableList;
import io.trino.tempto.ProductTest;
import org.testng.annotations.Test;

import static io.trino.tempto.assertions.QueryAssert.Row.row;
import static io.trino.tempto.assertions.QueryAssert.assertThat;
import static io.trino.tempto.query.QueryExecutor.query;
import static io.trino.tests.product.TestGroups.JDBC;
Expand Down Expand Up @@ -114,6 +116,10 @@ public void selectMetadataCatalogs()
String sql = "select catalog_name, connector_id, connector_name from system.metadata.catalogs";
assertThat(query(sql))
.hasColumns(VARCHAR, VARCHAR, VARCHAR)
.hasAnyRows();
.contains(
ImmutableList.of(
row("jmx", "jmx", "jmx"),
row("system", "system", "system"),
row("tpch", "tpch", "tpch")));
}
}

0 comments on commit f9a3975

Please sign in to comment.