From e2a2169b3d44592057c143253bb56375ed3e4268 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Sun, 2 Feb 2020 09:56:33 +0100 Subject: [PATCH] REST: Test: Fix the `accept_enterprise` parameter for Get License API (#51527) The Get License API specifies the `accept_enterprise` parameter as a `boolean`: https://github.com/elastic/elasticsearch/blob/0ca5cb8cb636a4be9c36b8e38e565af66abc423b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get.json#L22-L27 In the test, a `string` is passed however, which makes the test compilation fail in the Go client. --- .../rest-api-spec/test/license/30_enterprise_license.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/license/30_enterprise_license.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/license/30_enterprise_license.yml index 9b0fd906f2930..89bd0fda01fbb 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/license/30_enterprise_license.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/license/30_enterprise_license.yml @@ -34,7 +34,7 @@ teardown: warnings: - "Including [accept_enterprise] in get license requests is deprecated. The parameter will be removed in the next major version" license.get: - accept_enterprise: "true" + accept_enterprise: true ## a v5 license object has 12 attributes - length: { license: 12 } @@ -48,5 +48,5 @@ teardown: warnings: - "Including [accept_enterprise] in get license requests is deprecated. The parameter will be removed in the next major version" license.get: - accept_enterprise: "false" + accept_enterprise: false