From cf74ff2bde6a97082ec9076a28f5d59b83c83c3d Mon Sep 17 00:00:00 2001 From: Emily Casey Date: Tue, 30 Mar 2021 12:55:23 -0400 Subject: [PATCH] Fix postgres test Updates test to include correct connection string. See #53 Signed-off-by: Emily Casey --- .../boot/PostgreSqlBindingsPropertiesProcessorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/cloud/bindings/boot/PostgreSqlBindingsPropertiesProcessorTest.java b/src/test/java/org/springframework/cloud/bindings/boot/PostgreSqlBindingsPropertiesProcessorTest.java index 76bf5de..38e4f48 100644 --- a/src/test/java/org/springframework/cloud/bindings/boot/PostgreSqlBindingsPropertiesProcessorTest.java +++ b/src/test/java/org/springframework/cloud/bindings/boot/PostgreSqlBindingsPropertiesProcessorTest.java @@ -55,7 +55,7 @@ final class PostgreSqlBindingsPropertiesProcessorTest { assertThat(properties) .containsEntry("spring.datasource.driver-class-name", "org.postgresql.Driver") .containsEntry("spring.datasource.password", "test-password") - .containsEntry("spring.datasource.url", "jdbc:postgres://test-host:test-port/test-database") + .containsEntry("spring.datasource.url", "jdbc:postgresql://test-host:test-port/test-database") .containsEntry("spring.datasource.username", "test-username"); } @@ -65,7 +65,7 @@ final class PostgreSqlBindingsPropertiesProcessorTest { new PostgreSqlBindingsPropertiesProcessor().process(environment, bindings, properties); assertThat(properties) .containsEntry("spring.r2dbc.password", "test-password") - .containsEntry("spring.r2dbc.url", "r2dbc:postgres://test-host:test-port/test-database") + .containsEntry("spring.r2dbc.url", "r2dbc:postgresql://test-host:test-port/test-database") .containsEntry("spring.r2dbc.username", "test-username"); }