コード例 #1
0
        public virtual void TestConfiguration()
        {
            Configuration conf = new Configuration();

            conf.Set(CommonConfigurationKeys.HadoopHttpStaticUser, "joe");
            Assert.Equal("joe", StaticUserWebFilter.GetUsernameFromConf(conf
                                                                        ));
        }
コード例 #2
0
        public virtual void TestOldStyleConfiguration()
        {
            Configuration conf = new Configuration();

            conf.Set("dfs.web.ugi", "joe,group1,group2");
            Assert.Equal("joe", StaticUserWebFilter.GetUsernameFromConf(conf
                                                                        ));
        }