use of com.sequenceiq.cloudbreak.cloud.azure.task.diskencryptionset.DiskEncryptionSetCreationCheckerTask in project cloudbreak by hortonworks.
the class AzurePollTaskFactoryIntegrationTest method diskEncryptionSetCreationCheckerTaskTest.
@Test
void diskEncryptionSetCreationCheckerTaskTest() {
when(authenticatedContext.getParameter(AzureClient.class)).thenReturn(azureClient);
DiskEncryptionSetCreationCheckerContext checkerContext = new DiskEncryptionSetCreationCheckerContext(RESOURCE_GROUP_NAME, DISK_ENCRYPTION_SET_NAME);
PollTask<DiskEncryptionSetInner> result = underTest.diskEncryptionSetCreationCheckerTask(authenticatedContext, checkerContext);
assertThat(result).isInstanceOf(DiskEncryptionSetCreationCheckerTask.class);
DiskEncryptionSetCreationCheckerTask checkerTask = (DiskEncryptionSetCreationCheckerTask) result;
assertThat(checkerTask.getAuthenticatedContext()).isSameAs(authenticatedContext);
}
Aggregations