From 63f20ce70f04d7d2faa7be214fb94beaf18f08fe Mon Sep 17 00:00:00 2001 From: apmmachine <58790750+apmmachine@users.noreply.github.com> Date: Fri, 18 Mar 2022 11:53:33 -0400 Subject: [PATCH] [automation] update elastic stack version for testing 8.2.0-82b803a1 (#1239) * [Automation] Update elastic stack version to 8.2.0-82b803a1 for testing * Change of return code when sending invalid utf-8 Prior version of Elasticsearch was returning a 400 errors in the laster 8.2 this is now return a 500 error. Co-authored-by: apmmachine Co-authored-by: Pier-Hugues Pellerin Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- dev-tools/integration/.env | 2 +- internal/pkg/bulk/bulk_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-tools/integration/.env b/dev-tools/integration/.env index 2b2776399..651507296 100644 --- a/dev-tools/integration/.env +++ b/dev-tools/integration/.env @@ -1,4 +1,4 @@ -ELASTICSEARCH_VERSION=8.2.0-a12f7069-SNAPSHOT +ELASTICSEARCH_VERSION=8.2.0-82b803a1-SNAPSHOT ELASTICSEARCH_USERNAME=elastic ELASTICSEARCH_PASSWORD=changeme TEST_ELASTICSEARCH_HOSTS=localhost:9200 \ No newline at end of file diff --git a/internal/pkg/bulk/bulk_integration_test.go b/internal/pkg/bulk/bulk_integration_test.go index 353da82f7..96a60a61c 100644 --- a/internal/pkg/bulk/bulk_integration_test.go +++ b/internal/pkg/bulk/bulk_integration_test.go @@ -69,7 +69,7 @@ func TestBulkCreate(t *testing.T) { Name: "Invalid utf-8", Index: string([]byte{0xfe, 0xfe, 0xff, 0xff}), Err: es.ErrElastic{ - Status: 400, + Status: 500, Type: "json_parse_exception", }, },