Skip to content

Commit

Permalink
Add dirty context
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbarbero committed Oct 26, 2020
1 parent 9492aee commit e6608bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zuul.ratelimit.deny-request.origins[0]=
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;

import java.util.UUID;
import java.util.concurrent.TimeUnit;
Expand All @@ -24,12 +26,9 @@
* @author Marcos Barbero
* @since 2017-06-27
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT
// properties = {
// just making sure the test on SpringDataDenyOriginTestIT does not mess with the tests on this class
// "zuul.ratelimit.deny-request.origins[0]=10.0.0.1"
// })
)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@TestPropertySource(locations = "classpath:/override-deny-request.properties")
@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD)
public class SpringDataApplicationTestIT {

@Autowired
Expand Down

0 comments on commit e6608bd

Please sign in to comment.