Closed Abhishekj2096 closed 5 months ago
If you'd like us to spend some time investigating, please take the time to provide a complete, minimal, verifiable sample (something that we can unzip attached to this issue or git clone, build, and deploy) that reproduces the problem.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
I am using the following- Spring-boot version 3.1.6 Spring-cloud-dependencies version 2022.0.3 Java version 17 Kotlin version 1.8.20 Gradle version 7.4.2 Docker-compose version 0.17.5 Junit-jupiter version 5.7.2
I am running unit test for rate limiting using Redis. The Redis server is run on a docker container created from docker-compose. The test run perfectly fine when I am on these versions - Spring-boot version 2.7.14 Spring-cloud-dependencies version 2021.0.7 Java version 11 Kotlin version 1.7.0 Gradle version 7.4.2 Docker-compose version 0.17.5 Junit-jupiter version 5.7.2
But after upgrading to spring-boot 3+ version (mentioned on top) the unit test begin to fail with the error -
=================================================================================================
The Rate Limiting file is a Kotlin class that implements a rate limiter using Redis as the storage backend -
=================================================================================================
Cloud gateway configuration file 'application-redis-test.yml' -
=================================================================================================
RedisRateLimiterTest file is a Java test class that contains unit tests for the RedisRateLimiter class. It extends BaseRestTest and uses the Spring Boot Test framework to perform the tests
=================================================================================================
The BaseRestTest class is an abstract base class for unit tests. It sets up a testing environment for RESTful APIs using the Spring Boot Test framework and WireMock
=================================================================================================
The ApplicationContextInitializerImpl file is a Kotlin class that implements the ApplicationContextInitializer interface from the Spring Framework.
=================================================================================================
This is the console log when I run the test -
console.txt