Skip to content

Commit

Permalink
Test schemas visibility for MongoDB with authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
huberty89 authored and ebyhr committed Dec 5, 2022
1 parent f695af0 commit a53d472
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit a53d472

Please sign in to comment.