Closed vhatsura closed 4 years ago
@vhatsura New version of the nuget package for Elasticsearch container has been published and soon be available. Please let me know if this fixes your problem.
@Deffiss, I'm afraid of it doesn't work with TestEnvironment.Docker
1.3.4 due to https://github.com/Deffiss/testenvironment-docker/pull/19, which haven't been published yet.
System.AggregateException : One or more errors occurred. (Could not load type 'TestEnvironment.Docker.BaseContainerWaiter`1' from assembly 'TestEnviro...
System.AggregateException : One or more errors occurred. (Could not load type 'TestEnvironment.Docker.BaseContainerWaiter`1' from assembly 'TestEnvironment.Docker, Version=1.3.4.0, Culture=neutral, PublicKeyToken=null'.) (The following constructor parameters did not have matching fixture data: EnvironmentFixture environmentFixture)
---- System.TypeLoadException : Could not load type 'TestEnvironment.Docker.BaseContainerWaiter`1' from assembly 'TestEnvironment.Docker, Version=1.3.4.0, Culture=neutral, PublicKeyToken=null'.
Ok, got it. Thanks for letting that know. I'll publish immediately
New versions have been published. Soon they should become available. Please check and let us know.
@Deffiss, I can confirm that issue is resolved in TestEnvironment.Docker.Containers.Elasticsearch
package of 1.1.6
version.
Thanks a lot
The following exception is occurred during an attempt to bootstrap elasticsearch container in a project with 7.x
NEST
package:The issue is in breaking changes in
NEST
package, namely:https://github.com/Deffiss/testenvironment-docker/blob/2c1248bf4e22816253a28af5d5faa4afd3844646/src/TestEnvironment.Docker.Containers.Elasticsearch/ElasticsearchContainerWaiter.cs#L20-L24
in 7.x client, should be:
https://github.com/Deffiss/testenvironment-docker/blob/2c1248bf4e22816253a28af5d5faa4afd3844646/src/TestEnvironment.Docker.Containers.Elasticsearch/ElasticsearchContainerCleaner.cs#L19-L20
in 7.x client, should be:
I know updating the
NEST
package can be unreal, however, the ability to override cleaner and waiter for a container can solve the issue. It will allow using custom waiter with methods from theNEST
7.x package.