Skip to content

SslMeterBinder doesn't register metrics for dynamically added bundles if no bundles exist at bind time #48180

@mhalbritter

Description

@mhalbritter

This test (added to org.springframework.boot.actuate.autoconfigure.ssl.SslMeterBinderTests) shouldn't fail:

@Test
void test() {
	DefaultSslBundleRegistry sslBundleRegistry = new DefaultSslBundleRegistry();
	MeterRegistry meterRegistry = bindToRegistry(sslBundleRegistry);
	sslBundleRegistry.registerBundle("dummy", SslBundle.of(createSslStoreBundle("classpath:test.p12")));
	assertThat(meterRegistry.getMeters()).isNotEmpty();
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions