mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
* test: move compatibility tests into this repo * fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler * fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest * test: add sdk tests for multipart S3 copy coverage * fix: cover and fix smithy cbor and multipart s3 copy regressions * test: migrate more test coverage to new folder * test: add missing ec2 expectation in healthcheck test * docs: update READMEs in `./compatibility-tests`
61 lines
2.3 KiB
Markdown
61 lines
2.3 KiB
Markdown
# sdk-test-rust
|
|
|
|
Compatibility tests for [Floci](https://github.com/hectorvent/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
|
|
|
|
```bash
|
|
# 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
|
|
|
|
```bash
|
|
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
|
|
```
|