Search in sources :

Example 1 with UnsupportedUGIProvider

use of co.cask.cdap.security.impersonation.UnsupportedUGIProvider in project cdap by caskdata.

the class StreamFileJanitorTestBase method setup.

@Before
public void setup() throws Exception {
    // FileStreamAdmin expects namespace directory to exist.
    // Simulate namespace create, since its an inmemory-namespace admin
    getNamespaceAdmin().create(NamespaceMeta.DEFAULT);
    getNamespacedLocationFactory().get(NamespaceId.DEFAULT).mkdirs();
    impersonator = new DefaultImpersonator(cConf, new UnsupportedUGIProvider());
}
Also used : UnsupportedUGIProvider(co.cask.cdap.security.impersonation.UnsupportedUGIProvider) DefaultImpersonator(co.cask.cdap.security.impersonation.DefaultImpersonator) Before(org.junit.Before)

Aggregations

DefaultImpersonator (co.cask.cdap.security.impersonation.DefaultImpersonator)1 UnsupportedUGIProvider (co.cask.cdap.security.impersonation.UnsupportedUGIProvider)1 Before (org.junit.Before)1