mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 17:10:50 +08:00 
			
		
		
		
	added a failing test for the url matcher on a case i didnt pick up on...might be time to start thinking about regex for this....
This commit is contained in:
		@@ -18,6 +18,16 @@ namespace Ocelot.UnitTests.UrlMatcher
 | 
			
		||||
            _urlMatcher = new UrlPathToUrlTemplateMatcher();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_find_match_when_template_smaller_than_valid_path()
 | 
			
		||||
        {
 | 
			
		||||
            this.Given(x => x.GivenIHaveAUpstreamPath("/api/products/2354325435624623464235"))
 | 
			
		||||
                .And(x => x.GivenIHaveAnUpstreamUrlTemplate("/api/products/{productId}"))
 | 
			
		||||
                .When(x => x.WhenIMatchThePaths())
 | 
			
		||||
                .And(x => x.ThenTheResultIsTrue())
 | 
			
		||||
                .BDDfy();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_not_find_match()
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user