use of com.sequenceiq.cloudbreak.cloud.MetadataCollector in project cloudbreak by hortonworks.
the class StackCreationServiceTest method setUp.
@BeforeEach
void setUp() {
Whitebox.setInternalState(underTest, "ephemeralVolumeChecker", new InstanceGroupEphemeralVolumeChecker());
CloudConnector<Object> cloudConnector = Mockito.mock(CloudConnector.class);
when(cloudPlatformConnectors.get(any())).thenReturn(cloudConnector);
MetadataCollector metadataCollector = Mockito.mock(MetadataCollector.class);
when(cloudConnector.metadata()).thenReturn(metadataCollector);
Authenticator authenticator = Mockito.mock(Authenticator.class);
when(cloudConnector.authentication()).thenReturn(authenticator);
InstanceStoreMetadata instanceStoreMetadata = getInstanceStoreMetadata();
when(metadataCollector.collectInstanceStorageCount(any(), any())).thenReturn(instanceStoreMetadata);
}
Aggregations