From 9d39df0548796c89790d3dc1c0c63ede8fa68f29 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Tue, 7 Nov 2023 11:16:38 -0600 Subject: [PATCH] register the new legacy postprocessors --- .../ConfigurationBuilderExtensions.cs | 4 +++- .../ConfigurationBuilderExtensionsTest.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Configuration/src/Kubernetes.ServiceBinding/ConfigurationBuilderExtensions.cs b/src/Configuration/src/Kubernetes.ServiceBinding/ConfigurationBuilderExtensions.cs index 5f98caf987..94c6315902 100644 --- a/src/Configuration/src/Kubernetes.ServiceBinding/ConfigurationBuilderExtensions.cs +++ b/src/Configuration/src/Kubernetes.ServiceBinding/ConfigurationBuilderExtensions.cs @@ -137,9 +137,11 @@ private static IConfigurationBuilder RegisterPostProcessors(IConfigurationBuilde source.RegisterPostProcessor(new WavefrontPostProcessor()); // Legacy Connector Post Processors - source.RegisterPostProcessor(new RabbitMQLegacyConnectorPostProcessor()); + source.RegisterPostProcessor(new MongoDbLegacyConnectorPostProcessor()); source.RegisterPostProcessor(new MySqlLegacyConnectorPostProcessor()); source.RegisterPostProcessor(new PostgreSqlLegacyConnectorPostProcessor()); + source.RegisterPostProcessor(new RabbitMQLegacyConnectorPostProcessor()); + source.RegisterPostProcessor(new RedisLegacyConnectorPostProcessor()); builder.Add(source); return builder; } diff --git a/src/Configuration/test/Kubernetes.ServiceBinding.Test/ConfigurationBuilderExtensionsTest.cs b/src/Configuration/test/Kubernetes.ServiceBinding.Test/ConfigurationBuilderExtensionsTest.cs index aae010d98c..55dfa8e4ae 100644 --- a/src/Configuration/test/Kubernetes.ServiceBinding.Test/ConfigurationBuilderExtensionsTest.cs +++ b/src/Configuration/test/Kubernetes.ServiceBinding.Test/ConfigurationBuilderExtensionsTest.cs @@ -17,6 +17,6 @@ public void AddKubernetesServiceBindings_AddsSourceAndRegistersProcessors() Assert.Single(builder.Sources); Assert.IsType(builder.Sources[0]); var source = (ServiceBindingConfigurationSource)builder.Sources[0]; - Assert.Equal(24, source.RegisteredProcessors.Count); + Assert.Equal(26, source.RegisteredProcessors.Count); } }