code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public URI getExpectedReverseProxyContainerizedURI() throws IOException {
return buildExecutorUri(null, 1, "container", false, DispatchMethod.CONTAINERIZED, (Pair<String, String>[]) null);
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | getExpectedReverseProxyContainerizedURI | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
@Override
public URI buildExecutorUri(String host, int port, String path,
boolean isHttp, final DispatchMethod dispatchMethod, Pair<String, String>... params) throws IOException {
this.lastBuildExecutorUriRespone = super.buildExecutorUri(host, port, path, isHttp, dispatchMethod, params);
return ... | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | buildExecutorUri | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
@Override
public String httpPost(URI uri, Optional<Integer> httpTimeout,
List<Pair<String, String>> params)
throws IOException {
this.lastHttpPostUri = uri;
this.lastHttpPostParams = params;
return nextHttpPostResponse;
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | httpPost | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
public void setNextHttpPostResponse(String nextHttpPostResponse) {
this.nextHttpPostResponse = nextHttpPostResponse;
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | setNextHttpPostResponse | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
public URI getLastBuildExecutorUriRespone() {
return lastBuildExecutorUriRespone;
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | getLastBuildExecutorUriRespone | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
public URI getLastHttpPostUri() {
return lastHttpPostUri;
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | getLastHttpPostUri | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
public List<Pair<String, String>> getLastHttpPostParams() {
return lastHttpPostParams;
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | getLastHttpPostParams | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
@After
public void shutdown() {
if(this.containerizedDispatchManager != null) {
this.containerizedDispatchManager.shutdown();
}
} | This test tries to verify the the flow is finalized and restarted if the dispatch fails.
@throws Exception | shutdown | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ContainerizedDispatchManagerTest.java | Apache-2.0 |
@Test
public void testGetApplicationIdsFromLog() throws Exception {
when(this.executorLoader.fetchActiveFlowByExecId(this.flow1.getExecutionId()))
.thenReturn(new Pair<>(this.ref1, this.flow1));
// Verify that application ids are obtained successfully from the log data.
final String logData1 = "S... | Test fetching application ids from log data.
@throws Exception the exception | testGetApplicationIdsFromLog | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | Apache-2.0 |
private Answer<Object> getLogChunksMock(final String logData) {
return invocationOnMock -> {
String offsetStr = null, lengthStr = null;
for (final Object arg : invocationOnMock.getArguments()) {
if (!(arg instanceof Pair)) {
continue;
}
final Pair pairArg = (Pair) arg;
... | Test fetching application ids from log data.
@throws Exception the exception | getLogChunksMock | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | Apache-2.0 |
private void submitFlow(final ExecutableFlow flow, final ExecutionReference ref) throws
Exception {
when(this.executorLoader.fetchExecutableFlow(flow.getExecutionId())).thenReturn(flow);
this.controller.submitExecutableFlow(flow, this.user.getUserId());
this.unfinishedFlows.put(flow.getExecutionId(), ... | Test fetching application ids from log data.
@throws Exception the exception | submitFlow | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | Apache-2.0 |
private void initializeUnfinishedFlows() throws Exception {
this.unfinishedFlows = ImmutableMap
.of(this.flow1.getExecutionId(), new Pair<>(this.ref1, this.flow1),
this.flow2.getExecutionId(), new Pair<>(this.ref2, this.flow2),
this.flow3.getExecutionId(), new Pair<>(this.ref3, this.... | Test fetching application ids from log data.
@throws Exception the exception | initializeUnfinishedFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | Apache-2.0 |
private void initializeUnfinishedFlowMock() throws Exception {
when(this.executorLoader.fetchUnfinishedFlows()).thenReturn(this.unfinishedFlows);
when(this.executorLoader.fetchUnfinishedFlow(anyInt())).thenAnswer(
(Answer<Pair<ExecutionReference, ExecutableFlow>>) invocation -> {
Object[] argu... | Test fetching application ids from log data.
@throws Exception the exception | initializeUnfinishedFlowMock | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerTest.java | Apache-2.0 |
@Test
public void jobLinkUrlBasedOnSparkHistoryServerUrlForUnroutedJobs() throws Exception {
mockStatic(AuthenticationUtils.class);
final HttpURLConnection connection = mock(HttpURLConnection.class);
when(connection.getInputStream()).thenReturn(
new ByteArrayInputStream("Failed to read the applic... | Verify for a Spark job that is not routed to any cluster, its job link url is based on Spark
History Server URL when the RM job link is invalid. | jobLinkUrlBasedOnSparkHistoryServerUrlForUnroutedJobs | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void jobLinkUrlBasedOnResourceManagerUrlForUnroutedJobs() throws Exception {
mockStatic(AuthenticationUtils.class);
final HttpURLConnection connection = mock(HttpURLConnection.class);
when(connection.getInputStream()).thenReturn(
new ByteArrayInputStream("SUCCESS".getBytes("UTF-8"))
... | Verify for a a given job that is not routed to any cluster, a job link url based on Resource
Manager URL if returned when the RM job link is still valid. | jobLinkUrlBasedOnResourceManagerUrlForUnroutedJobs | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void noJobLinkUrlForUnroutedJobWhenResourceManagerConnectionFails() throws Exception {
mockStatic(AuthenticationUtils.class);
// mock AuthenticationUtils so that RM request to validate job link fails
when(AuthenticationUtils.loginAuthenticatedURL(any(URL.class), anyString(), anyString()))
... | Verify for a given job that is not routed to any cluster, no job link URL is returned when the
connection to RM to validate the RM job link fails. | noJobLinkUrlForUnroutedJobWhenResourceManagerConnectionFails | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void jobLinkUrlBasedOnSparkHistoryServerUrlForRoutedJobs() throws Exception {
mockStatic(AuthenticationUtils.class);
final HttpURLConnection connection = mock(HttpURLConnection.class);
when(connection.getInputStream()).thenReturn(
new ByteArrayInputStream("Failed to read the applicat... | Verify for a given Spark job routed to a cluster previously, its job link url is based on Spark
History Server URL when the RM job link is invalid. | jobLinkUrlBasedOnSparkHistoryServerUrlForRoutedJobs | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void noJobLinkUrlForRoutedJobsWhenMissingFullClusterInfo() throws Exception {
mockStatic(AuthenticationUtils.class);
final HttpURLConnection connection = mock(HttpURLConnection.class);
when(connection.getInputStream()).thenReturn(
new ByteArrayInputStream("Failed to read the applicat... | Verify for a given job that is routed to a cluster previously, no job link url is returned if
Resource Manager URL, Spark History Server URL or History Server URL, is missing. | noJobLinkUrlForRoutedJobsWhenMissingFullClusterInfo | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void jobLinkUrlBasedOnResourceManagerUrlForRoutedJobs() throws Exception {
mockStatic(AuthenticationUtils.class);
final HttpURLConnection connection = mock(HttpURLConnection.class);
when(connection.getInputStream()).thenReturn(
new ByteArrayInputStream("SUCCESS".getBytes("UTF-8"))
... | Verify for a a given job that is routed to a cluster previously, a job link url based on
Resource Manager URL is returned when the RM job link is still valid. | jobLinkUrlBasedOnResourceManagerUrlForRoutedJobs | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void noJobLinkUrlForRoutedJobWhenResourceManagerConnectionFails() throws Exception {
mockStatic(AuthenticationUtils.class);
// mock AuthenticationUtils so that RM request to validate job link fails
when(AuthenticationUtils.loginAuthenticatedURL(any(URL.class), anyString(), anyString()))
... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | noJobLinkUrlForRoutedJobWhenResourceManagerConnectionFails | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
private ExecutableNode createExecutableNode(final String id, final String type,
final ClusterInfo clusterInfo) {
final ExecutableNode node = mock(ExecutableNode.class);
when(node.getType()).thenReturn(type);
when(node.getId()).thenReturn(id);
when(node.getClusterInfo()).thenReturn(clusterInfo);
... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | createExecutableNode | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
private ExecutableFlow createSingleNodeFlow(final ExecutableNode node) {
final ExecutableFlow flow = mock(ExecutableFlow.class);
when(flow.getExecutableNodePath(anyString())).thenReturn(node);
return flow;
} | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | createSingleNodeFlow | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestartSuccess_EXECUTION_STOPPED() {
ExecutableFlow testFlow = new ExecutableFlow();
ExecutionOptions options = new ExecutionOptions();
options.addAllFlowParameters(ImmutableMap.of(
FlowParameters.FLOW_PARAM_ALLOWED_RETRY_STATUS, "EXECUTION_STOPPED,FAILED",
F... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestartSuccess_EXECUTION_STOPPED | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestartSuccessWithoutMaxRetry_EXECUTION_STOPPED() {
ExecutableFlow testFlow = new ExecutableFlow();
ExecutionOptions options = new ExecutionOptions();
options.addAllFlowParameters(ImmutableMap.of(
FlowParameters.FLOW_PARAM_ALLOWED_RETRY_STATUS, "EXECUTION_STOPPED,FAI... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestartSuccessWithoutMaxRetry_EXECUTION_STOPPED | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestartNoExecutionOptions() {
ExecutableFlow testFlow = new ExecutableFlow();
testFlow.setExecutionOptions(null);
ExecutableFlow flowToRestart = ExecutionControllerUtils.getFlowToRestart(testFlow,
Status.PREPARING);
assertNull(flowToRestart);
} | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestartNoExecutionOptions | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestartNoSystemRetriedExceed() {
ExecutableFlow testFlow = new ExecutableFlow();
testFlow.setExecutionOptions(new ExecutionOptions());
testFlow.setSystemDefinedRetryCount(1);
ExecutableFlow flowToRestart = ExecutionControllerUtils.getFlowToRestart(testFlow,
Stat... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestartNoSystemRetriedExceed | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestart_NoOperation_NotIncludedStatus_KILLED() {
ExecutableFlow testFlow = new ExecutableFlow();
ExecutionOptions options = new ExecutionOptions();
options.addAllFlowParameters(ImmutableMap.of(
FlowParameters.FLOW_PARAM_ALLOWED_RETRY_STATUS, "EXECUTION_STOPPED,FAILED... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestart_NoOperation_NotIncludedStatus_KILLED | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestartSuccess_PREPARING() {
final ExecutableNode node = createExecutableNode("testJob", "spark", null);
ExecutableFlow testFlow = new ExecutableFlow();
ExecutionOptions options = new ExecutionOptions();
options.addAllFlowParameters(ImmutableMap.of(
FlowParameter... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestartSuccess_PREPARING | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testGetFlowToRestartFAIL_ALREADY_MAX_RETRY() throws RuntimeException {
final ExecutableNode node = createExecutableNode("testJob", "spark", null);
ExecutableFlow testFlow = createSingleNodeFlow(node);
ExecutionOptions options = new ExecutionOptions();
options.addAllFlowParameters(Im... | Verify for a given job that is routed to a cluster previously, no job link URL is returned when
the connection to RM to validate the RM job link fails. | testGetFlowToRestartFAIL_ALREADY_MAX_RETRY | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionControllerUtilsTest.java | Apache-2.0 |
@Test
public void testLockSuccessSelectAndUpdateExecutionWithLockingWithoutBatch() throws Exception {
when(mysqlNamedLock
.getLock(any(DatabaseTransOperator.class), any(String.class), any(Integer.class)))
.thenReturn(true);
when(mysqlNamedLock.releaseLock(any(DatabaseTransOperator.class), any(... | This test method is written to verify that selectAndUpdateExecutionWithLocking is working as
expected when batch select is disabled and execution status to select READY.
@throws Exception | testLockSuccessSelectAndUpdateExecutionWithLockingWithoutBatch | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testLockSuccessSelectAndUpdateExecutionWithLockingWithBatch() throws Exception {
when(mysqlNamedLock
.getLock(any(DatabaseTransOperator.class), any(String.class), any(Integer.class)))
.thenReturn(true);
when(mysqlNamedLock.releaseLock(any(DatabaseTransOperator.class), any(Str... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testLockSuccessSelectAndUpdateExecutionWithLockingWithBatch | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testLockSuccessSelectAndUpdateExecutionWithLockingWithoutLimit() throws Exception {
when(mysqlNamedLock.getLock(any(DatabaseTransOperator.class), any(String.class), any(Integer.class)))
.thenReturn(true);
when(mysqlNamedLock.releaseLock(any(DatabaseTransOperator.class), any(String.cl... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testLockSuccessSelectAndUpdateExecutionWithLockingWithoutLimit | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testLockSuccessSelectAndUpdateExecutionWithLockingWithLimit() throws Exception {
when(mysqlNamedLock.getLock(any(DatabaseTransOperator.class), any(String.class), any(Integer.class)))
.thenReturn(true);
when(mysqlNamedLock.releaseLock(any(DatabaseTransOperator.class), any(String.class... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testLockSuccessSelectAndUpdateExecutionWithLockingWithLimit | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testSelectAndUpdateExecutionWithPriority() throws Exception {
// Selecting executions when DB is empty
assertThat(this.executionFlowDao.selectAndUpdateExecution(-1, true, DispatchMethod.POLL))
.as("Expected no execution selected")
.isEqualTo(-1);
final long currentTime =... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testSelectAndUpdateExecutionWithPriority | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testSelectAndUpdateExecutionWithSamePriority() throws Exception {
// Selecting executions when DB is empty
assertThat(this.executionFlowDao.selectAndUpdateExecution(-1, true, DispatchMethod.POLL))
.as("Expected no execution selected")
.isEqualTo(-1);
final long currentTi... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testSelectAndUpdateExecutionWithSamePriority | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchExecutableFlows() throws Exception {
final ExecutableFlow flow = submitNewFlow("exectest1", "exec1",
System.currentTimeMillis(), ExecutionOptions.DEFAULT_FLOW_PRIORITY, DispatchMethod.POLL);
int execId = flow.getExecutionId();
makeFlowStatusInconsistent(exe... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchExecutableFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchFlowHistory() throws Exception {
final ExecutableFlow flow = submitNewFlow("exectest1", "exec1",
System.currentTimeMillis(), ExecutionOptions.DEFAULT_FLOW_PRIORITY, DispatchMethod.POLL);
int execId = flow.getExecutionId();
makeFlowStatusInconsistent(execId,... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchFlowHistory | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void fetchFlowStatusWithFlowHistoryByStartTime() throws Exception {
final ExecutableFlow flow1 =
createExecution(TimeUtils.convertDateTimeToUTCMillis("2018-09-01 10:00:00"),
DispatchMethod.POLL, Status.PREPARING);
final ExecutableFlow flow2 =
createExecution(TimeUtils.... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | fetchFlowStatusWithFlowHistoryByStartTime | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchUnfinishedFlows() throws Exception {
final ExecutableFlow flow1 = createExecutionAndAssign(Status.QUEUED, DispatchMethod.POLL,
this.executorDao.addExecutor("test", 1));
final Map<Integer, Pair<ExecutionReference, ExecutableFlow>> unfinishedFlows1 =
thi... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchUnfinishedFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchActiveFlows() throws Exception {
final ExecutableFlow flow1 = createExecutionAndAssign(Status.RUNNING, DispatchMethod.POLL,
this.executorDao.addExecutor("test", 1));
final Map<Integer, Pair<ExecutionReference, ExecutableFlow>> activeFlows1 =
this.fetch... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchActiveFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchActiveFlowByExecId() throws Exception {
final ExecutableFlow flow1 = createExecutionAndAssign(Status.RUNNING, DispatchMethod.POLL,
this.executorDao.addExecutor("test", 1));
Pair<ExecutionReference, ExecutableFlow> activeFlow1 =
this.fetchActiveFlowDao.f... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchActiveFlowByExecId | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchQueuedFlows() throws Exception {
final ExecutableFlow flow1 = submitNewFlow("exectest1", "exec1", System.currentTimeMillis(),
ExecutionOptions.DEFAULT_FLOW_PRIORITY, DispatchMethod.POLL);
flow1.setStatus(Status.RUNNING);
this.executionFlowDao.updateExecutab... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchQueuedFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testFlowStatusWithFetchRecentlyFinishedFlows() throws Exception {
final ExecutableFlow flow1 =
createExecution(System.currentTimeMillis(), DispatchMethod.POLL, Status.SUCCEEDED);
flow1.setEndTime(System.currentTimeMillis());
this.executionFlowDao.updateExecutableFlow(flow1);
... | This method is used to verify that selectAndUpdateExecutionWithLocking is working as expected
when batch is enabled and execution status to select is READY.
@throws Exception | testFlowStatusWithFetchRecentlyFinishedFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testUpdateExecutableFlowNullSLAOptions() throws Exception {
final ExecutableFlow flow = createTestFlow();
this.executionFlowDao.uploadExecutableFlow(flow);
final ExecutableFlow fetchFlow =
this.executionFlowDao.fetchExecutableFlow(flow.getExecutionId());
// set null sla opt... | Test the resiliency of ExecutableFlow when Sla Option is set to NULL.
Make sure that the serialization of flow object does not break and the flow proceeds to
next valid state. | testUpdateExecutableFlowNullSLAOptions | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testUpdateExecutionFlowVersionSet() throws Exception {
final ExecutableFlow flow = createTestFlow();
this.executionFlowDao.uploadExecutableFlow(flow);
flow.setVersionSet(createVersionSet());
this.executionFlowDao.updateExecutableFlow(flow);
final ExecutableFlow fetchFlow =
... | Test when an executable flow sets its version set field, the information can be retrieved
after updateExecutableFlow and fetchExecutableFlow
@throws Exception | testUpdateExecutionFlowVersionSet | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
@Test
public void testGetTerminalStatusesString() throws Exception {
final String target = "50, 60, 65, 70";
Assert.assertTrue(this.fetchActiveFlowDao.getTerminalStatusesString().equals(target));
} | Test generating a string representing terminating flow statuses
@throws Exception | testGetTerminalStatusesString | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private void makeFlowStatusInconsistent(int executionId, Status status) {
final String MODIFY_FLOW_STATUS = "UPDATE execution_flows SET status=? WHERE exec_id=?";
try {
dbOperator.update(MODIFY_FLOW_STATUS, status.getNumVal(), executionId);
} catch (SQLException e) {
e.printStackTrace();
}
... | Test generating a string representing terminating flow statuses
@throws Exception | makeFlowStatusInconsistent | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private ExecutableFlow submitNewFlow(final String projectName, final String flowName,
final long submitTime, final int flowPriority, DispatchMethod dispatchMethod) throws IOException,
ExecutorManagerException {
return submitNewFlow(projectName, flowName, submitTime, flowPriority, Status.PREPARING,
... | Test generating a string representing terminating flow statuses
@throws Exception | submitNewFlow | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private ExecutableFlow submitNewFlow(final String projectName, final String flowName,
final long submitTime, final int flowPriority, final Status status, DispatchMethod dispatchMethod) throws IOException,
ExecutorManagerException {
return submitNewFlow(projectName, flowName, submitTime, flowPriority, st... | Test generating a string representing terminating flow statuses
@throws Exception | submitNewFlow | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private ExecutableFlow submitNewFlow(final String projectName, final String flowName,
final long submitTime, final int flowPriority, final Status status,
Optional<Long> startTime, DispatchMethod dispatchMethod) throws IOException,
ExecutorManagerException {
final ExecutableFlow flow = TestUtils.cr... | Test generating a string representing terminating flow statuses
@throws Exception | submitNewFlow | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private void assertTwoFlowSame(final ExecutableFlow flow1, final ExecutableFlow flow2) {
assertTwoFlowSame(flow1, flow2, true);
} | Test generating a string representing terminating flow statuses
@throws Exception | assertTwoFlowSame | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private void assertTwoFlowSame(final ExecutableFlow flow1, final ExecutableFlow flow2,
final boolean compareFlowData) {
assertThat(flow1.getExecutionId()).isEqualTo(flow2.getExecutionId());
assertThat(flow1.getStatus()).isEqualTo(flow2.getStatus());
assertThat(flow1.getEndTime()).isEqualTo(flow2.getEn... | Test generating a string representing terminating flow statuses
@throws Exception | assertTwoFlowSame | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private VersionSet createVersionSet(){
final String testJsonString1 = "{\"azkaban-base\":{\"version\":\"7.0.4\",\"path\":\"path1\","
+ "\"state\":\"ACTIVE\"},\"azkaban-config\":{\"version\":\"9.1.1\",\"path\":\"path2\","
+ "\"state\":\"ACTIVE\"},\"spark\":{\"version\":\"8.0\",\"path\":\"path3\","
... | Create a version set from scratch
@return a new version set | createVersionSet | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutionFlowDaoTest.java | Apache-2.0 |
private static void setupTlsEnabledServer() throws Exception {
final SslSocketConnector secureConnector = new SslSocketConnector();
secureConnector.setPort(JETTY_TLS_PORT);
secureConnector.setKeystore(KEYSTORE_PATH);
secureConnector.setPassword(DEFAULT_PASSWORD);
secureConnector.setKeyPassword(DEFAU... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | setupTlsEnabledServer | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@BeforeClass
public static void setUp() throws Exception {
tlsEnabledProps = new Props();
tlsEnabledProps.put(EXECUTOR_CLIENT_TLS_ENABLED, "true");
tlsEnabledProps
.put(EXECUTOR_CLIENT_TRUSTSTORE_PATH, ExecutorApiClient.class.getResource("test-cacerts").getPath());
tlsEnabledProps.put(EXECUTOR... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | setUp | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testTlsEnabledApiClient() {
final ExecutorApiClient tlsEnabledClient = new ExecutorApiClient(this.tlsEnabledProps);
Assert.assertNotNull(tlsEnabledClient);
Assert.assertNotNull(tlsEnabledClient.getTlsSocketFactory());
} | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testTlsEnabledApiClient | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testPostResponse() throws Exception {
final ExecutorApiClient tlsEnabledClient = new ExecutorApiClient(this.tlsEnabledProps);
final String postResponse = tlsEnabledClient
.doPost(new URI(SimpleServlet.TLS_ENABLED_URI), DispatchMethod.CONTAINERIZED,
Optional.empty(),null);... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testPostResponse | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testDoPostCall() throws Exception {
final ExecutorApiClient tlsEnabledClient = new ExecutorApiClient(this.tlsEnabledProps);
ExecutorApiClient spyTlsEnabledClient = Mockito.spy(tlsEnabledClient);
final String postResponse = spyTlsEnabledClient
.doPost(new URI(SimpleServlet.TLS... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testDoPostCall | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testGetResponse() throws Exception {
// Currently ExecutorApiClient does not make any POST requests.
// This is for sanity testing that TLS enabled http-client continues working as expected with
// GET requests as well.
final ExecutorApiClient tlsEnabledClient = new ExecutorApiClient... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testGetResponse | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testCreateDefaultExecutorApiClient() {
final ExecutorApiClient tlsDisabledClient = new ExecutorApiClient(new Props());
Assert.assertNotNull(tlsDisabledClient);
Assert.assertNull(tlsDisabledClient.getTlsSocketFactory());
} | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testCreateDefaultExecutorApiClient | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test(expected = SSLHandshakeException.class)
public void testFailureWithClientTlsDisabled() throws Exception {
final ExecutorApiClient tlsDisabledClient = new ExecutorApiClient(new Props());
// this should throw SSLHandshakeException
final String postResponse = tlsDisabledClient.
httpPost(new URI... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testFailureWithClientTlsDisabled | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test(expected = SSLHandshakeException.class)
public void testFailureWithInvalidCerts() throws Exception {
final Props tlsPropsWithInvalidCert = new Props(tlsEnabledProps);
tlsPropsWithInvalidCert.put(EXECUTOR_CLIENT_TRUSTSTORE_PATH,
ExecutorApiClient.class.getResource("invalid-cacerts").getPath());
... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testFailureWithInvalidCerts | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testReverseProxyValidProperties() {
final Props validProps = new Props(validReverseProxyProps);
final ExecutorApiClient validClient = new ExecutorApiClient(validProps);
Assert.assertEquals(true, validClient.isReverseProxyEnabled());
Assert.assertEquals(REVERSE_PROXY_HOST, validClient... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testReverseProxyValidProperties | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testReverseProxyMissingProperties() {
final Props invalidProps = new Props();
invalidProps.put(AZKABAN_EXECUTOR_REVERSE_PROXY_ENABLED, "true");
// missing reverse proxy host
try {
final ExecutorApiClient client = new ExecutorApiClient(invalidProps);
Assert.fail();
} c... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testReverseProxyMissingProperties | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testBuildUriWithoutReverseProxy() throws Exception {
final ExecutorApiClient client = new ExecutorApiClient(new Props());
URI uri = client.buildExecutorUri("localhost", JETTY_TLS_PORT, "executor",true, null,
(Pair<String,String>[])null);
Assert.assertEquals("http://localhost:" +... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testBuildUriWithoutReverseProxy | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Test
public void testBuildUriWithReverseProxy() throws Exception {
final ExecutorApiClient client = new ExecutorApiClient(validReverseProxyProps);
URI uri = client.buildExecutorUri(null, 0, "execid-101/container",false, DispatchMethod.CONTAINERIZED,
(Pair<String,String>[])null);
Assert.assertEqua... | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | testBuildUriWithReverseProxy | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Override
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
resp.getWriter().print(this.GET_RESPONSE_STRING);
} | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | doGet | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Override
protected void doPost(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
resp.getWriter().print(this.POST_RESPONSE_STRING);
} | For testing of ExecutorApiClient. This is currently focused on sanity testing TLS client side
support introduced within the ExecutorApiClient. The core functionality of ExecutorApiClient is
already expected to be tested through other means, such as through ExecutorApiGateway tests.
Highlights:
<p> 1. Launches a TLS ena... | doPost | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@AfterClass
public static void stop() throws Exception {
tlsEnabledServer.stop();
} | This method is used to stop tls enabled jetty server.
@throws Exception | stop | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorApiClientTest.java | Apache-2.0 |
@Before
public void setUp() throws Exception {
this.props = new Props();
this.props.put(ConfigurationKeys.AZKABAN_EXECUTOR_MAX_FAILURE_COUNT, 2);
this.props.put(ConfigurationKeys.AZKABAN_ADMIN_ALERT_EMAIL, AZ_ADMIN_ALERT_EMAIL);
this.loader = mock(ExecutorLoader.class);
this.mailAlerter = mock(Ema... | Test case for executor health checker. | setUp | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void checkExecutorHealthAlive() throws Exception {
this.activeFlows.put(EXECUTION_ID_11, new Pair<>(
new ExecutionReference(EXECUTION_ID_11, this.executor1, DispatchMethod.POLL), this.flow1));
when(this.apiGateway.callWithExecutionId(this.executor1.getHost(), this.executor1.getPort(),
... | Test running flow is not finalized and alert email is not sent when executor is alive. | checkExecutorHealthAlive | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void checkExecutorHealthExecutorIdRemoved() throws Exception {
this.activeFlows.put(EXECUTION_ID_11, new Pair<>(
new ExecutionReference(EXECUTION_ID_11, null, DispatchMethod.POLL), this.flow1));
when(this.loader.fetchExecutableFlow(EXECUTION_ID_11)).thenReturn(this.flow1);
this.execut... | Test running flow is finalized when its executor is removed from DB. | checkExecutorHealthExecutorIdRemoved | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void checkExecutorHealthConsecutiveFailures() throws Exception {
// By default mocked methods will return an empty collection.
// Therefore underlying call to apiGateway.callWithExecutionId returns an empty Map for all
// invocations of executorHealthChecker.checkExecutorHealth() in this test... | Test alert emails are sent when there are consecutive failures to contact the executor. | checkExecutorHealthConsecutiveFailures | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void testCheckExecutorHealthWrapperExceptionHandling() throws Exception {
this.activeFlows.put(EXECUTION_ID_11, new Pair<>(
new ExecutionReference(EXECUTION_ID_11, this.executor1, DispatchMethod.POLL), this.flow1));
when(this.apiGateway.callWithExecutionId(this.executor1.getHost(), this.e... | Test that the wrapper routine swallows any exceptions reported by underlying health checker. | testCheckExecutorHealthWrapperExceptionHandling | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void testFailureDuringExecutorPing() throws Exception {
this.activeFlows.put(EXECUTION_ID_11, new Pair<>(
new ExecutionReference(EXECUTION_ID_11, this.executor1, DispatchMethod.POLL), this.flow1));
this.activeFlows.put(EXECUTION_ID_12, new Pair<>(
new ExecutionReference(EXECUTION_... | Test that runtime exceptions from the Ping API for one executor don't prevent healthchecks on
other executors. | testFailureDuringExecutorPing | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void testFailureDuringAlerting() throws Exception {
this.activeFlows.clear();
this.activeFlows.put(EXECUTION_ID_11, new Pair<>(
new ExecutionReference(EXECUTION_ID_11, this.executor1, DispatchMethod.POLL), this.flow1));
// Force a failure of the executor ping API
ExecutorManagerE... | Test that any failures while sending alerts for unreachable executors don't prevent the
finalization(cleanup) of flows running on that executor. | testFailureDuringAlerting | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void testFailureDuringFinalization() throws Exception {
this.activeFlows.put(EXECUTION_ID_11, new Pair<>(
new ExecutionReference(EXECUTION_ID_11, this.executor1, DispatchMethod.POLL), this.flow1));
this.activeFlows.put(EXECUTION_ID_12, new Pair<>(
new ExecutionReference(EXECUTION_... | Test that exceptions during flow finalization do not block finalization of subsequent flow
for an executor. | testFailureDuringFinalization | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorHealthCheckerTest.java | Apache-2.0 |
@Test
public void testDispatchException() throws Exception {
testSetUpForRunningFlows();
this.manager.start();
final ExecutableFlow flow1 = TestUtils.createTestExecutableFlow("exectest1", "exec1", DispatchMethod.PUSH);
doReturn(flow1).when(this.executorLoader).fetchExecutableFlow(-1);
mockFlowDoes... | 1. Executor 1 throws an exception when trying to dispatch to it 2. ExecutorManager should try
next executor 3. Executor 2 accepts the dispatched execution | testDispatchException | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Ignore
@Test
public void testDispatchFailed() throws Exception {
testSetUpForRunningFlows();
this.manager.start();
final ExecutableFlow flow1 = TestUtils.createTestExecutableFlow("exectest1", "exec1", DispatchMethod.PUSH);
flow1.getExecutionOptions().setFailureEmails(Arrays.asList("test@example.com... | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testDispatchFailed | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
private void mockFlowDoesNotExist() throws Exception {
mockUpdateResponse(ImmutableMap.of(ConnectorParams.RESPONSE_UPDATED_FLOWS,
Collections.singletonList(ImmutableMap.of(
ConnectorParams.UPDATE_MAP_EXEC_ID, -1,
"error", "Flow does not exist"))));
} | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | mockFlowDoesNotExist | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@SuppressWarnings("unchecked")
private void mockUpdateResponse(
final Map<String, List<Map<String, Object>>> map) throws Exception {
doReturn(map).when(this.apiGateway).updateExecutions(any(), any());
} | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | mockUpdateResponse | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test
public void testSubmitFlows() throws Exception {
testSetUpForRunningFlows();
final ExecutableFlow flow1 = TestUtils.createTestExecutableFlow("exectest1", "exec1", DispatchMethod.PUSH);
this.manager.submitExecutableFlow(flow1, this.user.getUserId());
verify(this.executorLoader).uploadExecutableFl... | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testSubmitFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test(expected = ExecutorManagerException.class)
public void testTooManySubmitFlows() throws Exception {
testSetUpForRunningFlows();
final ExecutableFlow flow1 = TestUtils
.createTestExecutableFlowFromYaml("basicyamlshelltest", "bashSleep");
flow1.setExecutionId(101);
final ExecutableFlow flow... | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testTooManySubmitFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test(expected = ExecutorManagerException.class)
public void testConcurrentRunWhitelist() throws Exception {
testSetUpForRunningFlows();
this.props.put(ConfigurationKeys.CONCURRENT_RUNS_ONEFLOW_WHITELIST, "basicyamlshelltest,"
+ "bashSleep,4");
final ExecutableFlow flow1 = TestUtils
.creat... | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testConcurrentRunWhitelist | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Ignore
@Test
public void testFetchActiveFlowByProject() throws Exception {
testSetUpForRunningFlows();
final List<Integer> executions = this.manager.getRunningFlowIds(this.flow1.getProjectId(),
this.flow1.getFlowId());
Assert.assertTrue(executions.contains(this.flow1.getExecutionId()));
} | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testFetchActiveFlowByProject | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Ignore
@Test
public void testFetchActiveFlowWithExecutor() throws Exception {
testSetUpForRunningFlows();
final List<Pair<ExecutableFlow, Optional<Executor>>> activeFlowsWithExecutor =
this.manager.getActiveFlowsWithExecutor();
Assert.assertTrue(activeFlowsWithExecutor.contains(new Pair<>(this.... | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testFetchActiveFlowWithExecutor | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test
public void testFetchAllActiveExecutorServerHosts() throws Exception {
testSetUpForRunningFlows();
final Set<String> activeExecutorServerHosts = this.manager.getAllActiveExecutorServerHosts();
final Executor executor1 = this.manager.fetchExecutor(this.flow1.getExecutionId());
final Executor exec... | ExecutorManager should try to dispatch to all executors & when both fail it should remove the
execution from queue and finalize it. | testFetchAllActiveExecutorServerHosts | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test
public void testDispatchMultipleRetries() throws Exception {
this.props.put(Constants.ConfigurationKeys.MAX_DISPATCHING_ERRORS_PERMITTED, 4);
testSetUpForRunningFlows();
this.manager.start();
final ExecutableFlow flow1 = TestUtils.createTestExecutableFlow("exectest1", "exec1", DispatchMethod.PUS... | ExecutorManager should try to dispatch to all executors until it succeeds. | testDispatchMultipleRetries | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test
public void testSetFlowLock() throws Exception {
testSetUpForRunningFlows();
final ExecutableFlow flow1 = TestUtils.createTestExecutableFlow("exectest1", "exec1", DispatchMethod.PUSH);
flow1.setLocked(true);
final String msg = this.manager.submitExecutableFlow(flow1, this.user.getUserId());
... | ExecutorManager should try to dispatch to all executors until it succeeds. | testSetFlowLock | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Test
public void testGetApplicationIdsFromLog() throws Exception {
testSetUpForRunningFlows();
this.runningExecutions.get().put(1, new Pair<>(this.ref1, this.flow1));
// Verify that application ids are obtained successfully from the log data.
final String logData1 = "Submitted application_12345_6789... | Test fetching application ids from log data.
@throws Exception the exception | testGetApplicationIdsFromLog | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
private Answer<Object> getLogChunksMock(final String logData) {
return invocationOnMock -> {
String offsetStr = null, lengthStr = null;
for (final Object arg : invocationOnMock.getArguments()) {
if (!(arg instanceof Pair)) {
continue;
}
final Pair pairArg = (Pair) arg;
... | Test fetching application ids from log data.
@throws Exception the exception | getLogChunksMock | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
private void testSetUpForRunningFlows() throws Exception {
this.executorLoader = mock(ExecutorLoader.class);
this.apiGateway = mock(ExecutorApiGateway.class);
this.user = TestUtils.getTestUser();
this.props.put(Constants.ConfigurationKeys.USE_MULTIPLE_EXECUTORS, "true");
//To test runningFlows, AZKA... | Test fetching application ids from log data.
@throws Exception the exception | testSetUpForRunningFlows | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
private ExecutableFlow waitFlowFinished(final ExecutableFlow flow) throws Exception {
azkaban.test.TestUtils.await().untilAsserted(() -> assertThat(getFlowStatus(flow))
.isNotNull().matches(Status::isStatusFinished, "isStatusFinished"));
return fetchFlow(flow);
} | Test fetching application ids from log data.
@throws Exception the exception | waitFlowFinished | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
private Status getFlowStatus(final ExecutableFlow flow) throws Exception {
return fetchFlow(flow) != null ? fetchFlow(flow).getStatus() : null;
} | Test fetching application ids from log data.
@throws Exception the exception | getFlowStatus | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
private ExecutableFlow fetchFlow(final ExecutableFlow flow) throws ExecutorManagerException {
return this.executorLoader.fetchExecutableFlow(flow.getExecutionId());
} | Test fetching application ids from log data.
@throws Exception the exception | fetchFlow | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/ExecutorManagerTest.java | Apache-2.0 |
@Before
public void setUp() throws Exception {
this.rs = Mockito.mock(ResultSet.class);
} | Also @see ExecutionFlowDaoTest - DB operations of FetchActiveFlowDao are tested there. | setUp | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | Apache-2.0 |
@Test
public void handleResultMissingExecutor() throws Exception {
final FetchActiveExecutableFlows resultHandler = new FetchActiveExecutableFlows();
mockResultWithData();
final Map<Integer, Pair<ExecutionReference, ExecutableFlow>> result = resultHandler
.handle(this.rs);
assertThat(result.co... | Also @see ExecutionFlowDaoTest - DB operations of FetchActiveFlowDao are tested there. | handleResultMissingExecutor | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | Apache-2.0 |
@Test
public void handleResultNullData() throws Exception {
final FetchActiveExecutableFlows resultHandler = new FetchActiveExecutableFlows();
mockResultWithNullData();
final Map<Integer, Pair<ExecutionReference, ExecutableFlow>> result = resultHandler
.handle(this.rs);
assertThat(result).isEm... | Also @see ExecutionFlowDaoTest - DB operations of FetchActiveFlowDao are tested there. | handleResultNullData | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | Apache-2.0 |
private void mockResultWithData() throws Exception {
final ExecutableFlow flow = TestUtils.createTestExecutableFlow("exectest1", "exec1", DispatchMethod.POLL);
final String json = JSONUtils.toJSON(flow.toObject());
final byte[] data = json.getBytes("UTF-8");
mockExecution(EncodingType.PLAIN.getNumVal(),... | Also @see ExecutionFlowDaoTest - DB operations of FetchActiveFlowDao are tested there. | mockResultWithData | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | Apache-2.0 |
private void mockResultWithNullData() throws SQLException {
mockExecution(0, null);
} | Also @see ExecutionFlowDaoTest - DB operations of FetchActiveFlowDao are tested there. | mockResultWithNullData | java | azkaban/azkaban | azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | https://github.com/azkaban/azkaban/blob/master/azkaban-common/src/test/java/azkaban/executor/FetchActiveFlowDaoTest.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.