Search in sources :

Example 86 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestCoordJobInfoGetJPAExecutor method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    services.init();
}
Also used : Services(org.apache.oozie.service.Services)

Example 87 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestCoordJobsCountNotForPurgeFromParentIdJPAExecutor method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    setClassesToBeExcluded(services.getConf(), excludedServices);
    services.init();
}
Also used : Services(org.apache.oozie.service.Services)

Example 88 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestCoordJobsDeleteJPAExecutor method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    setClassesToBeExcluded(services.getConf(), excludedServices);
    services.init();
}
Also used : Services(org.apache.oozie.service.Services)

Example 89 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestCoordJobGetJPAExecutor method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    services = new Services();
    services.init();
}
Also used : Services(org.apache.oozie.service.Services)

Example 90 with Services

use of org.apache.oozie.service.Services in project oozie by apache.

the class TestCoordActionGetForInfoJPAExecutor method testCoordActionGetAllColumns.

public void testCoordActionGetAllColumns() throws Exception {
    services.destroy();
    setSystemProperty(CoordActionGetForInfoJPAExecutor.COORD_GET_ALL_COLS_FOR_ACTION, "true");
    services = new Services();
    services.init();
    String resourceXmlName = "coord-action-get.xml";
    CoordinatorJobBean job = addRecordToCoordJobTable(CoordinatorJob.Status.RUNNING, false, false);
    CoordinatorActionBean action = createCoordAction(job.getId(), 1, CoordinatorAction.Status.WAITING, resourceXmlName, 0);
    String slaXml = "slaXml";
    action.setSlaXml(slaXml);
    // Insert the action
    insertRecordCoordAction(action);
    _testGetForInfoAllActions(action.getId(), slaXml);
}
Also used : Services(org.apache.oozie.service.Services) CoordinatorJobBean(org.apache.oozie.CoordinatorJobBean) CoordinatorActionBean(org.apache.oozie.CoordinatorActionBean)

Aggregations

Services (org.apache.oozie.service.Services)247 JPAService (org.apache.oozie.service.JPAService)32 Configuration (org.apache.hadoop.conf.Configuration)21 Date (java.util.Date)17 CoordinatorJobBean (org.apache.oozie.CoordinatorJobBean)16 File (java.io.File)14 Before (org.junit.Before)14 XConfiguration (org.apache.oozie.util.XConfiguration)11 Path (org.apache.hadoop.fs.Path)10 ActionExecutorException (org.apache.oozie.action.ActionExecutorException)10 CoordinatorActionBean (org.apache.oozie.CoordinatorActionBean)8 EmbeddedServletContainer (org.apache.oozie.test.EmbeddedServletContainer)8 FileOutputStream (java.io.FileOutputStream)7 InputStream (java.io.InputStream)7 HashMap (java.util.HashMap)7 IOException (java.io.IOException)6 Properties (java.util.Properties)6 ActionService (org.apache.oozie.service.ActionService)6 StringWriter (java.io.StringWriter)5 WorkflowActionBean (org.apache.oozie.WorkflowActionBean)5