Files
floci/compatibility-tests/sdk-test-rust
Yorí 8eeb2244a7 Feat/lambda image config working directory (#673)
* feat(lambda): support ImageConfig.WorkingDirectory override

Propagate WorkingDirectory from the Lambda ImageConfig through the full
stack so container images that rely on a specific WORKDIR can be invoked
correctly, matching real AWS behavior.

- LambdaFunction: add imageConfigWorkingDirectory field + getter/setter
- LambdaService: parse WorkingDirectory on CreateFunction and
  UpdateFunctionConfiguration
- ContainerSpec: add workingDir record component
- ContainerBuilder: add withWorkingDir() fluent method
- ContainerLifecycleManager: pass workingDir to Docker via withWorkingDir()
- ContainerLauncher: apply workingDir when building the container spec
- LambdaController: serialize WorkingDirectory in ImageConfigResponse

* test(lambda): add tests for ImageConfig.WorkingDirectory

Unit tests (LambdaImageConfigTest):
- CreateFunction stores WorkingDirectory alongside Command/EntryPoint
- createFunction with all three fields together
- updateFunctionConfiguration updates and clears WorkingDirectory
- ContainerLauncher passes workingDir to ContainerSpec

Compat tests across all SDKs:
- awscli (lambda.bats): create/get/update WorkingDirectory round-trip
- Java SDK (LambdaFunctionConfigTest): ImageConfig.WorkingDirectory round-trip
- Python (test_lambda_function_config.py): TestImageConfigWorkingDirectory class
- Node (lambda.test.ts): create/update WorkingDirectory assertions
- Go (lambda_test.go): TestLambdaImageConfigWorkingDirectory subtests
- Rust (lambda_test.rs): full create/get/update round-trip
2026-04-30 17:25:03 -05:00
..
2026-04-23 02:06:25 -05:00

sdk-test-rust

Compatibility tests for Floci using the AWS SDK for Rust (1.8.15).

Services Covered

Group Description
ssm Parameter Store — put, get, path
sqs Queues, send/receive/delete, visibility
sns Topics, subscriptions, publish
s3 Buckets, objects, tagging, copy, delete
s3-cors CORS configuration
s3-notifications S3 event notifications
dynamodb Tables, CRUD, batch
lambda Create/invoke/update/delete functions
iam Users, roles, policies, access keys
sts GetCallerIdentity
kms Keys, aliases, encrypt/decrypt
secretsmanager Create/get/put/list/delete secrets
kinesis Streams, shards, PutRecord/GetRecords
cloudwatch PutMetricData, ListMetrics, GetMetricStatistics, alarms
cloudformation Stack operations

Requirements

  • Rust (stable)
  • Cargo
  • cargo-nextest

Running

# All groups
cargo nextest run --profile ci

# Specific groups
cargo nextest run --profile ci -E 'test(ssm) | test(sqs) | test(s3)'

# Via just (from compatibility-tests/)
just test-rust

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-rust .
docker run --rm --network host floci-sdk-rust

# Custom endpoint (macOS/Windows)
docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-rust