-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add version to PutTemplateRequest #2971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Also add version to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExpectJson needs to be changed, otherwise LGTM
Apologies, ExpectJson only asserts input, not output. Ignore 😄
protected override GetIndexTemplateRequest Initializer => new GetIndexTemplateRequest(CallIsolatedValue); | ||
|
||
protected override object ExpectJson => new object(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to IgnoreExpectResponse
, this won't be {}
but will be an object with index patterns, version, template mappings and settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can set this to null
@@ -31,7 +29,7 @@ public partial class PutIndexTemplateDescriptor | |||
{ | |||
int? ITemplateMapping.Order { get; set; } | |||
|
|||
int? IPutIndexTemplateRequest.Version { get; set; } | |||
int? ITemplateMapping.Version { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -9,7 +11,7 @@ | |||
namespace Tests.Indices.IndexSettings.IndexTemplates.GetIndexTemplate | |||
{ | |||
public class GetIndexTemplateApiTests | |||
: ApiTestBase<WritableCluster, IGetIndexTemplateResponse, IGetIndexTemplateRequest, GetIndexTemplateDescriptor, GetIndexTemplateRequest> | |||
: ApiIntegrationTestBase<WritableCluster, IGetIndexTemplateResponse, IGetIndexTemplateRequest, GetIndexTemplateDescriptor, GetIndexTemplateRequest> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Closes #2880