diff --git a/src/Particular.LicensingComponent.UnitTests/ThroughputCollector/ThroughputCollector_Report_EnvironmentInformation_Tests.cs b/src/Particular.LicensingComponent.UnitTests/ThroughputCollector/ThroughputCollector_Report_EnvironmentInformation_Tests.cs index b91bac763e..0d6483c666 100644 --- a/src/Particular.LicensingComponent.UnitTests/ThroughputCollector/ThroughputCollector_Report_EnvironmentInformation_Tests.cs +++ b/src/Particular.LicensingComponent.UnitTests/ThroughputCollector/ThroughputCollector_Report_EnvironmentInformation_Tests.cs @@ -197,6 +197,17 @@ await DataStore.CreateBuilder() Assert.That(report.ReportData.ScopeType, Is.EqualTo(expectedScopeType), $"Invalid ScopeType on report"); } + [Test] + public async Task Should_leave_the_stored_broker_metadata_unchanged() + { + await DataStore.SaveBrokerMetadata(new BrokerMetadata("testingScope", new Dictionary { [EnvironmentDataType.BrokerVersion.ToString()] = "1.2" })); + + await ThroughputCollector.GenerateThroughputReport("", null); + + var stored = await DataStore.GetBrokerMetadata(); + Assert.That(stored.Data.Keys, Is.EquivalentTo(new[] { EnvironmentDataType.BrokerVersion.ToString() })); + } + [Test] public async Task Should_include_audit_instance_counts_in_environment_data() {