Skip to content
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

REST API changes for manage-own-api-key privilege #44936

Merged
Merged
Prev Previous commit
Next Next commit
Update x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/…
…security/action/GetApiKeyRequestTests.java

Co-Authored-By: Tim Vernum <tim@adjective.org>
bizybot and tvernum authored Aug 1, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit ec151b668b90b533844783bba640ba34c3830e50
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ public void testSerialization() throws IOException {
getApiKeyRequest.writeTo(out);

InputStreamStreamInput inputStreamStreamInput = new InputStreamStreamInput(new ByteArrayInputStream(outBuffer.toByteArray()));
inputStreamStreamInput.setVersion(randomFrom(Version.V_7_2_0, Version.V_7_3_0));
inputStreamStreamInput.setVersion(VersionUtils.randomVersionBetween(random(), Version.V_7_2_0, Version.V_7_3_0));
GetApiKeyRequest requestFromInputStream = new GetApiKeyRequest(inputStreamStreamInput);

assertThat(requestFromInputStream.getApiKeyId(), equalTo(getApiKeyRequest.getApiKeyId()));