Skip to content

Commit

Permalink
REST: Test: Fix the accept_enterprise parameter for Get License API (
Browse files Browse the repository at this point in the history
…#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.

(cherry picked from commit e2a2169)
  • Loading branch information
karmi committed Feb 2, 2020
1 parent ed170cc commit 80af597
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ teardown:

- do:
license.get:
accept_enterprise: "true"
accept_enterprise: true

## a v5 license object has 12 attributes
- length: { license: 12 }
Expand All @@ -41,7 +41,7 @@ teardown:

- do:
license.get:
accept_enterprise: "false"
accept_enterprise: false

## a v4 license object has 11 attributes
- length: { license: 11 }
Expand Down

0 comments on commit 80af597

Please sign in to comment.