Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
* Tests for {@link YarnService}.
*/
@Test(groups = {"gobblin.yarn", "disabledOnCI"}, singleThreaded=true)
public class YarnServiceTest {
final Logger LOG = LoggerFactory.getLogger(YarnServiceTest.class);
public class YarnServiceIT {
final Logger LOG = LoggerFactory.getLogger(YarnServiceIT.class);

private YarnClient yarnClient;
private MiniYARNCluster yarnCluster;
Expand Down Expand Up @@ -134,8 +134,8 @@ public void setUp() throws Exception {
this.yarnClient.init(this.clusterConf);
this.yarnClient.start();

URL url = YarnServiceTest.class.getClassLoader()
.getResource(YarnServiceTest.class.getSimpleName() + ".conf");
URL url = YarnServiceIT.class.getClassLoader()
.getResource(YarnServiceIT.class.getSimpleName() + ".conf");
Assert.assertNotNull(url, "Could not find resource " + url);

this.config = ConfigFactory.parseURL(url).resolve();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
*/
@Test(groups = {"gobblin.yarn", "disabledOnCI"})
public class YarnServiceTestWithExpiration {
final Logger LOG = LoggerFactory.getLogger(YarnServiceTest.class);
final Logger LOG = LoggerFactory.getLogger(YarnServiceIT.class);

private YarnClient yarnClient;
private MiniYARNCluster yarnCluster;
Expand Down Expand Up @@ -122,8 +122,8 @@ public void setUp() throws Exception {
this.yarnClient.init(this.clusterConf);
this.yarnClient.start();

URL url = YarnServiceTest.class.getClassLoader()
.getResource(YarnServiceTest.class.getSimpleName() + ".conf");
URL url = YarnServiceIT.class.getClassLoader()
Comment thread
AndyJiang99 marked this conversation as resolved.
.getResource(YarnServiceIT.class.getSimpleName() + ".conf");
Assert.assertNotNull(url, "Could not find resource " + url);

this.config = ConfigFactory.parseURL(url).resolve();
Expand Down Expand Up @@ -215,7 +215,7 @@ public boolean apply(Void input) {

}

private static class TestExpiredYarnService extends YarnServiceTest.TestYarnService {
private static class TestExpiredYarnService extends YarnServiceIT.TestYarnService {
public HashSet<ContainerId> startErrorContainers = new HashSet<>();
public HashSet<ContainerStatus> completedContainers = new HashSet<>();
public TestExpiredYarnService(Config config, String applicationName, String applicationId, YarnConfiguration yarnConfiguration,
Expand Down