mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -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`
63 lines
2.7 KiB
Markdown
63 lines
2.7 KiB
Markdown
# sdk-test-python
|
|
|
|
Compatibility tests for [Floci](https://github.com/hectorvent/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
|
|
|
|
```bash
|
|
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
|
|
|
|
```bash
|
|
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
|
|
```
|