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.
  • Loading branch information
karmi authored Feb 2, 2020
1 parent 92be385 commit e2a2169
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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

0 comments on commit e2a2169

Please sign in to comment.