|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2019 the original author or authors.
|
|
|
|
* Copyright 2012-2023 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -20,6 +20,7 @@ import io.micrometer.signalfx.SignalFxConfig;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.actuate.autoconfigure.metrics.export.properties.StepRegistryPropertiesTests;
|
|
|
|
import org.springframework.boot.actuate.autoconfigure.metrics.export.properties.StepRegistryPropertiesTests;
|
|
|
|
|
|
|
|
import org.springframework.boot.actuate.autoconfigure.metrics.export.signalfx.SignalFxProperties.HistogramType;
|
|
|
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
|
|
|
|
|
|
|
@ -38,6 +39,10 @@ class SignalFxPropertiesTests extends StepRegistryPropertiesTests {
|
|
|
|
// access token is mandatory
|
|
|
|
// access token is mandatory
|
|
|
|
assertThat(properties.getUri()).isEqualTo(config.uri());
|
|
|
|
assertThat(properties.getUri()).isEqualTo(config.uri());
|
|
|
|
// source has no static default value
|
|
|
|
// source has no static default value
|
|
|
|
|
|
|
|
// Not publishing cumulative histograms implies that the default histogram type
|
|
|
|
|
|
|
|
// should be published.
|
|
|
|
|
|
|
|
assertThat(config.publishCumulativeHistogram()).isFalse();
|
|
|
|
|
|
|
|
assertThat(properties.getPublishedHistogramType()).isEqualTo(HistogramType.DEFAULT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|