/** * Generate the data in a STRESS submission policy with SubmitterUserResolver * mode and verify whether the generated data matches with given * input size or not. * @throws IOException */ @Test public void testGenerateDataWithSTRESSSubmission() throws Exception { conf = rtClient.getDaemonConf(); final long inputSize = cSize * 128; String [] runtimeValues ={"LOADJOB", SubmitterUserResolver.class.getName(), "STRESS", inputSize+"m", "file:///dev/null"}; int exitCode = UtilsForGridmix.runGridmixJob(gridmixDir, conf,GridMixRunMode.DATA_GENERATION, runtimeValues); Assert.assertEquals("Data generation has failed.", 0 , exitCode); checkGeneratedDataAndJobStatus(inputSize); }
/** * Generate the data in a STRESS submission policy with SubmitterUserResolver * mode and verify whether the generated data matches with given * input size or not. * @throws IOException */ @Test public void testGenerateDataWithSTRESSSubmission() throws Exception { conf = rtClient.getDaemonConf(); final long inputSizeInMB = cSize * 128; String [] runtimeValues = {"LOADJOB", SubmitterUserResolver.class.getName(), "STRESS", inputSizeInMB + "m", "file:///dev/null"}; String [] otherArgs = { "-D", GridMixConfig.GRIDMIX_DISTCACHE_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); }