diff --git a/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-database.windup.xml b/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-database.windup.xml index b39c8d9cf..dee5f82b7 100644 --- a/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-database.windup.xml +++ b/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-database.windup.xml @@ -20,13 +20,24 @@ - + + + + + + + + + + + + @@ -45,7 +56,12 @@ - + + + + + + @@ -67,5 +83,35 @@ + + + + + + + + + + + + + + + + + + + + r2dbc + + + + + + diff --git a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-prod.properties b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-prod.properties index c3bac10b0..3516531d8 100644 --- a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-prod.properties +++ b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-prod.properties @@ -1,3 +1,3 @@ -spring.datasource.url=mongodb://mongouser:deepsecret@mongoserver.contoso.com:27017 -spring.datasource.username=dbuser -spring.datasource.driver-class-name=com.mysql.jdbc.Driver +spring.data.mongodb.uri=mongodb://mongouser:deepsecret@mongoserver.contoso.com:27017/mydatabase +spring.data.mongodb.username=dbuser +spring.data.mongodb.password=dbpass diff --git a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-test.properties b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-test.properties new file mode 100644 index 000000000..5cdc83b35 --- /dev/null +++ b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application-test.properties @@ -0,0 +1,4 @@ +spring.r2dbc.url=r2dbc:mysql://localhost:3306/mysql_db +spring.r2dbc.username=root +spring.r2dbc.password=root + diff --git a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application.yaml b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application.yaml index 85ecf73ee..700053be2 100644 --- a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application.yaml +++ b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-database/application.yaml @@ -1,5 +1,3 @@ spring: - data: - jdbc: - uri: jdbc:mysql://localhost:3306/mysql_db - pwd: admin1234567890 + datasource: + url: jdbc:mysql://localhost:3306/mysql_db diff --git a/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-database.windup.test.xml b/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-database.windup.test.xml index 8b8e38b2e..e8f967997 100644 --- a/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-database.windup.test.xml +++ b/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-database.windup.test.xml @@ -8,7 +8,7 @@ - + @@ -29,6 +29,18 @@ + + + + + + + + + + + + \ No newline at end of file