public virtual void TestContainerPassThrough() { MRApp app = new _MRApp_494(this, 0, 1, true, this.GetType().FullName, true); Org.Apache.Hadoop.Mapreduce.V2.App.Job.Job job = app.Submit(new Configuration()); app.WaitForState(job, JobState.Succeeded); app.VerifyCompleted(); ICollection <Task> tasks = job.GetTasks().Values; ICollection <TaskAttempt> taskAttempts = tasks.GetEnumerator().Next().GetAttempts( ).Values; TaskAttemptImpl taskAttempt = (TaskAttemptImpl)taskAttempts.GetEnumerator().Next( ); // Container from RM should pass through to the launcher. Container object // should be the same. NUnit.Framework.Assert.IsTrue(taskAttempt.container == containerObtainedByContainerLauncher ); }
public _MockContainerLauncher_497(_MRApp_494 _enclosing) : base(_enclosing) { this._enclosing = _enclosing; }