mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-30 17:52:51 +08:00

* changed name to cache options to fix issue #146 * Add acceptance test that exposes JSON deserialization bug from issue #146 - Create InMemoryJsonHandle for CacheManager that mimics DictionaryHandle but uses ICacheSerializer to serialize/deserialize values instead of saving references - Add CacheManager.Serialization.Json package - Add StartupWithCustomCacheHandle class that extends Startup and overrides ConfigureServices to register InMemoryJsonHandle - Add GivenOcelotIsRunningUsingConsulToStoreConfigAndJsonSerializedCache method to initiate Ocelot with StartupWithCustomCacheHandle - Add test should_return_response_200_with_simple_url_when_using_jsonserialized_cache * Create Acceptance test that exposes issue #152 - Add GivenOcelotIsRunningUsingJsonSerializedCache() that initializes Ocelot with InMemoryJsonHandle - Add should_return_cached_response_when_using_jsonserialized_cache test * Change Consul port to 9502 on should_return_response_200_with_simple_url_when_using_jsonserialized_cache() test * Implement mapping of HttpResponseMessage to CachedResponse to enable distributed caching - Add CachedResponse class that holds HttpResponse data - Add mapping methods in OutputCacheMiddleware to create HttpResponseMessage from CachedResponse and vice versa - Replace HttpResponseMessage with CachedResponse in services registrations - Replace HttpResponseMessage with CachedResponse in OutputCacheController's IOcelotCache * Fix unit tests for OutputCacheMiddleware and OutputCacheController by replacing HttpResponseMessage with CachedResponse * Add .editorconfig with default identation settings (spaces with size 4) * Re-format broken files with new identation settings * Add Startup_WithConsul_And_CustomCacheHandle class - Use Startup_WithConsul_And_CustomCacheHandle in GivenOcelotIsRunningUsingConsulToStoreConfigAndJsonSerializedCache step * Do minor cleanups - Rename StartupWithCustomCacheHandle to Startup_WithCustomCacheHandle for better readability - Remove cachemanager settings Action in Startup since it is not used anymore * Drop Task in CreateHttpResponseMessage - unnecessary overhead * Make setters private in CachedResponse - Rework CreateCachedResponse to use new CachedResponse constructor
54 lines
2.7 KiB
XML
54 lines
2.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<VersionPrefix>0.0.0-dev</VersionPrefix>
|
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
<RuntimeFrameworkVersion>2.0.0</RuntimeFrameworkVersion>
|
|
<AssemblyName>Ocelot.AcceptanceTests</AssemblyName>
|
|
<OutputType>Exe</OutputType>
|
|
<PackageId>Ocelot.AcceptanceTests</PackageId>
|
|
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
|
<RuntimeIdentifiers>osx.10.11-x64;osx.10.12-x64;win7-x64;win10-x64</RuntimeIdentifiers>
|
|
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
|
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
|
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="configuration.json;appsettings.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Ocelot\Ocelot.csproj" />
|
|
<ProjectReference Include="..\Ocelot.ManualTest\Ocelot.ManualTest.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="CacheManager.Serialization.Json" Version="1.1.1" />
|
|
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0-preview-20171031-01" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.0.0" />
|
|
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="1.0.500-preview2-1-003177" />
|
|
<PackageReference Include="Shouldly" Version="3.0.0-beta0003" />
|
|
<PackageReference Include="TestStack.BDDfy" Version="4.3.2" />
|
|
<PackageReference Include="Consul" Version="0.7.2.3" />
|
|
<PackageReference Include="xunit" Version="2.3.1" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|