From 3794c3260a0f54b64aa082b0c43b9a4980936bca Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Tue, 24 May 2016 11:37:11 -0400 Subject: [PATCH] update smoke test to point to renamed license endpoint Original commit: elastic/x-pack-elasticsearch@4a8fb3c86ef371b9fd7a60a85e6f22004283d8d4 --- elasticsearch/x-dev-tools/smoke_test_xpack_rc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/x-dev-tools/smoke_test_xpack_rc.py b/elasticsearch/x-dev-tools/smoke_test_xpack_rc.py index fd4efcd7e2e..003d3a58c09 100644 --- a/elasticsearch/x-dev-tools/smoke_test_xpack_rc.py +++ b/elasticsearch/x-dev-tools/smoke_test_xpack_rc.py @@ -140,12 +140,12 @@ def smoke_test_release(release, files, expected_hash): # put the supplied license to ensure that system was built with license = read_fully(os.path.join(os.path.dirname(__file__), 'license.json')) - conn.request('PUT', '/_license?acknowledge=true', license, headers=headers) + conn.request('PUT', '/_xpack/license?acknowledge=true', license, headers=headers) res = conn.getresponse() # reading the result, so we can execute the next request on the same connection license_resp = json.loads(res.read().decode('utf-8')) if res.status != 200: - raise RuntimeError('Could not PUT _license, got status %s' % res.status) + raise RuntimeError('Could not PUT _xpack/license, got status %s' % res.status) if license_resp['license_status'] != 'valid': raise RuntimeError('Expected license to be valid, but was %s' % license_resp['license_status'])