From 1d0432c9b9348ca3d2b2b8090b75eafcb892803d Mon Sep 17 00:00:00 2001 From: Constanca Manteigas Date: Thu, 9 Jan 2025 10:44:48 +0100 Subject: [PATCH] Add test again --- receiver/awsfirehosereceiver/receiver_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/receiver/awsfirehosereceiver/receiver_test.go b/receiver/awsfirehosereceiver/receiver_test.go index 146ce2ea573a..1dd9083d09d6 100644 --- a/receiver/awsfirehosereceiver/receiver_test.go +++ b/receiver/awsfirehosereceiver/receiver_test.go @@ -158,6 +158,12 @@ func TestFirehoseRequest(t *testing.T) { wantStatusCode: http.StatusInternalServerError, wantErr: firehoseConsumerErr, }, + "WithCorruptBase64Records": { + body: testFirehoseRequest(testFirehoseRequestID, []firehoseRecord{ + {Data: "XXXXXaGVsbG8="}, + }), + wantStatusCode: http.StatusOK, // having an invalid record does not stop the request + }, "WithValidRecords": { body: testFirehoseRequest(testFirehoseRequestID, []firehoseRecord{ testFirehoseRecord("test"),