Github user bitblender commented on a diff in the pull request: https://github.com/apache/drill/pull/983#discussion_r144143103 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/server/TestOptionsAuthEnabled.java --- @@ -115,4 +124,59 @@ private void setOptHelper() throws Exception { test(String.format("ALTER SYSTEM SET `%s` = %d;", ExecConstants.SLICE_TARGET, ExecConstants.SLICE_TARGET_DEFAULT)); } } + + @Test + public void testAdminUserOptions() throws Exception { + FixtureBuilder builder = ClusterFixture.builder(); + + try (ClusterFixture cluster = builder.build(); + ClientFixture client = cluster.clientFixture()) { + OptionManager optionManager = cluster.drillbit().getContext().getOptionManager(); + + // Admin Users Tests + // config file should have the 'fake' default admin user and it should be returned + // by the option manager if the option has not been set by the user + String configAdminUser = optionManager.getOption(ExecConstants.ADMIN_USERS_VALIDATOR);; --- End diff -- Done
---