Skip to content

chore: Re-enable DDB integration tests with Floci#2923

Merged
oscerd merged 3 commits into
mainfrom
chore/re-enable-ddb-tests
Jul 13, 2026
Merged

chore: Re-enable DDB integration tests with Floci#2923
oscerd merged 3 commits into
mainfrom
chore/re-enable-ddb-tests

Conversation

@oscerd

@oscerd oscerd commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Re-enables the 4 DynamoDB Citrus integration tests that were disabled in #2872 because UpdateItem and DeleteItem operations failed against LocalStack.

Now that the test suite uses Floci as the AWS emulator (configured via citrus-application.properties), these tests should work with Floci's DynamoDB support.

Re-enabled tests

Test Operation
aws-ddb-sink-put-item PutItem — inserts a record, verifies via getItem
aws-ddb-sink-delete-item DeleteItem — inserts then deletes, verifies via scan
aws-ddb-sink-update-item UpdateItem — inserts then updates fields, verifies via getItem
aws-ddb-source DDB Streams — creates table with streams, inserts item, verifies source receives the change event

Test plan

  • mvn verify -pl :camel-kamelets-itest -Denable.integration.tests -Dtest=AwsIT#awsDdb — all 4 DDB tests pass

Claude Code on behalf of Andrea Cosentino

🤖 Generated with Claude Code

The DDB tests were disabled in #2872 because UpdateItem and DeleteItem
operations failed against LocalStack. Now that the test suite uses
Floci as the AWS emulator (configured via citrus-application.properties),
re-enable all 4 DDB tests to verify Floci's DynamoDB support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd requested a review from christophd July 13, 2026 09:26
oscerd and others added 2 commits July 13, 2026 12:04
- Fix sink route YAML: use simple log syntax (log: "${body}") instead
  of expanded form (log: message:) which Camel JBang rejects
- Fix attribute ordering in assertions: Floci returns DynamoDB
  attributes in different order than LocalStack. Use TreeMap in Groovy
  scripts and sort expected values alphabetically in Citrus tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
The UpdateItem operation runs without error but Floci's DynamoDB
emulation does not actually apply the attribute changes: the item
retains its original values after the update. PutItem, DeleteItem,
and DDB Streams source all pass. Disable UpdateItem until Floci
adds full UpdateItem support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd merged commit 47aca58 into main Jul 13, 2026
5 checks passed
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.

1 participant