use of com.microsoft.azure.hdinsight.sdk.rest.yarn.rm.AppAttempt in project azure-tools-for-java by Microsoft.
the class SparkBatchRemoteDebugJobScenario method checkGetCurrentYarnAppAttemptResult.
@Then("^getting current Yarn App attempt should be '(.+)'$")
public void checkGetCurrentYarnAppAttemptResult(String appAttemptIdExpect) {
URI mockConnUri = URI.create(httpServerMock.completeUrl("/"));
when(debugJobMock.getConnectUri()).thenReturn(mockConnUri);
doReturn(mockConnUri.resolve("/yarnui/ws/v1/cluster/apps/")).when(debugJobMock).getYarnNMConnectUri();
AppAttempt appAttempt = debugJobMock.getSparkJobYarnCurrentAppAttempt().toBlocking().first();
assertEquals(appAttemptIdExpect, appAttempt.getAppAttemptId());
}
Aggregations