Files
floci/compatibility-tests/sdk-test-node/README.md
T
Dixit R Jain 8fe2bf4c97 feat(apigatewayv2): add WebSocket API support, Update ops, Route/Integration Responses, Models, and Tagging (#682)
Closes #526

Add 27 new API Gateway v2 operations (21 → 48 total):

- WebSocket protocol: CreateApi with WEBSOCKET, wss:// endpoints,
  routeSelectionExpression validation, routeResponseSelectionExpression
- Update operations: UpdateApi, UpdateRoute, UpdateIntegration,
  UpdateAuthorizer, UpdateStage, UpdateDeployment
- Route Responses: full CRUD (5 ops)
- Integration Responses: full CRUD (5 ops)
- Models: full CRUD (5 ops)
- Tagging: TagResource, UntagResource, GetTags
2026-05-02 07:53:13 -05:00

62 lines
3.4 KiB
Markdown

# sdk-test-node
Compatibility tests for [Floci](https://github.com/hectorvent/floci) using the **AWS SDK for JavaScript v3 (3.1003.0)**.
## 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 and S3 → SNS 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` | PutMetricData, ListMetrics, GetMetricStatistics, alarms |
| `cloudformation-naming` | Auto physical name generation, explicit name precedence, cross-reference |
| `cognito` | User pools, clients, AdminCreateUser, InitiateAuth, GetUser |
| `cognito-oauth` | Resource server CRUD, confidential clients, `/oauth2/token`, OIDC discovery, JWKS/JWT verification |
| `apigatewayv2` | HTTP & WebSocket API lifecycle, routes, integrations, authorizers, stages, deployments, route responses, models, tagging |
## Requirements
- Node.js 20+
- npm
## Running
```bash
npm install
# All groups
npm test
# Via just (from compatibility-tests/)
just test-typescript
```
## 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-node .
docker run --rm --network host floci-sdk-node
# Custom endpoint (macOS/Windows)
docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-node
```