Skip to content

Commit 6d1971c

Browse files
authored
Add missing data attribute to pipeline on ReindexDestiation (#6408)
* Add missing data attribute to pipeline on ReindexDestiation * Fix IndexTemplateApiTests race * Tweak wait time * Remove wait step
1 parent 06ddfd3 commit 6d1971c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Nest/Document/Multiple/ReindexOnServer/ReindexDestination.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Elasticsearch.Net;
66
using System.Runtime.Serialization;
77

8-
98
namespace Nest
109
{
1110
/// <summary>
@@ -30,6 +29,7 @@ public interface IReindexDestination
3029
/// <summary>
3130
/// Id of the pipeline to use to process documents
3231
/// </summary>
32+
[DataMember(Name ="pipeline")]
3333
string Pipeline { get; set; }
3434

3535
/// <summary>
@@ -91,6 +91,5 @@ public class ReindexDestinationDescriptor : DescriptorBase<ReindexDestinationDes
9191

9292
/// <inheritdoc cref="IReindexDestination.Index" />
9393
public ReindexDestinationDescriptor Index(IndexName index) => Assign(index, (a, v) => a.Index = v);
94-
9594
}
9695
}

tests/Tests/Indices/IndexTemplates/IndexTemplateApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public IndexTemplateApiTests(WritableCluster cluster, EndpointUsage usage) : bas
9797
},
9898
//{"WaitStep", u => u.Call(async (v, c) =>
9999
//{
100-
// await Task.Delay(2000); // allow template to be fully created
100+
// await Task.Delay(5000); // allow template to be fully created
101101
//})},
102102
{ExistsStep, u =>
103103
u.Calls<IndexTemplateV2ExistsDescriptor, IndexTemplateV2ExistsRequest, IIndexTemplateV2ExistsRequest, ExistsResponse>(

0 commit comments

Comments
 (0)