From 26ed532df582faa611d7e00f414660ac3ae586d3 Mon Sep 17 00:00:00 2001 From: Chris R Date: Thu, 14 Jul 2016 09:33:25 -0700 Subject: [PATCH] #210 Disable flaky caching tests. --- .../ResponseCachingTests.cs | 10 +++--- .../ResponseCachingTests.cs | 34 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseCachingTests.cs b/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseCachingTests.cs index bcddd3be7a..541a1716e6 100644 --- a/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseCachingTests.cs +++ b/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/ResponseCachingTests.cs @@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Server.WebListener.FunctionalTests } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_MaxAge_Cached() { var requestCount = 1; @@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore.Server.WebListener.FunctionalTests } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SMaxAge_Cached() { var requestCount = 1; @@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.Server.WebListener.FunctionalTests } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SMaxAgeAndMaxAge_SMaxAgePreferredCached() { var requestCount = 1; @@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Server.WebListener.FunctionalTests } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_Expires_Cached() { var requestCount = 1; @@ -179,7 +179,7 @@ namespace Microsoft.AspNetCore.Server.WebListener.FunctionalTests } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_MaxAgeAndExpires_MaxAgePreferred() { var requestCount = 1; diff --git a/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseCachingTests.cs b/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseCachingTests.cs index 5f739c7d91..6bfa2f0085 100644 --- a/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseCachingTests.cs +++ b/test/Microsoft.Net.Http.Server.FunctionalTests/ResponseCachingTests.cs @@ -56,7 +56,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SetTtlWithContentType_Cached() { string address; @@ -83,7 +83,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] // Http.Sys does not set the optional Age header for cached content. // http://tools.ietf.org/html/rfc7234#section-5.1 public async Task Caching_CheckAge_NotSentWithCachedContent() @@ -114,7 +114,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] // Http.Sys does not update the optional Age header for cached content. // http://tools.ietf.org/html/rfc7234#section-5.1 public async Task Caching_SetAge_AgeHeaderCachedAndNotUpdated() @@ -250,7 +250,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SetTtlHuge_Cached() { string address; @@ -277,7 +277,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SetTtlAndWriteBody_Cached() { string address; @@ -374,7 +374,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_WriteFullContentLength_Cached() { string address; @@ -436,7 +436,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SendFileWithFullContentLength_Cached() { string address; @@ -465,7 +465,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SetTtlAndStatusCode_Cached() { string address; @@ -562,7 +562,7 @@ namespace Microsoft.Net.Http.Server // RFC violation. http://tools.ietf.org/html/rfc7234#section-4.4 // "A cache MUST invalidate the effective Request URI ... when a non-error status code // is received in response to an unsafe request method." - [Theory] + [Theory(Skip = "https://github.com/aspnet/WebListener/issues/210")] // See HTTP_VERB for known verbs [InlineData("HEAD")] [InlineData("UNKNOWN")] @@ -629,7 +629,7 @@ namespace Microsoft.Net.Http.Server // RFC violation / implementation limiation, Vary is not respected. // http://tools.ietf.org/html/rfc7234#section-4.1 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_SetVary_NotRespected() { string address; @@ -730,7 +730,7 @@ namespace Microsoft.Net.Http.Server // Responses can be cached for requests with Pragma: no-cache. // http://tools.ietf.org/html/rfc7234#section-5.2.1.4 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestPragmaNoCache_Cached() { string address; @@ -759,7 +759,7 @@ namespace Microsoft.Net.Http.Server // RFC violation, Requests with Pragma: no-cache should not be served from cache. // http://tools.ietf.org/html/rfc7234#section-5.4 // http://tools.ietf.org/html/rfc7234#section-5.2.1.4 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestPragmaNoCache_NotRespectedAndServedFromCache() { string address; @@ -815,7 +815,7 @@ namespace Microsoft.Net.Http.Server // RFC violation, Requests with Cache-Control: no-cache should not be served from cache. // http://tools.ietf.org/html/rfc7234#section-5.2.1.4 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestCacheControlNoCache_NotRespectedAndServedFromCache() { string address; @@ -843,7 +843,7 @@ namespace Microsoft.Net.Http.Server // RFC violation // http://tools.ietf.org/html/rfc7234#section-5.2.1.1 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestCacheControlMaxAgeZero_NotRespectedAndServedFromCache() { string address; @@ -871,7 +871,7 @@ namespace Microsoft.Net.Http.Server // RFC violation // http://tools.ietf.org/html/rfc7234#section-5.2.1.3 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestCacheControlMinFreshOutOfRange_NotRespectedAndServedFromCache() { string address; @@ -973,7 +973,7 @@ namespace Microsoft.Net.Http.Server } // http://tools.ietf.org/html/rfc7233#section-4.1 - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestMultipleRangesFromCache_RangesServedFromCache() { string address; @@ -1034,7 +1034,7 @@ namespace Microsoft.Net.Http.Server } } - [Fact] + [Fact(Skip = "https://github.com/aspnet/WebListener/issues/210")] public async Task Caching_RequestMultipleRangesFromCachedFile_ServedFromCache() { string address;