Files
floci/src/test
Prakhar Kapoor e4666dfa7a fix: support wildcard filtering in EC2 filters (#837)
* fix: support wildcard filtering in EC2 filters

Add wildcard pattern matching support to EC2 filter values to match AWS behavior.

Changes:
- Added wildcardToRegex() method to convert AWS wildcard patterns (* and ?) to Java regex
- Added matchesValue() method for pattern-based value matching
- Updated all filter matching logic to use wildcard patterns instead of exact string matching
- Supports wildcard filtering for all filter types: tag filters, tag-key, tag-value, and resource-specific filters
- Applies to all EC2 resources: VPCs, Subnets, Security Groups, Instances, Internet Gateways, Route Tables, Volumes

Added comprehensive integration tests:
- describeVpcsWithWildcardTagFilter: Tests asterisk wildcard patterns
- describeVpcsWithWildcardQuestionMark: Tests question mark wildcard patterns

All 69 EC2 integration tests pass. Backward compatible with exact string matching.

Fixes #830

* fix: reorganize imports in Ec2Service and Ec2IntegrationTest for clarity
* Potential fix for pull request finding
2026-05-14 07:45:00 -05:00
..