@Test public void testProjectZipFileName() throws Exception { String expectedZipFileName = "randomPrefix_http___localhost_8000_context.zip"; Properties properties = new Properties(); properties.setProperty("gobblin.service.azkaban.project.namePrefix", "randomPrefix"); JobSpec jobSpec = new JobSpec(new URI("http: ConfigUtils.propertiesToConfig(properties), properties, Optional.absent(), Optional.absent(), Collections.EMPTY_MAP); AzkabanProjectConfig azkabanProjectConfig = new AzkabanProjectConfig(jobSpec); String actualZipFileName = azkabanProjectConfig.getAzkabanProjectZipFilename(); Assert.assertEquals(actualZipFileName, expectedZipFileName); }
public String getAzkabanProjectZipFilename() { return String.format("%s.zip", azkabanProjectName); }
AzkabanProjectConfig { public String getAzkabanProjectZipFilename() { return String.format("%s.zip", azkabanProjectName); } }
AzkabanProjectConfig { public String getAzkabanProjectZipFilename() { return String.format("%s.zip", azkabanProjectName); } AzkabanProjectConfig(JobSpec jobSpec); }
AzkabanProjectConfig { public String getAzkabanProjectZipFilename() { return String.format("%s.zip", azkabanProjectName); } AzkabanProjectConfig(JobSpec jobSpec); static String constructProjectName(JobSpec jobSpec, Config config); String getAzkabanProjectZipFilename(); String getWorkDir(); }
AzkabanProjectConfig { public String getAzkabanProjectZipFilename() { return String.format("%s.zip", azkabanProjectName); } AzkabanProjectConfig(JobSpec jobSpec); static String constructProjectName(JobSpec jobSpec, Config config); String getAzkabanProjectZipFilename(); String getWorkDir(); static final String USER_TO_PROXY; }