use of com.redhat.service.smartevents.infra.models.dto.ManagedResourceStatus in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class MetricsServiceImplTest method onOperationStart_forBridge.
@ParameterizedTest
@EnumSource(MetricsOperation.class)
public void onOperationStart_forBridge(MetricsOperation metricsOperation) {
Bridge bridge = Fixtures.createBridge();
ManagedResourceStatus status = metricsOperation == MetricsOperation.DELETE ? ManagedResourceStatus.DEPROVISION : ManagedResourceStatus.ACCEPTED;
bridge.setStatus(status);
metricsService.onOperationStart(bridge, metricsOperation);
List<Tag> expectedTags = createdExpectedTags(bridge, metricsOperation);
assertThat(meterRegistry.counter(operationTotalCountMetricName, expectedTags).count()).isEqualTo(1.0);
}
Aggregations