-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #57
- Loading branch information
Showing
17 changed files
with
283 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Globalization; | ||
using Microsoft.Extensions.Configuration; | ||
using Milvus.Client.Tests.TestContainer; | ||
using Xunit; | ||
|
||
namespace Milvus.Client.Tests; | ||
|
||
[CollectionDefinition("Milvus")] | ||
public sealed class QdrantCollection : ICollectionFixture<MilvusFixture>; | ||
|
||
public sealed class MilvusFixture : IAsyncLifetime | ||
{ | ||
private readonly MilvusContainer _container = new MilvusBuilder().Build(); | ||
|
||
public string Host => _container.Hostname; | ||
public int Port => _container.GetMappedPublicPort(MilvusBuilder.MilvusGrpcPort); | ||
public string Username => "root"; | ||
public string Password => "Milvus"; | ||
|
||
public MilvusClient CreateClient() | ||
=> new(Host, Username, Password, Port, ssl: false); | ||
|
||
public MilvusClient CreateClient(string database) | ||
=> new(Host, Username, Password, Port, ssl: false, database); | ||
|
||
public Task InitializeAsync() => _container.StartAsync(); | ||
public Task DisposeAsync() => _container.DisposeAsync().AsTask(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.