Skip to content

Commit 1eefc69

Browse files
[updatecli] update elastic stack version for testing 9.0.0-b49e55df-SNAPSHOT (#3971)
* chore: Update snapshot.yml Made with ❤️️ by updatecli * Fix broken integration test * fix condition --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
1 parent fe5697b commit 1eefc69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev-tools/integration/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# If you use change this version without a pinned one, please update
22
# .ci/bump-elastic-stack-snapshot.yml or .github/workflows/bump-golang.yml
3-
ELASTICSEARCH_VERSION=9.0.0-070836bc-SNAPSHOT
3+
ELASTICSEARCH_VERSION=9.0.0-b49e55df-SNAPSHOT
44
ELASTICSEARCH_USERNAME=elastic
55
ELASTICSEARCH_PASSWORD=changeme
66
TEST_ELASTICSEARCH_HOSTS=localhost:9200

internal/pkg/bulk/bulk_integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestBulkCreate(t *testing.T) {
7575
},
7676
AltErr: es.ErrElastic{
7777
Status: 400,
78-
Type: "json_parse_exception",
78+
Type: "parse_exception",
7979
},
8080
},
8181
{
@@ -106,7 +106,7 @@ func TestBulkCreate(t *testing.T) {
106106
id, err := bulker.Create(ctx, test.Index, test.ID, sampleData)
107107
if !EqualElastic(test.Err, err) {
108108
if test.AltErr == nil || !EqualElastic(test.AltErr, err) {
109-
t.Fatalf("expected error: %+v, got: %+v", test.Err, err)
109+
t.Fatalf("expected error: %+v (alt: %+v), got: %+v", test.Err, test.AltErr, err)
110110
}
111111
}
112112
if err != nil {

0 commit comments

Comments
 (0)