/** * Generate the data in a REPLAY submission policy with RoundRobinUserResolver mode and verify * whether the generated data matches with the given input size or not. * * @throws Exception */ @Test public void testGenerateDataWithREPLAYSubmission() throws Exception { conf = rtClient.getDaemonConf(); final long inputSizeInMB = cSize * 300; String[] runtimeValues = { "LOADJOB", RoundRobinUserResolver.class.getName(), "REPLAY", inputSizeInMB + "m", "file://" + UtilsForGridmix.getProxyUsersFile(conf), "file:///dev/null" }; String[] otherArgs = { "-D", GridMixConfig.GRIDMIX_DISTCACHE_ENABLE + "=false", "-D", GridmixJob.GRIDMIX_HIGHRAM_EMULATION_ENABLE + "=false", "-D", GridMixConfig.GRIDMIX_COMPRESSION_ENABLE + "=false" }; int exitCode = UtilsForGridmix.runGridmixJob( gridmixDir, conf, GridMixRunMode.DATA_GENERATION.getValue(), runtimeValues, otherArgs); Assert.assertEquals("Data generation has failed.", 0, exitCode); checkGeneratedDataAndJobStatus(inputSizeInMB); }