This commit is contained in:
Stanley Small 2022-11-02 13:37:00 -04:00
Родитель 8b9f0861f4
Коммит 071b819000
6 изменённых файлов: 24 добавлений и 27 удалений

Двоичные данные
redis-server.exe Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -12,7 +12,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
{
public class RedisOutputCacheFunctionalTests
{
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void GetWithoutSetTest()
{
using (RedisServer Server = new RedisServer())
@ -27,7 +27,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void SetGetTest()
{
using (RedisServer Server = new RedisServer())
@ -44,7 +44,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void AddWithExistingSetTest()
{
using (RedisServer Server = new RedisServer())
@ -62,7 +62,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void AddWithoutSetTest()
{
using (RedisServer Server = new RedisServer())
@ -79,7 +79,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void AddWhenSetExpiresTest()
{
using (RedisServer Server = new RedisServer())
@ -103,7 +103,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void RemoveWithoutSetTest()
{
using (RedisServer Server = new RedisServer())
@ -118,7 +118,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void RemoveTest()
{
using (RedisServer Server = new RedisServer())
@ -136,7 +136,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void ExpiryTest()
{
using (RedisServer Server = new RedisServer())
@ -155,7 +155,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void AddScriptFixForExpiryTest()
{
using (RedisServer Server = new RedisServer())
@ -175,7 +175,5 @@ namespace Microsoft.Web.Redis.FunctionalTests
Assert.Null(data);
}
}
}
}
}

Просмотреть файл

@ -20,14 +20,14 @@ namespace RedisOutputCachingMiddleWare.FunctionalTests
return DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString();
}
[Fact(Skip = "Functional Tests not yet enabled")]
[Fact()]
private async Task TestWithoutCacheAsync()
{
bool isResponseCurrent = await ResponseIsCurrentAysnc();
Assert.True(isResponseCurrent);
}
[Fact(Skip = "Functional Tests not yet enabled")]
[Fact()]
private async Task TestWithCacheAsync()
{
using (RedisServer Server = new RedisServer())
@ -37,7 +37,7 @@ namespace RedisOutputCachingMiddleWare.FunctionalTests
}
}
[Fact(Skip = "Functional Tests not yet enabled")]
[Fact()]
private async Task TtlTestLessAsync()
{
using (RedisServer Server = new RedisServer())
@ -47,7 +47,7 @@ namespace RedisOutputCachingMiddleWare.FunctionalTests
}
}
[Fact(Skip = "Functional Tests not yet enabled")]
[Fact()]
private async Task TtlTestGreaterAsync()
{
using (RedisServer Server = new RedisServer())
@ -91,6 +91,5 @@ namespace RedisOutputCachingMiddleWare.FunctionalTests
var secondResponseBody = await secondResponse.Content.ReadAsStringAsync();
return secondResponseBody == GetUnixTimeSeconds();
}
}
}

Просмотреть файл

@ -27,7 +27,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
RedisConnectionWrapper.sharedConnection = null;
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public async Task SessionWriteCycle_Valid()
{
using (RedisServer redisServer = new RedisServer())
@ -64,7 +64,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public async Task SessionReadCycle_Valid()
{
using (RedisServer redisServer = new RedisServer())
@ -94,7 +94,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public async Task SessionTimoutChangeFromGlobalAspx()
{
using (RedisServer redisServer = new RedisServer())
@ -136,7 +136,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public async Task ReleaseItemExclusiveWithNullLockId()
{
using (RedisServer redisServer = new RedisServer())
@ -148,7 +148,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public async Task RemoveItemWithNullLockId()
{
using (RedisServer redisServer = new RedisServer())
@ -165,7 +165,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
return RedisConnectionWrapper.sharedConnection.Connection;
}
[Fact(Skip = "Disable Functional Tests")]
[Fact(Skip = "Only used to evaluate performance")]
public async Task TestThroughputAsync()
{
// Test to compare efficiency between code changes; reads and writes 10000 items to Redis

Просмотреть файл

@ -6,7 +6,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
{
public class StackExchangeClientConnectionFunctionalTests
{
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void Constructor_DatabaseIdFromConfigurationProperty()
{
using (RedisServer redisServer = new RedisServer())
@ -21,7 +21,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void Constructor_DatabaseIdFromConnectionString()
{
using (RedisServer redisServer = new RedisServer())
@ -36,7 +36,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
}
}
[Fact(Skip = "Disable Functional Tests")]
[Fact()]
public void Constructor_DatabaseIdFromConfigurationPropertyWhenNotSetInConnectionString()
{
using (RedisServer redisServer = new RedisServer())

Просмотреть файл

@ -43,7 +43,7 @@ namespace Microsoft.Web.Redis.FunctionalTests
{
KillRedisServers();
_server = new Process();
string executable_path = $"{Environment.CurrentDirectory}\\..\\..\\..\\..\\..\\packages\\redis-64\\3.0.503\\tools\\redis-server.exe";
string executable_path = $"{Environment.CurrentDirectory}\\..\\..\\..\\..\\..\\redis-server.exe";
_server.StartInfo.FileName = executable_path;
_server.StartInfo.Arguments = "--maxmemory 20000000";
_server.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;