diff --git a/plugin/trino-mongodb/src/test/java/io/trino/plugin/mongodb/TestMongoPrivileges.java b/plugin/trino-mongodb/src/test/java/io/trino/plugin/mongodb/TestMongoPrivileges.java index ad48dd8f5507..1b18b37f84a6 100644 --- a/plugin/trino-mongodb/src/test/java/io/trino/plugin/mongodb/TestMongoPrivileges.java +++ b/plugin/trino-mongodb/src/test/java/io/trino/plugin/mongodb/TestMongoPrivileges.java @@ -45,6 +45,12 @@ protected QueryRunner createQueryRunner() return createMongoQueryRunner(mongoServer.testUserConnectionString().getConnectionString()); } + @Test + public void testSchemasVisibility() + { + assertQuery("SHOW SCHEMAS FROM mongodb", "VALUES 'information_schema','%s'".formatted(TEST_DATABASE)); + } + @Test public void testTablesVisibility() {