From a9c054ff217be6400b780d686fff7f655c81f70a Mon Sep 17 00:00:00 2001 From: delvedor Date: Wed, 10 Jul 2019 16:35:34 +0200 Subject: [PATCH] Fix api call --- test/integration/test-runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/test-runner.js b/test/integration/test-runner.js index 036c725c1..5be9a206f 100644 --- a/test/integration/test-runner.js +++ b/test/integration/test-runner.js @@ -239,12 +239,12 @@ class TestRunner { // Some xpack test requires this user this.tap.comment('Creating x-pack user') try { - await this.client.security.putUser({ + await this.client.xpack.security.putUser({ username: 'x_pack_rest_user', body: { password: 'x-pack-test-password', roles: ['superuser'] } }) } catch (err) { - this.tap.error(err, 'should not error: security.putUser') + this.tap.error(err, 'should not error: xpack.security.putUser') } }