Skip to content

Commit 4c7501f

Browse files
Removed an unneeded test.
1 parent 4cc95fd commit 4c7501f

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/ResourceManager/AzureBatch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -213,38 +213,5 @@ public void NewBatchTaskCollectionParametersTest()
213213
Assert.True(taskIds.Contains(task.Id));
214214
}
215215
}
216-
217-
[Fact]
218-
[Trait(Category.AcceptanceType, Category.CheckIn)]
219-
public void ApplicationPackageReferencesAreSentToService()
220-
{
221-
BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys();
222-
cmdlet.BatchContext = context;
223-
cmdlet.Id = "task-id";
224-
cmdlet.JobId = "job-id";
225-
226-
string applicationId = "foo";
227-
string applicationVersion = "beta";
228-
229-
cmdlet.ApplicationPackageReferences = new[]
230-
{
231-
new PSApplicationPackageReference { ApplicationId = applicationId, Version = applicationVersion}
232-
};
233-
234-
// Don't go to the service on an Add CloudTask call
235-
RequestInterceptor interceptor = BatchTestHelpers.CreateFakeServiceResponseInterceptor<TaskAddParameter, TaskAddOptions, AzureOperationHeaderResponse<TaskAddHeaders>>(
236-
new AzureOperationHeaderResponse<TaskAddHeaders>(),
237-
request =>
238-
{
239-
var applicationPackageReference = request.Parameters.ApplicationPackageReferences.First();
240-
Assert.Equal(applicationId, applicationPackageReference.ApplicationId);
241-
Assert.Equal(applicationVersion, applicationPackageReference.Version);
242-
});
243-
244-
cmdlet.AdditionalBehaviors = new List<BatchClientBehavior> { interceptor };
245-
246-
// Verify no exceptions when required parameters are set
247-
cmdlet.ExecuteCmdlet();
248-
}
249216
}
250217
}

0 commit comments

Comments
 (0)