Skip to content

[8.x](backport #4012) [Integration testing] Remove AltErr and only expect 400 from ES bulk API #5253

[8.x](backport #4012) [Integration testing] Remove AltErr and only expect 400 from ES bulk API

[8.x](backport #4012) [Integration testing] Remove AltErr and only expect 400 from ES bulk API #5253

Triggered via pull request October 22, 2024 05:58
Status Failure
Total duration 30s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
lint (linux): internal/pkg/bulk/block.go#L1
: # github.com/elastic/fleet-server/v7/internal/pkg/bulk [github.com/elastic/fleet-server/v7/internal/pkg/bulk.test]
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L103
syntax error: unexpected <<, expected }
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L105
syntax error: unexpected ==, expected }
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L107
syntax error: unexpected >>, expected }
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L107
invalid character U+0023 '#'
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L109
syntax error: non-declaration statement outside function body
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L121
syntax error: non-declaration statement outside function body (typecheck)
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L103
expected statement, found '<<' (typecheck)
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L107
illegal character U+0023 '#' (typecheck)
lint (linux): internal/pkg/bulk/bulk_integration_test.go#L126
expected statement, found ')' (typecheck)
lint (linux)
The following actions uses node12 which is deprecated and will be forced to run on node16: golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint (linux)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (linux)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint (linux)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/