Skip to content

test: remove duplicate keys from bulk response fixtures - #190

Merged
kenhys merged 1 commit into
fluent:mainfrom
Watson1978:fix_duplicate_keys_in_test_fixtures
Sep 11, 2026
Merged

kenhys merged 1 commit into
fluent:mainfrom
Watson1978:fix_duplicate_keys_in_test_fixtures

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

json 3.0 raises JSON::ParserError for duplicate keys in a JSON object, so two bulk response fixtures fail to parse and CI is red on main as well.
The repeated "_type" and "_id" entries carry the same value and were not covering duplicate key handling, so they are dropped instead of relaxing the parser in the tests.

PR #185 covered lib/fluent/plugin/opensearch_index_template.rb, but the test fixtures were left as they were.

🤖 Generated with Claude Code

json 3.0 raises JSON::ParserError for duplicate keys in a JSON object,
so these fixtures fail to parse depending on which adapter MultiJson
picks. The repeated "_type" and "_id" entries carry the same value and
were not covering duplicate key handling, so drop them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978
Watson1978 requested a review from kenhys September 11, 2026 03:33
@kenhys
kenhys merged commit 242bdc3 into fluent:main Sep 11, 2026
21 checks passed
@Watson1978
Watson1978 deleted the fix_duplicate_keys_in_test_fixtures branch September 11, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants