mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-10-31 22:45:28 +08:00 
			
		
		
		
	test passing on mac and windows
This commit is contained in:
		
							
								
								
									
										0
									
								
								build-and-run-tests.bat
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								build-and-run-tests.bat
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
								
								
									
										3
									
								
								configuration.yaml
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								configuration.yaml
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Routes: | ||||
| - Downstream: http://localhost:51879/ | ||||
|   Upstream: /heee | ||||
							
								
								
									
										0
									
								
								run-tests.bat
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								run-tests.bat
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -30,7 +30,8 @@ | ||||
|     "CacheManager.Microsoft.Extensions.Logging": "0.9.2" | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {} | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -1,8 +1,34 @@ | ||||
| namespace Ocelot.AcceptanceTests | ||||
| { | ||||
|     using System.Runtime.InteropServices; | ||||
|  | ||||
|     public static class TestConfiguration | ||||
|     { | ||||
|         public static double Version => 1.4; | ||||
|         public static string ConfigurationPath => $"./bin/Debug/netcoreapp{Version}/win10-x64/configuration.json"; | ||||
|         //public static string Runtime => "win10-x64"; | ||||
|         public static string ConfigurationPath => GetConfigurationPath(); | ||||
|  | ||||
|         public static string GetConfigurationPath() | ||||
|         { | ||||
|             var osArchitecture = RuntimeInformation.OSArchitecture.ToString(); | ||||
|              | ||||
|             var oSDescription = string.Empty; | ||||
|  | ||||
|             if(RuntimeInformation.OSDescription.ToLower().Contains("darwin")) | ||||
|             { | ||||
|                 oSDescription = "osx.10.11"; | ||||
|             } | ||||
|  | ||||
|             if(RuntimeInformation.OSDescription.ToLower().Contains("windows")) | ||||
|             { | ||||
|                 oSDescription = "win10"; | ||||
|             } | ||||
|  | ||||
|             var runTime = $"{oSDescription}-{osArchitecture}".ToLower(); | ||||
|  | ||||
|             var configPath = $"./bin/Debug/netcoreapp{Version}/{runTime}/configuration.json"; | ||||
|  | ||||
|             return configPath; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
							
								
								
									
										0
									
								
								test/Ocelot.AcceptanceTests/configuration.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								test/Ocelot.AcceptanceTests/configuration.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -35,7 +35,8 @@ | ||||
|     "TestStack.BDDfy": "4.3.2" | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {} | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -9,7 +9,8 @@ | ||||
|     "BenchmarkDotNet": "0.10.1" | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {} | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -19,7 +19,8 @@ | ||||
|     "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {} | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -27,7 +27,8 @@ | ||||
|     "Microsoft.DotNet.InternalAbstractions": "1.0.0" | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {} | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Gardham-Pallister
					Tom Gardham-Pallister