Skip to content

Commit 18cac99

Browse files
committed
Add MEVD TestSuiteImplementationTests
Part of #10194
1 parent 5dd5a9a commit 18cac99

File tree

15 files changed

+339
-3
lines changed

15 files changed

+339
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.VectorSearch;
6+
7+
namespace AzureAISearch.ConformanceTests;
8+
9+
public class AzureAISearchTestSuiteImplementationTests : TestSuiteImplementationTests
10+
{
11+
protected override Assembly TargetAssembly { get; } = typeof(AzureAISearchTestSuiteImplementationTests).Assembly;
12+
13+
protected override ICollection<Type> IgnoredTestBases { get; } =
14+
[
15+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
16+
typeof(VectorSearchWithFilterConformanceTests<>),
17+
];
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.CRUD;
6+
using VectorData.ConformanceTests.HybridSearch;
7+
using VectorData.ConformanceTests.VectorSearch;
8+
9+
namespace CosmosMongoDB.ConformanceTests;
10+
11+
public class CosmosMongoTestSuiteImplementationTests : TestSuiteImplementationTests
12+
{
13+
protected override Assembly TargetAssembly { get; } = typeof(CosmosMongoTestSuiteImplementationTests).Assembly;
14+
15+
protected override ICollection<Type> IgnoredTestBases { get; } =
16+
[
17+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
18+
typeof(VectorSearchWithFilterConformanceTests<>),
19+
typeof(DynamicDataModelConformanceTests<>),
20+
21+
// Hybrid search not supported
22+
typeof(KeywordVectorizedHybridSearchComplianceTests<>),
23+
];
24+
}

dotnet/test/VectorData/CosmosNoSql.ConformanceTests/CosmosNoSqlEmbeddingGenerationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
namespace CosmosNoSql.ConformanceTests;
1212

13-
public class CosmosNoSQLEmbeddingGenerationTests(CosmosNoSQLEmbeddingGenerationTests.StringVectorFixture stringVectorFixture, CosmosNoSQLEmbeddingGenerationTests.RomOfFloatVectorFixture romOfFloatVectorFixture)
14-
: EmbeddingGenerationTests<string>(stringVectorFixture, romOfFloatVectorFixture), IClassFixture<CosmosNoSQLEmbeddingGenerationTests.StringVectorFixture>, IClassFixture<CosmosNoSQLEmbeddingGenerationTests.RomOfFloatVectorFixture>
13+
public class CosmosNoSqlEmbeddingGenerationTests(CosmosNoSqlEmbeddingGenerationTests.StringVectorFixture stringVectorFixture, CosmosNoSqlEmbeddingGenerationTests.RomOfFloatVectorFixture romOfFloatVectorFixture)
14+
: EmbeddingGenerationTests<string>(stringVectorFixture, romOfFloatVectorFixture), IClassFixture<CosmosNoSqlEmbeddingGenerationTests.StringVectorFixture>, IClassFixture<CosmosNoSqlEmbeddingGenerationTests.RomOfFloatVectorFixture>
1515
{
1616
public new class StringVectorFixture : EmbeddingGenerationTests<string>.StringVectorFixture
1717
{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.CRUD;
6+
using VectorData.ConformanceTests.VectorSearch;
7+
8+
namespace CosmosNoSql.ConformanceTests;
9+
10+
public class CosmosNoSqlTestSuiteImplementationTests : TestSuiteImplementationTests
11+
{
12+
protected override Assembly TargetAssembly { get; } = typeof(CosmosNoSqlTestSuiteImplementationTests).Assembly;
13+
14+
protected override ICollection<Type> IgnoredTestBases { get; } =
15+
[
16+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
17+
typeof(VectorSearchWithFilterConformanceTests<>),
18+
typeof(DynamicDataModelConformanceTests<>),
19+
typeof(BatchConformanceTests<>)
20+
];
21+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.HybridSearch;
6+
using VectorData.ConformanceTests.VectorSearch;
7+
8+
namespace InMemory.ConformanceTests;
9+
10+
public class InMemoryTestSuiteImplementationTests : TestSuiteImplementationTests
11+
{
12+
protected override Assembly TargetAssembly { get; } = typeof(InMemoryTestSuiteImplementationTests).Assembly;
13+
14+
protected override ICollection<Type> IgnoredTestBases { get; } =
15+
[
16+
typeof(DependencyInjectionTests<,,,>),
17+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
18+
typeof(VectorSearchWithFilterConformanceTests<>),
19+
20+
// Hybrid search not supported
21+
typeof(KeywordVectorizedHybridSearchComplianceTests<>)
22+
];
23+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.CRUD;
6+
using VectorData.ConformanceTests.VectorSearch;
7+
8+
namespace MongoDB.ConformanceTests;
9+
10+
public class MongoTestSuiteImplementationTests : TestSuiteImplementationTests
11+
{
12+
protected override Assembly TargetAssembly { get; } = typeof(MongoTestSuiteImplementationTests).Assembly;
13+
14+
protected override ICollection<Type> IgnoredTestBases { get; } =
15+
[
16+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
17+
typeof(VectorSearchWithFilterConformanceTests<>),
18+
typeof(DynamicDataModelConformanceTests<>),
19+
];
20+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.HybridSearch;
6+
using VectorData.ConformanceTests.VectorSearch;
7+
8+
namespace PgVector.ConformanceTests;
9+
10+
public class PostgresTestSuiteImplementationTests : TestSuiteImplementationTests
11+
{
12+
protected override Assembly TargetAssembly { get; } = typeof(PostgresTestSuiteImplementationTests).Assembly;
13+
14+
protected override ICollection<Type> IgnoredTestBases { get; } =
15+
[
16+
typeof(VectorSearchWithFilterConformanceTests<>),
17+
18+
// Hybrid search not supported
19+
typeof(KeywordVectorizedHybridSearchComplianceTests<>)
20+
];
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.HybridSearch;
6+
using VectorData.ConformanceTests.VectorSearch;
7+
8+
namespace Pinecone.ConformanceTests;
9+
10+
public class PineconeTestSuiteImplementationTests : TestSuiteImplementationTests
11+
{
12+
protected override Assembly TargetAssembly { get; } = typeof(PineconeTestSuiteImplementationTests).Assembly;
13+
14+
protected override ICollection<Type> IgnoredTestBases { get; } =
15+
[
16+
typeof(VectorSearchWithFilterConformanceTests<>),
17+
18+
// Hybrid search not supported
19+
typeof(KeywordVectorizedHybridSearchComplianceTests<>)
20+
];
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.VectorSearch;
6+
7+
namespace Qdrant.ConformanceTests;
8+
9+
public class QdrantTestSuiteImplementationTests : TestSuiteImplementationTests
10+
{
11+
protected override Assembly TargetAssembly { get; } = typeof(QdrantTestSuiteImplementationTests).Assembly;
12+
13+
protected override ICollection<Type> IgnoredTestBases { get; } =
14+
[
15+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
16+
typeof(VectorSearchWithFilterConformanceTests<>)
17+
];
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
3+
using System.Reflection;
4+
using VectorData.ConformanceTests;
5+
using VectorData.ConformanceTests.CRUD;
6+
using VectorData.ConformanceTests.HybridSearch;
7+
using VectorData.ConformanceTests.VectorSearch;
8+
9+
namespace Redis.ConformanceTests;
10+
11+
public class RedisTestSuiteImplementationTests : TestSuiteImplementationTests
12+
{
13+
protected override Assembly TargetAssembly { get; } = typeof(RedisTestSuiteImplementationTests).Assembly;
14+
15+
protected override ICollection<Type> IgnoredTestBases { get; } =
16+
[
17+
typeof(VectorSearchDistanceFunctionComplianceTests<>),
18+
typeof(VectorSearchWithFilterConformanceTests<>),
19+
typeof(BatchConformanceTests<>),
20+
21+
// Hybrid search not supported
22+
typeof(KeywordVectorizedHybridSearchComplianceTests<>)
23+
];
24+
}

0 commit comments

Comments
 (0)