Skip to content

Conversation

@russcam
Copy link
Contributor

@russcam russcam commented Dec 20, 2017

Closes #2880

Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@russcam
Copy link
Contributor Author

russcam commented Dec 20, 2017

Also add version to IGetIndexTemplateResponse. See elastic/elasticsearch#27135 (comment)

Copy link
Contributor Author

@russcam russcam left a 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();
Copy link
Contributor Author

@russcam russcam Dec 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to ExpectResponse, this won't be {} but will be an object with index patterns, version, template mappings and settings. Ignore

Copy link
Contributor Author

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

int? ITemplateMapping.Order { get; set; }

int? IPutIndexTemplateRequest.Version { get; set; }
int? ITemplateMapping.Version { get; set; }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

{
public class GetIndexTemplateApiTests
: ApiTestBase<WritableCluster, IGetIndexTemplateResponse, IGetIndexTemplateRequest, GetIndexTemplateDescriptor, GetIndexTemplateRequest>
: ApiIntegrationTestBase<WritableCluster, IGetIndexTemplateResponse, IGetIndexTemplateRequest, GetIndexTemplateDescriptor, GetIndexTemplateRequest>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codebrain codebrain merged commit 0ed63dc into master Dec 21, 2017
codebrain added a commit that referenced this pull request Dec 21, 2017
@Mpdreamz Mpdreamz deleted the feature/put-template-version branch January 30, 2018 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants