@@ -41,7 +41,7 @@ public IndexTemplateApiTests(WritableCluster cluster, EndpointUsage usage) : bas
41
41
u . Calls < PutIndexTemplateV2Descriptor , PutIndexTemplateV2Request , IPutIndexTemplateV2Request , PutIndexTemplateV2Response > (
42
42
v => new PutIndexTemplateV2Request ( v )
43
43
{
44
- IndexPatterns = new [ ] { "foo" , "bar" } ,
44
+ IndexPatterns = new [ ] { "foo-v2-index-template " , "bar-v2-index-template " } ,
45
45
Version = 2 ,
46
46
Meta = new Dictionary < string , object >
47
47
{
@@ -68,7 +68,7 @@ public IndexTemplateApiTests(WritableCluster cluster, EndpointUsage usage) : bas
68
68
}
69
69
} ,
70
70
( v , d ) => d
71
- . IndexPatterns ( "foo" , "bar" )
71
+ . IndexPatterns ( "foo-v2-index-template " , "bar-v2-index-template " )
72
72
. Version ( 2 )
73
73
. Meta ( d => d
74
74
. Add ( "foo" , "bar" )
@@ -95,6 +95,10 @@ public IndexTemplateApiTests(WritableCluster cluster, EndpointUsage usage) : bas
95
95
( v , c , r ) => c . Indices . PutTemplateV2Async ( r )
96
96
)
97
97
} ,
98
+ //{"WaitStep", u => u.Call(async (v, c) =>
99
+ //{
100
+ // await Task.Delay(2000); // allow template to be fully created
101
+ //})},
98
102
{ ExistsStep , u =>
99
103
u . Calls < IndexTemplateV2ExistsDescriptor , IndexTemplateV2ExistsRequest , IIndexTemplateV2ExistsRequest , ExistsResponse > (
100
104
v => new IndexTemplateV2ExistsRequest ( v ) ,
0 commit comments