public class TestCredentials extends ActionExecutorTestCase {
public void testHbaseCredentials() {
CredentialsProperties prop = new CredentialsProperties("dummyName", "dummyType");
prop.getProperties().put("hbase.zookeeper.quorum", "dummyHost");
Credentials hb = new HbaseCredentials();
WorkflowJobBean wfBean = new WorkflowJobBean();
wfBean.setUser("dummyUser");
JobConf jc = new JobConf(false);
try {
hb.addtoJobConf(jc, prop, new Context(wfBean, new WorkflowActionBean()));
}
catch (Exception e) {
// Change this when security related classes are available from
// hbase maven repo
if (!(e.getCause() instanceof ClassNotFoundException)) {