public BulkProfileTests(ClientTestClusterBase cluster)
        {
            _client = cluster.Client;

            if (_client.IndexExists(IndexName).Exists)
            {
                _client.DeleteIndex(IndexName);
            }

            var createIndexResponse = _client.CreateIndex(IndexName);

            if (!createIndexResponse.IsValid)
            {
                Console.WriteLine($"invalid response creating index: {createIndexResponse.ServerError?.Error?.Reason}");
            }
        }
Ejemplo n.º 2
0
 protected IntegrationDocumentationTestBase(ClientTestClusterBase cluster) => _cluster = cluster;