mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:30:49 +08:00 
			
		
		
		
	Merge branch 'master' into develop
This commit is contained in:
		@@ -4,6 +4,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[](https://coveralls.io/github/ThreeMammals/Ocelot?branch=master)
 | 
					[](https://coveralls.io/github/ThreeMammals/Ocelot?branch=master)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Slack](threemammals.slack.com)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Ocelot
 | 
					# Ocelot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -333,7 +333,7 @@ namespace Ocelot.AcceptanceTests
 | 
				
			|||||||
                                new FileHostAndPort
 | 
					                                new FileHostAndPort
 | 
				
			||||||
                                {
 | 
					                                {
 | 
				
			||||||
                                    Host = "localhost",
 | 
					                                    Host = "localhost",
 | 
				
			||||||
                                    Port = 51886,
 | 
					                                    Port = 52476,
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            },
 | 
					                            },
 | 
				
			||||||
                            UpstreamPathTemplate = "/tom",
 | 
					                            UpstreamPathTemplate = "/tom",
 | 
				
			||||||
@@ -359,7 +359,7 @@ namespace Ocelot.AcceptanceTests
 | 
				
			|||||||
            var expected = "{\"Laura\":{Hello from Laura},\"Tom\":{Hello from Tom}}";
 | 
					            var expected = "{\"Laura\":{Hello from Laura},\"Tom\":{Hello from Tom}}";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.Given(x => x.GivenServiceOneIsRunning("http://localhost:51875", "/", 200, "{Hello from Laura}"))
 | 
					            this.Given(x => x.GivenServiceOneIsRunning("http://localhost:51875", "/", 200, "{Hello from Laura}"))
 | 
				
			||||||
                .Given(x => x.GivenServiceTwoIsRunning("http://localhost:51886", "/", 200, "{Hello from Tom}"))
 | 
					                .Given(x => x.GivenServiceTwoIsRunning("http://localhost:52476", "/", 200, "{Hello from Tom}"))
 | 
				
			||||||
                .And(x => _steps.GivenThereIsAConfiguration(configuration))
 | 
					                .And(x => _steps.GivenThereIsAConfiguration(configuration))
 | 
				
			||||||
                .And(x => _steps.GivenOcelotIsRunning())
 | 
					                .And(x => _steps.GivenOcelotIsRunning())
 | 
				
			||||||
                .When(x => _steps.WhenIGetUrlOnTheApiGateway("/"))
 | 
					                .When(x => _steps.WhenIGetUrlOnTheApiGateway("/"))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,7 +34,7 @@ namespace Ocelot.AcceptanceTests
 | 
				
			|||||||
                                new FileHostAndPort
 | 
					                                new FileHostAndPort
 | 
				
			||||||
                                {
 | 
					                                {
 | 
				
			||||||
                                    Host = "localhost",
 | 
					                                    Host = "localhost",
 | 
				
			||||||
                                    Port = 59892,
 | 
					                                    Port = 50092,
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            },
 | 
					                            },
 | 
				
			||||||
                            UpstreamPathTemplate = "/{everything}",
 | 
					                            UpstreamPathTemplate = "/{everything}",
 | 
				
			||||||
@@ -43,7 +43,7 @@ namespace Ocelot.AcceptanceTests
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.Given(x => x.GivenThereIsAServiceRunningOn("http://localhost:59892", "/inline.132.bundle.js", 304))
 | 
					            this.Given(x => x.GivenThereIsAServiceRunningOn("http://localhost:50092", "/inline.132.bundle.js", 304))
 | 
				
			||||||
                .And(x => _steps.GivenThereIsAConfiguration(configuration))
 | 
					                .And(x => _steps.GivenThereIsAConfiguration(configuration))
 | 
				
			||||||
                .And(x => _steps.GivenOcelotIsRunning())
 | 
					                .And(x => _steps.GivenOcelotIsRunning())
 | 
				
			||||||
                .When(x => _steps.WhenIGetUrlOnTheApiGateway("/inline.132.bundle.js"))
 | 
					                .When(x => _steps.WhenIGetUrlOnTheApiGateway("/inline.132.bundle.js"))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user