mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:30:49 +08:00 
			
		
		
		
	unit and int tests are passing with auth changes...but acceptance tests are in a state and there are loads of todos...
This commit is contained in:
		@@ -62,16 +62,21 @@ namespace Ocelot.UnitTests.Configuration
 | 
			
		||||
        {
 | 
			
		||||
            this.Given(x => x.GivenAConfiguration(new FileConfiguration
 | 
			
		||||
            {
 | 
			
		||||
                AuthenticationOptions = new List<FileAuthenticationOptions>
 | 
			
		||||
                {
 | 
			
		||||
                    new FileAuthenticationOptions
 | 
			
		||||
                    {
 | 
			
		||||
                        Provider = "IdentityServer",
 | 
			
		||||
                        AuthenticationProviderKey = "Test"
 | 
			
		||||
                    }
 | 
			
		||||
                },
 | 
			
		||||
                ReRoutes = new List<FileReRoute>
 | 
			
		||||
                {
 | 
			
		||||
                    new FileReRoute
 | 
			
		||||
                    {
 | 
			
		||||
                        DownstreamPathTemplate = "/api/products/",
 | 
			
		||||
                        UpstreamPathTemplate = "http://asdf.com",
 | 
			
		||||
                        AuthenticationOptions = new FileAuthenticationOptions
 | 
			
		||||
                        {
 | 
			
		||||
                            Provider = "IdentityServer"
 | 
			
		||||
                        }
 | 
			
		||||
                        AuthenticationProviderKey = "Test"
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }))
 | 
			
		||||
@@ -85,16 +90,21 @@ namespace Ocelot.UnitTests.Configuration
 | 
			
		||||
        {
 | 
			
		||||
            this.Given(x => x.GivenAConfiguration(new FileConfiguration
 | 
			
		||||
            {
 | 
			
		||||
                AuthenticationOptions = new List<FileAuthenticationOptions>
 | 
			
		||||
                {
 | 
			
		||||
                    new FileAuthenticationOptions
 | 
			
		||||
                    {
 | 
			
		||||
                        Provider = "BootyBootyBottyRockinEverywhere",
 | 
			
		||||
                        AuthenticationProviderKey = "Test"
 | 
			
		||||
                    }
 | 
			
		||||
                },
 | 
			
		||||
                ReRoutes = new List<FileReRoute>
 | 
			
		||||
                {
 | 
			
		||||
                    new FileReRoute
 | 
			
		||||
                    {
 | 
			
		||||
                        DownstreamPathTemplate = "/api/products/",
 | 
			
		||||
                        UpstreamPathTemplate = "http://asdf.com",
 | 
			
		||||
                        AuthenticationOptions = new FileAuthenticationOptions
 | 
			
		||||
                        {
 | 
			
		||||
                            Provider = "BootyBootyBottyRockinEverywhere"
 | 
			
		||||
                        }
 | 
			
		||||
                        AuthenticationProviderKey = "Test"
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user