@Test
public void testBasicClient() throws Exception {
File tmpFile = File.createTempFile("kitten", ".lua");
Files.copy(newInputStreamSupplier(getResource("lua/test1.lua")), tmpFile);
tmpFile.deleteOnExit();
YarnClientParameters params = new LuaYarnClientParameters(tmpFile.getAbsolutePath(), "distshell",
conf);
assertEquals("Distributed Shell", params.getApplicationName());
assertEquals(86400L, params.getClientTimeoutMillis());
assertEquals("default", params.getQueue());
ContainerLaunchParameters clp = params.getApplicationMasterParameters(null);
assertEquals(1, clp.getPriority());
// clusterMax = 90 < 100
assertEquals(clusterMax, clp.getContainerResource(clusterMax));
Map<String, String> expEnv = ImmutableMap.of(
"zs", "10", "a", "b", "fiz", "faz", "foo", "foo", "biz", "baz");