use of com.sequenceiq.datalake.flow.dr.backup.event.DatalakeTriggerBackupEvent in project cloudbreak by hortonworks.
the class DatalakeResizeFlowEventChainTest method assertTriggerBackupEvent.
private void assertTriggerBackupEvent(FlowTriggerEventQueue flowChainQueue) {
Selectable triggerBackupEvent = flowChainQueue.getQueue().remove();
assertEquals(DATALAKE_TRIGGER_BACKUP_EVENT.selector(), triggerBackupEvent.selector());
assertEquals(sdxCluster.getId(), triggerBackupEvent.getResourceId());
assertTrue(triggerBackupEvent instanceof DatalakeTriggerBackupEvent);
DatalakeTriggerBackupEvent event = (DatalakeTriggerBackupEvent) triggerBackupEvent;
assertEquals(BACKUP_LOCATION, event.getBackupLocation());
assertTrue(event.getBackupName().startsWith("resize"));
}
Aggregations