mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* chore(compat): align pinned SDK versions across the Python, Java, and CDK suites Bump the exact-pinned SDK versions to a common recent baseline so the suites no longer span a wide release window: - sdk-test-python: boto3 / botocore 1.37.1 -> 1.43.69 - sdk-test-java: AWS SDK for Java v2 2.44.14 -> 2.52.0 - compat-cdk: aws-cdk-lib 2.171.1 -> 2.264.0, aws-cdk 2.171.1 -> 2.1135.1, aws-cdk-local ^2.0.0 -> ^3.0.4 Bumping boto3/botocore also restores the current SES v2 model (97 -> 112 operations, including the Tenant and ReputationEntity families). The aws-cdk 2.1000+ CLI (decoupled from the library version line) publishes template assets to S3 using virtual-hosted-style URLs and needs aws-cdk-local v3. Pointing AWS_ENDPOINT_URL_S3 at Floci's virtual-hosted domain (http://s3.localhost.floci.io:4566) makes the SDK build <bucket>.s3.localhost.floci.io, which resolves via public DNS locally and via Floci's embedded DNS (already injected with --dns in the compat workflow) inside the Docker network, instead of the unresolvable <bucket>.floci. The Go, Node, AWS CLI, Terraform, and OpenTofu suites float to the latest by design and are left unchanged. * chore(compat): let AWS_ENDPOINT_URL_S3 be overridden in the compat-cdk helper Use a ${:-default} fallback like the other endpoint/region variables in common-setup.bash so a caller or CI can point the CDK S3 virtual-host endpoint elsewhere (e.g. a non-4566 port), instead of hard-coding it.
sdk-test-python
Compatibility tests for Floci using boto3 (1.37.1).
Services Covered
| Group | Description |
|---|---|
ssm |
Parameter Store — put, get, label, history, path, tags |
sqs |
Queues, send/receive/delete, DLQ, visibility |
sns |
Topics, subscriptions, publish, SQS delivery |
s3 |
Buckets, objects, tagging, copy, batch delete |
s3-cors |
CORS configuration |
s3-notifications |
S3 → SQS event notifications |
dynamodb |
Tables, CRUD, batch, TTL, tags |
lambda |
Create/invoke/update/delete functions |
iam |
Users, roles, policies, access keys |
sts |
GetCallerIdentity, AssumeRole, GetSessionToken |
secretsmanager |
Create/get/put/list/delete secrets, versioning, tags |
kms |
Keys, aliases, encrypt/decrypt, data keys, sign/verify |
kinesis |
Streams, shards, PutRecord/GetRecords |
cloudwatch-metrics |
PutMetricData, ListMetrics, GetMetricStatistics, alarms |
cloudformation-naming |
Auto physical name generation, explicit name precedence, cross-reference |
cognito |
User pools, clients, AdminCreateUser, InitiateAuth, GetUser |
Requirements
- Python 3.9+
- pip
Running
pip install -r requirements.txt
# All groups
pytest tests/ --junit-xml=test-results/junit.xml
# Specific tests
pytest tests/test_s3.py
# Via just (from compatibility-tests/)
just test-python
Configuration
| Variable | Default | Description |
|---|---|---|
FLOCI_ENDPOINT |
http://localhost:4566 |
Floci emulator endpoint |
AWS credentials are always test / test / us-east-1.
Docker
docker build -t floci-sdk-python .
docker run --rm --network host floci-sdk-python
# Custom endpoint (macOS/Windows)
docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-python