Light, fluffy, and always free - The AWS Local Emulator alternative
test: move compatibility tests into this repo (#225)
Conor Heineeeefb729c46d
diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.ymlindex 6601f0f7c9..582d638f73 100644--- a/.github/workflows/compatibility.yml+++ b/.github/workflows/compatibility.yml@@ -14,6 +14,7 @@ on:- 'Dockerfile.native-package'- 'docker-compose.yml'- 'docker-compose-test.yml'+ - 'compatibility-tests/**'- '.github/workflows/compatibility.yml'permissions:@@ -104,31 +105,40 @@ jobs:- name: Wait for floci to be readyrun: timeout 60 bash -c 'until curl -sf http://localhost:4566/ >/dev/null 2>&1; do sleep 1; done'- - name: Checkout compatibility tests+ - name: Checkout repositoryuses: actions/checkout@v4with:- repository: hectorvent/floci-compatibility-tests- path: compat-tests+ sparse-checkout: compatibility-tests- uses: docker/setup-buildx-action@v3- name: Build test imageuses: docker/build-push-action@v6with:- context: compat-tests/${{ matrix.test }}+ context: compatibility-tests/${{ matrix.test }}load: truetags: compat-${{ matrix.test }}cache-from: type=gha,scope=${{ matrix.test }}cache-to: type=gha,scope=${{ matrix.test }},mode=max- name: Run tests+ id: testsrun: |+ mkdir -p test-resultsFLOCI_IP=$(docker inspect -f '{{(index .NetworkSettings.Networks "compat-net").IPAddress}}' floci)+docker run --rm --network compat-net \-e FLOCI_ENDPOINT=http://floci:4566 \+ -v "$(pwd)/test-results:/results" \--add-host "sdk-vhost-bucket.floci:${FLOCI_IP}" \compat-${{ matrix.test }}+ - name: Generate test summary+ if: always() && steps.tests.outcome != 'skipped'+ uses: test-summary/action@v2+ with:+ paths: test-results/*.xml+- name: Dump floci logsif: failure()run: docker logs flocidiff --git a/AGENT.md b/AGENT.mdindex fdfa14cb57..3f03e8e4f4 100644--- a/AGENT.md+++ b/AGENT.md@@ -194,7 +194,7 @@ Critical areas:## Compatibility ProjectCompatibility test suite:-<https://github.com/hectorvent/floci-compatibility-tests>+`./compatibility-tests/`Guidelines:diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 12b3b59fcb..d4f8a52e0a 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -7,7 +7,7 @@ Thank you for your interest in contributing! Floci is a community-driven project- **Bug reports** — open an issue with a minimal reproduction- **Feature requests** — open an issue describing the AWS behavior you need- **Pull requests** — bug fixes, new service implementations, or improvements-- **Compatibility tests** — add cases to `../floci-compatibility-tests`+- **Compatibility tests** — add cases to `./compatibility-tests/`## Getting Starteddiff --git a/README.md b/README.mdindex 3a0522be6f..064ecb9c0b 100644--- a/README.md+++ b/README.md@@ -198,9 +198,9 @@ const client = new S3Client({## Compatibility Testing-> For full compatibility validation against real SDK and client workflows, use [floci-compatibility-tests](https://github.com/floci-io/floci-compatibility-tests).+> For full compatibility validation against real SDK and client workflows, see the [compatibility-tests](./compatibility-tests/) directory.-This companion project provides a dedicated compatibility test suite for Floci across multiple SDKs and tooling scenarios, and is the recommended starting point when verifying integration behavior end to end.+This directory provides a dedicated compatibility test suite for Floci across multiple SDKs and tooling scenarios, and is the recommended starting point when verifying integration behavior end to end.Available compatibility test modules:diff --git a/compatibility-tests/.gitattributes b/compatibility-tests/.gitattributesnew file mode 100644index 0000000000..526c8a38d4--- /dev/null+++ b/compatibility-tests/.gitattributes@@ -0,0 +1 @@+*.sh text eol=lf\ No newline at end of filediff --git a/compatibility-tests/.gitignore b/compatibility-tests/.gitignorenew file mode 100644index 0000000000..0c755f4da0--- /dev/null+++ b/compatibility-tests/.gitignore@@ -0,0 +1,67 @@+# Environment+.env++# Node+node_modules/+npm-debug.log*+yarn-debug.log*+yarn-error.log*++# CDK+compat-cdk/cdk.out/+compat-cdk/node_modules/++# Java / Maven+target/+*.class+*.jar+*.war+*.ear++# Python+__pycache__/+*.py[cod]+*.pyo+.venv/+venv/+*.egg-info/+dist/+.eggs/+.pytest_cache/++# Bash/Bats (shared bats dependencies)+lib/bats-core/+lib/bats-support/+lib/bats-assert/++# Test results+test-results/++# Rust+sdk-test-rust/target/++# Go binaries+sdk-test-go/floci-sdk-test-go++# Terraform / OpenTofu+.terraform/+*.tfstate+*.tfstate.backup+*.tfplan+crash.log+override.tf+override.tf.json+*_override.tf+*_override.tf.json++# IDE+.idea/+.vscode/+*.iml++# OS+.DS_Store+Thumbs.db++# Local Personal files/test+*-local.*diff --git a/compatibility-tests/README.md b/compatibility-tests/README.mdnew file mode 100644index 0000000000..9f2bd831a5--- /dev/null+++ b/compatibility-tests/README.md@@ -0,0 +1,221 @@+# floci-compatibility-tests++Compatibility test suite for [Floci](https://github.com/hectorvent/floci) — a local AWS emulator.++Verifies that standard AWS tooling (SDKs, CDK, OpenTofu/Terraform) works correctly against the emulator without modification. Tests run against a live Floci instance and use real AWS SDK clients — no mocks.++## Quick Start++```bash+# Install just (task runner)+# macOS: brew install just+# Linux: cargo install just++# Copy and configure environment+cp env.example .env++# Run all tests+just test-all++# Run specific SDK tests+just test-python+just test-typescript+just test-awscli+```++## Test Runners++| Module | Language | Test Framework | Command |+| ------------------------------------- | -------------- | -------------- | ---------------------- |+| [`sdk-test-python`](sdk-test-python/) | Python 3 | pytest | `just test-python` |+| [`sdk-test-node`](sdk-test-node/) | TypeScript | vitest | `just test-typescript` |+| [`sdk-test-awscli`](sdk-test-awscli/) | Bash / AWS CLI | bats-core | `just test-awscli` |+| [`sdk-test-java`](sdk-test-java/) | Java 17 | JUnit 5 | `just test-java` |+| [`sdk-test-go`](sdk-test-go/) | Go 1.24 | go test | `just test-go` |+| [`sdk-test-rust`](sdk-test-rust/) | Rust | cargo-nextest | `just test-rust` |++### IaC Compatibility++| Module | Tool | Command |+| --------------------------------------- | ---------- | ---------- |+| [`compat-cdk`](compat-cdk/) | AWS CDK v2 | `./run.sh` |+| [`compat-opentofu`](compat-opentofu/) | OpenTofu | `./run.sh` |+| [`compat-terraform`](compat-terraform/) | Terraform | `./run.sh` |++## Prerequisites++- **Floci running** on `http://localhost:4566` (or set `FLOCI_ENDPOINT`)+- **Docker** — required for Lambda invocation tests+- **just** — task runner for orchestration++Per-module requirements:++| Module | Requirements |+| ----------------- | ----------------------------------- |+| `sdk-test-python` | Python 3.9+, pip |+| `sdk-test-node` | Node.js 20+, npm, vitest |+| `sdk-test-awscli` | AWS CLI v2, bash, jq |+| `sdk-test-java` | Java 17+, Maven |+| `sdk-test-go` | Go 1.24+ |+| `sdk-test-rust` | Rust (stable), Cargo, cargo-nextest |++## Setup++```bash+# Setup all SDKs+just setup++# Setup individual SDKs+just setup-python # pip install -r requirements.txt+just setup-typescript # npm install+just setup-awscli # Clone bats-core, bats-support, bats-assert+```++## Running Tests++### All SDKs++```bash+just test-all+```++### Individual SDKs++```bash+# Python (pytest)+just test-python++# TypeScript (vitest)+just test-typescript++# AWS CLI (bats-core)+just test-awscli+```++Bats-based suites keep their normal console output and also write JUnit XML reports:++- `sdk-test-awscli/test-results/junit.xml`+- `compat-cdk/test-results/junit.xml`+- `compat-terraform/test-results/junit.xml`+- `compat-opentofu/test-results/junit.xml`++### TAP Output++All test frameworks support TAP (Test Anything Protocol) output:++```bash+# Python+cd sdk-test-python && pytest --tap-stream++# TypeScript+cd sdk-test-node && npm run test:tap++# AWS CLI+cd sdk-test-awscli && ./lib/bats-core/bin/bats --tap test/+```++## Configuration++All modules read from environment variables (see `.env.example`):++```bash+FLOCI_ENDPOINT=http://localhost:4566+AWS_ACCESS_KEY_ID=test+AWS_SECRET_ACCESS_KEY=test+AWS_DEFAULT_REGION=us-east-1+```++## Services Covered++### Python SDK (`sdk-test-python`)++16 test files covering:++- SSM Parameter Store+- SQS Queues+- SNS Topics+- S3 Buckets & Objects+- S3 CORS+- S3 Notifications+- DynamoDB Tables+- Lambda Functions+- IAM Users, Roles, Policies+- STS Identity+- Secrets Manager+- KMS Keys & Encryption+- Kinesis Streams+- CloudWatch Metrics & Alarms+- CloudFormation+- Cognito User Pools++### TypeScript SDK (`sdk-test-node`)++17 test files covering:++- SSM Parameter Store+- SQS Queues+- SNS Topics+- S3 Buckets & Objects+- S3 CORS+- S3 Notifications+- DynamoDB Tables+- Lambda Functions+- IAM Roles & Policies+- STS Identity+- Secrets Manager+- KMS Keys & Encryption+- Kinesis Streams+- CloudWatch Metrics & Alarms+- CloudFormation Naming+- Cognito User Pools+- Cognito OAuth++### AWS CLI Tests (`sdk-test-awscli`)++12 test files covering:++- SSM Parameter Store+- SQS Queues+- SNS Topics+- S3 Buckets & Objects+- S3 Notifications+- DynamoDB Tables+- IAM Roles & Policies+- STS Identity+- SES Identities & Sending+- Secrets Manager+- KMS Keys & Encryption+- Cognito User Pools++## CI/CD++GitHub Actions workflow runs tests on pull requests and pushes:++```yaml+# .github/workflows/sdk-tests.yml+# Matrix strategy runs python, typescript, bash in parallel+```++## Running with Docker++Each module includes a `Dockerfile` for isolated execution:++```bash+# Python+docker build -t floci-sdk-python sdk-test-python/+docker run --rm --network host floci-sdk-python pytest++# TypeScript+docker build -t floci-sdk-node sdk-test-node/+docker run --rm --network host floci-sdk-node npm test+```++On macOS/Windows, use `host.docker.internal` instead of `localhost`:++```bash+docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-python pytest+```++## Exit Codes++All test runners exit `0` on full pass and non-zero if any test fails — suitable for CI pipelines.diff --git a/compatibility-tests/compat-cdk/Dockerfile b/compatibility-tests/compat-cdk/Dockerfilenew file mode 100644index 0000000000..fcf6ecb4db--- /dev/null+++ b/compatibility-tests/compat-cdk/Dockerfile@@ -0,0 +1,36 @@+FROM node:22-alpine AS builder+WORKDIR /app+COPY package*.json ./+RUN npm install+COPY . .+RUN npx tsc++FROM node:22-alpine+RUN apk add --no-cache aws-cli bash python3 git jq+WORKDIR /app++# Install bats and helpers+RUN git clone --depth 1 https://github.com/bats-core/bats-core.git /opt/bats-core \+ && git clone --depth 1 https://github.com/bats-core/bats-support.git /opt/bats-support \+ && git clone --depth 1 https://github.com/bats-core/bats-assert.git /opt/bats-assert++COPY --from=builder /app/node_modules ./node_modules+COPY --from=builder /app/bin ./bin+COPY --from=builder /app/lib ./lib+COPY package.json cdk.json tsconfig.json ./+COPY run.sh ./+COPY run-bats-in-container.sh ./+COPY test/ test/++ENV PATH="/app/node_modules/.bin:$PATH"+ENV BATS_LIB_PATH=/opt+ENV FLOCI_ENDPOINT=http://floci:4566+ENV AWS_ENDPOINT_URL=http://floci:4566+ENV AWS_ACCESS_KEY_ID=test+ENV AWS_SECRET_ACCESS_KEY=test+ENV AWS_DEFAULT_REGION=us-east-1+ENV LOCALSTACK_HOSTNAME=floci+ENV EDGE_PORT=4566++RUN chmod +x /app/run-bats-in-container.sh && mkdir -p /results+ENTRYPOINT ["./run-bats-in-container.sh"]diff --git a/compatibility-tests/compat-cdk/bin/app.ts b/compatibility-tests/compat-cdk/bin/app.tsnew file mode 100644index 0000000000..7362ea817d--- /dev/null+++ b/compatibility-tests/compat-cdk/bin/app.ts@@ -0,0 +1,11 @@+#!/usr/bin/env node+import * as cdk from 'aws-cdk-lib';+import { FlociTestStack } from '../lib/floci-stack';++const app = new cdk.App();+new FlociTestStack(app, 'FlociTestStack', {+ env: {+ account: '000000000000',+ region: 'us-east-1',+ },+});diff --git a/compatibility-tests/compat-cdk/cdk.json b/compatibility-tests/compat-cdk/cdk.jsonnew file mode 100644index 0000000000..8d5b3fe33e--- /dev/null+++ b/compatibility-tests/compat-cdk/cdk.json@@ -0,0 +1,6 @@+{+ "app": "node bin/app.js",+ "context": {+ "@aws-cdk/aws-s3:keepNotificationInImportedBucket": false+ }+}diff --git a/compatibility-tests/compat-cdk/lib/floci-stack.ts b/compatibility-tests/compat-cdk/lib/floci-stack.tsnew file mode 100644index 0000000000..c1dd7ae1f2--- /dev/null+++ b/compatibility-tests/compat-cdk/lib/floci-stack.ts@@ -0,0 +1,67 @@+import * as cdk from 'aws-cdk-lib';+import * as s3 from 'aws-cdk-lib/aws-s3';+import * as sqs from 'aws-cdk-lib/aws-sqs';+import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';+import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';+import { Construct } from 'constructs';++export class FlociTestStack extends cdk.Stack {+ constructor(scope: Construct, id: string, props?: cdk.StackProps) {+ super(scope, id, props);++ const bucket = new s3.Bucket(this, 'TestBucket', {+ removalPolicy: cdk.RemovalPolicy.DESTROY,+ });++ const queue = new sqs.Queue(this, 'TestQueue', {+ queueName: 'floci-cdk-test-queue',+ visibilityTimeout: cdk.Duration.seconds(30),+ });++ const table = new dynamodb.TableV2(this, 'TestTable', {+ tableName: 'floci-cdk-test-table',+ partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },+ removalPolicy: cdk.RemovalPolicy.DESTROY,+ });++ // DynamoDB table with GSI and LSI — validates CloudFormation index provisioning+ const indexTable = new dynamodb.TableV2(this, 'IndexTestTable', {+ tableName: 'floci-cdk-index-table',+ partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },+ sortKey: { name: 'sk', type: dynamodb.AttributeType.STRING },+ removalPolicy: cdk.RemovalPolicy.DESTROY,+ globalSecondaryIndexes: [+ {+ indexName: 'gsi-1',+ partitionKey: { name: 'gsiPk', type: dynamodb.AttributeType.STRING },+ sortKey: { name: 'sk', type: dynamodb.AttributeType.STRING },+ projectionType: dynamodb.ProjectionType.ALL,+ },+ ],+ localSecondaryIndexes: [+ {+ indexName: 'lsi-1',+ sortKey: { name: 'lsiSk', type: dynamodb.AttributeType.STRING },+ projectionType: dynamodb.ProjectionType.KEYS_ONLY,+ },+ ],+ });++ const generatedSecret = new secretsmanager.CfnSecret(this, 'GeneratedSecret', {+ name: 'floci-cdk-generated-secret',+ generateSecretString: {+ secretStringTemplate: '{"username":"admin"}',+ generateStringKey: 'password',+ passwordLength: 24,+ excludeCharacters: 'abc',+ },+ });+ generatedSecret.applyRemovalPolicy(cdk.RemovalPolicy.DESTROY);++ new cdk.CfnOutput(this, 'BucketName', { value: bucket.bucketName });+ new cdk.CfnOutput(this, 'QueueUrl', { value: queue.queueUrl });+ new cdk.CfnOutput(this, 'TableName', { value: table.tableName });+ new cdk.CfnOutput(this, 'IndexTableName', { value: indexTable.tableName });+ new cdk.CfnOutput(this, 'GeneratedSecretName', { value: generatedSecret.name || 'floci-cdk-generated-secret' });+ }+}diff --git a/compatibility-tests/compat-cdk/package.json b/compatibility-tests/compat-cdk/package.jsonnew file mode 100644index 0000000000..84c88a500c--- /dev/null+++ b/compatibility-tests/compat-cdk/package.json@@ -0,0 +1,21 @@+{+ "name": "compat-cdk",+ "version": "1.0.0",+ "private": true,+ "bin": {+ "app": "bin/app.js"+ },+ "scripts": {+ "build": "tsc",+ "cdk": "cdk"+ },+ "dependencies": {+ "aws-cdk-lib": "2.171.1",+ "constructs": "^10.0.0"+ },+ "devDependencies": {+ "aws-cdk": "2.171.1",+ "aws-cdk-local": "^2.0.0",+ "typescript": "~5.7.0"+ }+}diff --git a/compatibility-tests/compat-cdk/run-bats-in-container.sh b/compatibility-tests/compat-cdk/run-bats-in-container.shnew file mode 100644index 0000000000..f89f6897ab--- /dev/null+++ b/compatibility-tests/compat-cdk/run-bats-in-container.sh@@ -0,0 +1,16 @@+#!/usr/bin/env bash+set -euo pipefail++report_dir="$(mktemp -d /tmp/bats-junit-XXXXXX)"+trap 'rm -rf "$report_dir"' EXIT++set +e+/opt/bats-core/bin/bats --report-formatter junit -o "$report_dir" test/+status=$?+set -e++if [ -f "$report_dir/report.xml" ]; then+ mv "$report_dir/report.xml" /results/junit.xml+fi++exit "$status"diff --git a/compatibility-tests/compat-cdk/run.sh b/compatibility-tests/compat-cdk/run.shnew file mode 100755index 0000000000..06e4767f59--- /dev/null+++ b/compatibility-tests/compat-cdk/run.sh@@ -0,0 +1,26 @@+#!/bin/bash+set -e++# Environment setup for Docker container+export AWS_REGION=us-east-1+export AWS_DEFAULT_REGION=us-east-1+export AWS_ACCESS_KEY_ID=test+export AWS_SECRET_ACCESS_KEY=test+export LOCALSTACK_HOSTNAME=floci+export EDGE_PORT=4566+export FLOCI_ENDPOINT=http://floci:4566+export AWS_ENDPOINT_URL=http://floci:4566++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"++# Ensure bats is available+if [ ! -d "$REPO_ROOT/lib/bats-core" ]; then+ echo "Error: bats-core not found. Run 'just setup-bats' first."+ exit 1+fi++# Run bats tests+exec "$REPO_ROOT/lib/run-bats-with-junit.sh" \+ "$SCRIPT_DIR/test/" \+ "${BATS_JUNIT_XML:-$SCRIPT_DIR/test-results/junit.xml}"diff --git a/compatibility-tests/compat-cdk/test/cdk.bats b/compatibility-tests/compat-cdk/test/cdk.batsnew file mode 100644index 0000000000..524507417d--- /dev/null+++ b/compatibility-tests/compat-cdk/test/cdk.bats@@ -0,0 +1,140 @@+#!/usr/bin/env bats+# CDK Compatibility Tests for floci++setup_file() {+ load 'test_helper/common-setup'++ cd "$CDK_DIR"++ echo "# === CDK Compatibility Test ===" >&3+ echo "# Endpoint: $FLOCI_ENDPOINT" >&3++ echo "# --- Bootstrap ---" >&3+ run cdklocal bootstrap --force+ if [ "$status" -ne 0 ]; then+ echo "# Bootstrap failed: $output" >&3+ return 1+ fi++ echo "# --- Deploy ---" >&3+ run cdklocal deploy --require-approval never+ if [ "$status" -ne 0 ]; then+ echo "# Deploy failed: $output" >&3+ return 1+ fi+}++teardown_file() {+ load 'test_helper/common-setup'++ cd "$CDK_DIR"++ echo "# --- Destroy ---" >&3+ cdklocal destroy --force || true+}++setup() {+ load 'test_helper/common-setup'+}++# --- Spot Checks ---++@test "CDK: S3 bucket exists" {+ run aws_cmd s3 ls+ assert_success+ bucket_count=$(echo "$output" | wc -l)+ [ "$bucket_count" -gt 0 ]+}++@test "CDK: SQS queue exists" {+ run aws_cmd sqs list-queues+ assert_success+ queue_count=$(json_get "$output" '.QueueUrls | length')+ [ "$queue_count" -gt 0 ]+}++@test "CDK: DynamoDB table exists" {+ run aws_cmd dynamodb list-tables+ assert_success+ table_count=$(json_get "$output" '.TableNames | length')+ [ "$table_count" -gt 0 ]+}++@test "CDK: DynamoDB GSI exists on index table" {+ run aws_cmd dynamodb describe-table --table-name floci-cdk-index-table+ assert_success+ gsi_count=$(json_get "$output" '.Table.GlobalSecondaryIndexes | length')+ [ "$gsi_count" -eq 1 ]+}++@test "CDK: DynamoDB GSI name is gsi-1" {+ run aws_cmd dynamodb describe-table --table-name floci-cdk-index-table+ assert_success+ gsi_name=$(json_get "$output" '.Table.GlobalSecondaryIndexes[0].IndexName')+ [ "$gsi_name" = "gsi-1" ]+}++@test "CDK: DynamoDB GSI projection ALL" {+ run aws_cmd dynamodb describe-table --table-name floci-cdk-index-table+ assert_success+ gsi_proj=$(json_get "$output" '.Table.GlobalSecondaryIndexes[0].Projection.ProjectionType')+ [ "$gsi_proj" = "ALL" ]+}++@test "CDK: DynamoDB LSI exists on index table" {+ run aws_cmd dynamodb describe-table --table-name floci-cdk-index-table+ assert_success+ lsi_count=$(json_get "$output" '.Table.LocalSecondaryIndexes | length')+ [ "$lsi_count" -eq 1 ]+}++@test "CDK: DynamoDB LSI name is lsi-1" {+ run aws_cmd dynamodb describe-table --table-name floci-cdk-index-table+ assert_success+ lsi_name=$(json_get "$output" '.Table.LocalSecondaryIndexes[0].IndexName')+ [ "$lsi_name" = "lsi-1" ]+}++@test "CDK: DynamoDB LSI projection KEYS_ONLY" {+ run aws_cmd dynamodb describe-table --table-name floci-cdk-index-table+ assert_success+ lsi_proj=$(json_get "$output" '.Table.LocalSecondaryIndexes[0].Projection.ProjectionType')+ [ "$lsi_proj" = "KEYS_ONLY" ]+}++@test "CDK: CloudFormation stack CREATE_COMPLETE" {+ run aws_cmd cloudformation describe-stacks --stack-name FlociTestStack+ assert_success+ stack_status=$(json_get "$output" '.Stacks[0].StackStatus')+ [ "$stack_status" = "CREATE_COMPLETE" ]+}++@test "CDK: Secrets Manager generated secret exists" {+ run aws_cmd secretsmanager describe-secret --secret-id floci-cdk-generated-secret+ assert_success+ secret_name=$(json_get "$output" '.Name')+ [ "$secret_name" = "floci-cdk-generated-secret" ]+}++@test "CDK: GeneratedSecret username is admin" {+ run aws_cmd secretsmanager get-secret-value --secret-id floci-cdk-generated-secret+ assert_success+ username=$(json_get "$output" '.SecretString' | jq -r '.username')+ [ "$username" = "admin" ]+}++@test "CDK: GeneratedSecret password length is 24" {+ run aws_cmd secretsmanager get-secret-value --secret-id floci-cdk-generated-secret+ assert_success+ password=$(json_get "$output" '.SecretString' | jq -r '.password')+ password_len=${#password}+ [ "$password_len" -eq 24 ]+}++@test "CDK: GeneratedSecret password excludes abc" {+ run aws_cmd secretsmanager get-secret-value --secret-id floci-cdk-generated-secret+ assert_success+ password=$(json_get "$output" '.SecretString' | jq -r '.password')+ # Check that password does not contain a, b, or c+ [[ ! "$password" =~ [abc] ]]+}diff --git a/compatibility-tests/compat-cdk/test/test_helper/common-setup.bash b/compatibility-tests/compat-cdk/test/test_helper/common-setup.bashnew file mode 100644index 0000000000..be1566aef3--- /dev/null+++ b/compatibility-tests/compat-cdk/test/test_helper/common-setup.bash@@ -0,0 +1,46 @@+#!/usr/bin/env bash+# Common setup for CDK bats tests++CDK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"++# Load bats helpers - support both local and Docker environments+if [[ -d "${CDK_DIR}/../lib/bats-support" ]]; then+ load "${CDK_DIR}/../lib/bats-support/load"+ load "${CDK_DIR}/../lib/bats-assert/load"+elif [[ -d "${CDK_DIR}/lib/bats-support" ]]; then+ load "${CDK_DIR}/lib/bats-support/load"+ load "${CDK_DIR}/lib/bats-assert/load"+elif [[ -n "${BATS_LIB_PATH:-}" ]]; then+ load "${BATS_LIB_PATH}/bats-support/load"+ load "${BATS_LIB_PATH}/bats-assert/load"+else+ echo "Error: Cannot find bats-support/bats-assert libraries" >&2+ exit 1+fi++# Shared test helpers kept local to this module so Docker and local runs behave the same.+export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"+export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"+export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"+export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"+export AWS_ENDPOINT_URL="$FLOCI_ENDPOINT"++aws_cmd() {+ aws --endpoint-url "$FLOCI_ENDPOINT" --region "$AWS_DEFAULT_REGION" --output json "$@"+}++json_get() {+ local json="$1"+ local path="$2"+ echo "$json" | jq -r "$path" 2>/dev/null || echo ""+}++# CDK-specific environment+export LOCALSTACK_HOSTNAME="${LOCALSTACK_HOSTNAME:-localhost}"+export EDGE_PORT="${EDGE_PORT:-4566}"++# Override endpoint for Docker networking if needed+if [ "$LOCALSTACK_HOSTNAME" = "floci" ]; then+ export FLOCI_ENDPOINT="http://floci:4566"+ export AWS_ENDPOINT_URL="http://floci:4566"+fidiff --git a/compatibility-tests/compat-cdk/tsconfig.json b/compatibility-tests/compat-cdk/tsconfig.jsonnew file mode 100644index 0000000000..6e92c70b86--- /dev/null+++ b/compatibility-tests/compat-cdk/tsconfig.json@@ -0,0 +1,21 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "module": "commonjs",+ "lib": ["ES2020"],+ "declaration": true,+ "strict": true,+ "noImplicitAny": true,+ "strictNullChecks": true,+ "noImplicitThis": true,+ "alwaysStrict": true,+ "outDir": "./",+ "rootDir": "./",+ "inlineSourceMap": true,+ "inlineSources": true,+ "experimentalDecorators": true,+ "strictPropertyInitialization": false,+ "typeRoots": ["./node_modules/@types"]+ },+ "exclude": ["node_modules", "cdk.out"]+}diff --git a/compatibility-tests/compat-opentofu/.terraform.lock.hcl b/compatibility-tests/compat-opentofu/.terraform.lock.hclnew file mode 100644index 0000000000..cdc1668d41--- /dev/null+++ b/compatibility-tests/compat-opentofu/.terraform.lock.hcl@@ -0,0 +1,25 @@+# This file is maintained automatically by "terraform init".+# Manual edits may be lost in future updates.++provider "registry.terraform.io/hashicorp/aws" {+ version = "5.100.0"+ constraints = "~> 5.0"+ hashes = [+ "h1:Ijt7pOlB7Tr7maGQIqtsLFbl7pSMIj06TVdkoSBcYOw=",+ "zh:054b8dd49f0549c9a7cc27d159e45327b7b65cf404da5e5a20da154b90b8a644",+ "zh:0b97bf8d5e03d15d83cc40b0530a1f84b459354939ba6f135a0086c20ebbe6b2",+ "zh:1589a2266af699cbd5d80737a0fe02e54ec9cf2ca54e7e00ac51c7359056f274",+ "zh:6330766f1d85f01ae6ea90d1b214b8b74cc8c1badc4696b165b36ddd4cc15f7b",+ "zh:7c8c2e30d8e55291b86fcb64bdf6c25489d538688545eb48fd74ad622e5d3862",+ "zh:99b1003bd9bd32ee323544da897148f46a527f622dc3971af63ea3e251596342",+ "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",+ "zh:9f8b909d3ec50ade83c8062290378b1ec553edef6a447c56dadc01a99f4eaa93",+ "zh:aaef921ff9aabaf8b1869a86d692ebd24fbd4e12c21205034bb679b9caf883a2",+ "zh:ac882313207aba00dd5a76dbd572a0ddc818bb9cbf5c9d61b28fe30efaec951e",+ "zh:bb64e8aff37becab373a1a0cc1080990785304141af42ed6aa3dd4913b000421",+ "zh:dfe495f6621df5540d9c92ad40b8067376350b005c637ea6efac5dc15028add4",+ "zh:f0ddf0eaf052766cfe09dea8200a946519f653c384ab4336e2a4a64fdd6310e9",+ "zh:f1b7e684f4c7ae1eed272b6de7d2049bb87a0275cb04dbb7cda6636f600699c9",+ "zh:ff461571e3f233699bf690db319dfe46aec75e58726636a0d97dd9ac6e32fb70",+ ]+}diff --git a/compatibility-tests/compat-opentofu/Dockerfile b/compatibility-tests/compat-opentofu/Dockerfilenew file mode 100644index 0000000000..996d35dfce--- /dev/null+++ b/compatibility-tests/compat-opentofu/Dockerfile@@ -0,0 +1,27 @@+FROM ghcr.io/opentofu/opentofu:1.8 AS opentofu++FROM amazon/aws-cli:2.15.52++# Copy tofu binary from official OpenTofu image+COPY --from=opentofu /usr/local/bin/tofu /usr/local/bin/tofu++RUN yum install -y git jq >/dev/null 2>&1++WORKDIR /app++# Install bats and helpers+RUN git clone --depth 1 https://github.com/bats-core/bats-core.git /opt/bats-core \+ && git clone --depth 1 https://github.com/bats-core/bats-support.git /opt/bats-support \+ && git clone --depth 1 https://github.com/bats-core/bats-assert.git /opt/bats-assert++COPY . .++ENV FLOCI_ENDPOINT=http://floci:4566+ENV AWS_ENDPOINT_URL=http://floci:4566+ENV AWS_ACCESS_KEY_ID=test+ENV AWS_SECRET_ACCESS_KEY=test+ENV AWS_DEFAULT_REGION=us-east-1+ENV BATS_LIB_PATH=/opt++RUN chmod +x /app/run-bats-in-container.sh && mkdir -p /results+ENTRYPOINT ["./run-bats-in-container.sh"]diff --git a/compatibility-tests/compat-opentofu/backend.hcl b/compatibility-tests/compat-opentofu/backend.hclnew file mode 100644index 0000000000..d9d87c4291--- /dev/null+++ b/compatibility-tests/compat-opentofu/backend.hcl@@ -0,0 +1,13 @@+bucket = "tfstate"+key = "floci-compat.tfstate"+region = "us-east-1"++endpoint = "http://localhost:4566"+access_key = "test"+secret_key = "test"+skip_credentials_validation = true+skip_region_validation = true+force_path_style = true++dynamodb_endpoint = "http://localhost:4566"+dynamodb_table = "tflock"diff --git a/compatibility-tests/compat-opentofu/main.tf b/compatibility-tests/compat-opentofu/main.tfnew file mode 100644index 0000000000..c41dc19b26--- /dev/null+++ b/compatibility-tests/compat-opentofu/main.tf@@ -0,0 +1,129 @@+# ── S3 Bucket ──────────────────────────────────────────────────────────────+resource "aws_s3_bucket" "app" {+ bucket = "floci-compat-app"+}++resource "aws_s3_bucket_versioning" "app" {+ bucket = aws_s3_bucket.app.id+ versioning_configuration {+ status = "Enabled"+ }+}++# ── SQS Queue ──────────────────────────────────────────────────────────────+resource "aws_sqs_queue" "jobs" {+ name = "floci-compat-jobs"+ visibility_timeout_seconds = 30+ message_retention_seconds = 86400+}++resource "aws_sqs_queue" "jobs_dlq" {+ name = "floci-compat-jobs-dlq"+}++resource "aws_sqs_queue_redrive_policy" "jobs" {+ queue_url = aws_sqs_queue.jobs.id+ redrive_policy = jsonencode({+ deadLetterTargetArn = aws_sqs_queue.jobs_dlq.arn+ maxReceiveCount = 3+ })+}++# ── SNS Topic ──────────────────────────────────────────────────────────────+resource "aws_sns_topic" "events" {+ name = "floci-compat-events"+}++resource "aws_sns_topic_subscription" "events_to_sqs" {+ topic_arn = aws_sns_topic.events.arn+ protocol = "sqs"+ endpoint = aws_sqs_queue.jobs.arn+}++# ── DynamoDB Table ─────────────────────────────────────────────────────────+resource "aws_dynamodb_table" "items" {+ name = "floci-compat-items"+ billing_mode = "PAY_PER_REQUEST"+ hash_key = "pk"+ range_key = "sk"++ attribute {+ name = "pk"+ type = "S"+ }++ attribute {+ name = "sk"+ type = "S"+ }++ ttl {+ attribute_name = "expires_at"+ enabled = true+ }++ tags = {+ Environment = "compat-test"+ }+}++# ── IAM Role (for Lambda) ──────────────────────────────────────────────────+resource "aws_iam_role" "lambda_exec" {+ name = "floci-compat-lambda-exec"++ assume_role_policy = jsonencode({+ Version = "2012-10-17"+ Statement = [{+ Action = "sts:AssumeRole"+ Effect = "Allow"+ Principal = { Service = "lambda.amazonaws.com" }+ }]+ })+}++# ── SSM Parameters ─────────────────────────────────────────────────────────+resource "aws_ssm_parameter" "db_url" {+ name = "/floci-compat/db-url"+ type = "String"+ value = "jdbc:postgresql://localhost:5432/app"+}++resource "aws_ssm_parameter" "api_key" {+ name = "/floci-compat/api-key"+ type = "SecureString"+ value = "super-secret-key"+}++# ── Secrets Manager ────────────────────────────────────────────────────────+resource "aws_secretsmanager_secret" "db_creds" {+ name = "floci-compat/db-creds"+}++resource "aws_secretsmanager_secret_version" "db_creds" {+ secret_id = aws_secretsmanager_secret.db_creds.id+ secret_string = jsonencode({+ username = "admin"+ password = "s3cret"+ })+}++# ── Outputs ────────────────────────────────────────────────────────────────+output "bucket_id" {+ value = aws_s3_bucket.app.id+}++output "queue_url" {+ value = aws_sqs_queue.jobs.url+}++output "topic_arn" {+ value = aws_sns_topic.events.arn+}++output "table_name" {+ value = aws_dynamodb_table.items.name+}++output "secret_arn" {+ value = aws_secretsmanager_secret.db_creds.arn+}diff --git a/compatibility-tests/compat-opentofu/provider.tf b/compatibility-tests/compat-opentofu/provider.tfnew file mode 100644index 0000000000..bd5b08cbc3--- /dev/null+++ b/compatibility-tests/compat-opentofu/provider.tf@@ -0,0 +1,38 @@+terraform {+ required_providers {+ aws = {+ source = "hashicorp/aws"+ version = "~> 5.0"+ }+ }++ backend "s3" {}+}++variable "endpoint" {+ type = string+ default = "http://localhost:4566"+}++provider "aws" {+ region = "us-east-1"+ access_key = "test"+ secret_key = "test"++ skip_credentials_validation = true+ skip_metadata_api_check = true+ skip_requesting_account_id = true+ s3_use_path_style = true++ endpoints {+ s3 = var.endpoint+ sqs = var.endpoint+ sns = var.endpoint+ dynamodb = var.endpoint+ lambda = var.endpoint+ iam = var.endpoint+ sts = var.endpoint+ ssm = var.endpoint+ secretsmanager = var.endpoint+ }+}diff --git a/compatibility-tests/compat-opentofu/run-bats-in-container.sh b/compatibility-tests/compat-opentofu/run-bats-in-container.shnew file mode 100644index 0000000000..f89f6897ab--- /dev/null+++ b/compatibility-tests/compat-opentofu/run-bats-in-container.sh@@ -0,0 +1,16 @@+#!/usr/bin/env bash+set -euo pipefail++report_dir="$(mktemp -d /tmp/bats-junit-XXXXXX)"+trap 'rm -rf "$report_dir"' EXIT++set +e+/opt/bats-core/bin/bats --report-formatter junit -o "$report_dir" test/+status=$?+set -e++if [ -f "$report_dir/report.xml" ]; then+ mv "$report_dir/report.xml" /results/junit.xml+fi++exit "$status"diff --git a/compatibility-tests/compat-opentofu/run.sh b/compatibility-tests/compat-opentofu/run.shnew file mode 100755index 0000000000..ce463ee8e2--- /dev/null+++ b/compatibility-tests/compat-opentofu/run.sh@@ -0,0 +1,24 @@+#!/bin/bash+set -e++# Environment setup for Docker container+export AWS_REGION=us-east-1+export AWS_DEFAULT_REGION=us-east-1+export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"+export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"+export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"+export AWS_ENDPOINT_URL="$FLOCI_ENDPOINT"++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"++# Ensure bats is available+if [ ! -d "$REPO_ROOT/lib/bats-core" ]; then+ echo "Error: bats-core not found. Run 'just setup-bats' first."+ exit 1+fi++# Run bats tests+exec "$REPO_ROOT/lib/run-bats-with-junit.sh" \+ "$SCRIPT_DIR/test/" \+ "${BATS_JUNIT_XML:-$SCRIPT_DIR/test-results/junit.xml}"diff --git a/compatibility-tests/compat-opentofu/test/opentofu.bats b/compatibility-tests/compat-opentofu/test/opentofu.batsnew file mode 100644index 0000000000..0873cb65a0--- /dev/null+++ b/compatibility-tests/compat-opentofu/test/opentofu.bats@@ -0,0 +1,97 @@+#!/usr/bin/env bats+# OpenTofu Compatibility Tests for floci++setup_file() {+ load 'test_helper/common-setup'++ cd "$TOFU_DIR"++ echo "# === OpenTofu Compatibility Test ===" >&3+ echo "# Endpoint: $FLOCI_ENDPOINT" >&3++ # Clean any previous state+ rm -rf .terraform .terraform.lock.hcl terraform.tfstate* 2>/dev/null || true++ echo "# --- Setup: state bucket & lock table ---" >&3+ create_state_backend+ generate_backend_config++ echo "# --- tofu init ---" >&3+ run tofu init -backend-config=/tmp/floci-backend.hcl \+ -var="endpoint=${FLOCI_ENDPOINT}" -input=false -no-color+ if [ "$status" -ne 0 ]; then+ echo "# tofu init failed: $output" >&3+ return 1+ fi++ echo "# --- tofu validate ---" >&3+ run tofu validate -no-color+ if [ "$status" -ne 0 ]; then+ echo "# tofu validate failed: $output" >&3+ return 1+ fi++ echo "# --- tofu plan ---" >&3+ run tofu plan -var="endpoint=${FLOCI_ENDPOINT}" -input=false -no-color+ if [ "$status" -ne 0 ]; then+ echo "# tofu plan failed: $output" >&3+ return 1+ fi++ echo "# --- tofu apply ---" >&3+ run tofu apply -var="endpoint=${FLOCI_ENDPOINT}" -input=false -auto-approve -no-color+ if [ "$status" -ne 0 ]; then+ echo "# tofu apply failed: $output" >&3+ return 1+ fi+}++teardown_file() {+ load 'test_helper/common-setup'++ cd "$TOFU_DIR"++ echo "# --- tofu destroy ---" >&3+ tofu destroy -var="endpoint=${FLOCI_ENDPOINT}" -input=false -auto-approve -no-color || true+}++setup() {+ load 'test_helper/common-setup'+}++# --- Spot Checks ---++@test "OpenTofu: S3 bucket created" {+ run aws_cmd s3api head-bucket --bucket floci-compat-app+ assert_success+}++@test "OpenTofu: SQS queue created" {+ run aws_cmd sqs get-queue-url --queue-name floci-compat-jobs+ assert_success+ assert_output --partial "QueueUrl"+}++@test "OpenTofu: SNS topic created" {+ run aws_cmd sns list-topics+ assert_success+ assert_output --partial "floci-compat-events"+}++@test "OpenTofu: DynamoDB table created" {+ run aws_cmd dynamodb describe-table --table-name floci-compat-items+ assert_success+ assert_output --partial "ACTIVE"+}++@test "OpenTofu: SSM parameter created" {+ run aws_cmd ssm get-parameter --name /floci-compat/db-url+ assert_success+ assert_output --partial "jdbc:"+}++@test "OpenTofu: Secrets Manager secret created" {+ run aws_cmd secretsmanager describe-secret --secret-id "floci-compat/db-creds"+ assert_success+ assert_output --partial "floci-compat"+}diff --git a/compatibility-tests/compat-opentofu/test/test_helper/common-setup.bash b/compatibility-tests/compat-opentofu/test/test_helper/common-setup.bashnew file mode 100644index 0000000000..ac09b0b801--- /dev/null+++ b/compatibility-tests/compat-opentofu/test/test_helper/common-setup.bash@@ -0,0 +1,71 @@+#!/usr/bin/env bash+# Common setup for OpenTofu bats tests++TOFU_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"++# Load bats helpers - support both local and Docker environments+if [[ -d "${TOFU_DIR}/../lib/bats-support" ]]; then+ load "${TOFU_DIR}/../lib/bats-support/load"+ load "${TOFU_DIR}/../lib/bats-assert/load"+elif [[ -d "${TOFU_DIR}/lib/bats-support" ]]; then+ load "${TOFU_DIR}/lib/bats-support/load"+ load "${TOFU_DIR}/lib/bats-assert/load"+elif [[ -n "${BATS_LIB_PATH:-}" ]]; then+ load "${BATS_LIB_PATH}/bats-support/load"+ load "${BATS_LIB_PATH}/bats-assert/load"+else+ echo "Error: Cannot find bats-support/bats-assert libraries" >&2+ exit 1+fi++# Shared test helpers kept local to this module so Docker and local runs behave the same.+export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"+export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"+export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"+export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"+export AWS_ENDPOINT_URL="$FLOCI_ENDPOINT"++aws_cmd() {+ aws --endpoint-url "$FLOCI_ENDPOINT" --region "$AWS_DEFAULT_REGION" --output json "$@"+}++json_get() {+ local json="$1"+ local path="$2"+ echo "$json" | jq -r "$path" 2>/dev/null || echo ""+}++# OpenTofu-specific helpers+create_state_backend() {+ # Create S3 state bucket if not exists+ if ! aws_cmd s3api head-bucket --bucket tfstate 2>/dev/null; then+ aws_cmd s3api create-bucket --bucket tfstate+ fi++ # Create DynamoDB lock table if not exists+ if ! aws_cmd dynamodb describe-table --table-name tflock 2>/dev/null | grep -q ACTIVE; then+ aws_cmd dynamodb create-table \+ --table-name tflock \+ --attribute-definitions AttributeName=LockID,AttributeType=S \+ --key-schema AttributeName=LockID,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST+ fi+}++generate_backend_config() {+ cat > /tmp/floci-backend.hcl <<EOF+bucket = "tfstate"+key = "floci-compat.tfstate"+region = "us-east-1"++endpoint = "${FLOCI_ENDPOINT}"+access_key = "test"+secret_key = "test"+skip_credentials_validation = true+skip_region_validation = true+use_path_style = true++dynamodb_endpoint = "${FLOCI_ENDPOINT}"+dynamodb_table = "tflock"+EOF+}diff --git a/compatibility-tests/compat-terraform/Dockerfile b/compatibility-tests/compat-terraform/Dockerfilenew file mode 100644index 0000000000..345c667448--- /dev/null+++ b/compatibility-tests/compat-terraform/Dockerfile@@ -0,0 +1,27 @@+FROM hashicorp/terraform:1.14.7 AS terraform++FROM amazon/aws-cli:2.15.52++# Copy terraform binary from official Terraform image+COPY --from=terraform /bin/terraform /usr/local/bin/terraform++RUN yum install -y git jq >/dev/null 2>&1++WORKDIR /app++# Install bats and helpers+RUN git clone --depth 1 https://github.com/bats-core/bats-core.git /opt/bats-core \+ && git clone --depth 1 https://github.com/bats-core/bats-support.git /opt/bats-support \+ && git clone --depth 1 https://github.com/bats-core/bats-assert.git /opt/bats-assert++COPY . .++ENV FLOCI_ENDPOINT=http://floci:4566+ENV AWS_ENDPOINT_URL=http://floci:4566+ENV AWS_ACCESS_KEY_ID=test+ENV AWS_SECRET_ACCESS_KEY=test+ENV AWS_DEFAULT_REGION=us-east-1+ENV BATS_LIB_PATH=/opt++RUN chmod +x /app/run-bats-in-container.sh && mkdir -p /results+ENTRYPOINT ["./run-bats-in-container.sh"]diff --git a/compatibility-tests/compat-terraform/backend.hcl b/compatibility-tests/compat-terraform/backend.hclnew file mode 100644index 0000000000..d9d87c4291--- /dev/null+++ b/compatibility-tests/compat-terraform/backend.hcl@@ -0,0 +1,13 @@+bucket = "tfstate"+key = "floci-compat.tfstate"+region = "us-east-1"++endpoint = "http://localhost:4566"+access_key = "test"+secret_key = "test"+skip_credentials_validation = true+skip_region_validation = true+force_path_style = true++dynamodb_endpoint = "http://localhost:4566"+dynamodb_table = "tflock"diff --git a/compatibility-tests/compat-terraform/main.tf b/compatibility-tests/compat-terraform/main.tfnew file mode 100644index 0000000000..9c7bbc2e40--- /dev/null+++ b/compatibility-tests/compat-terraform/main.tf@@ -0,0 +1,174 @@+# -- S3 Bucket ------------------------------------------------------------------+resource "aws_s3_bucket" "app" {+ bucket = "floci-compat-app"+}++resource "aws_s3_bucket_versioning" "app" {+ bucket = aws_s3_bucket.app.id+ versioning_configuration {+ status = "Enabled"+ }+}++# -- SQS Queue -----------------------------------------------------------------+resource "aws_sqs_queue" "jobs" {+ name = "floci-compat-jobs"+ visibility_timeout_seconds = 30+ message_retention_seconds = 86400+}++resource "aws_sqs_queue" "jobs_dlq" {+ name = "floci-compat-jobs-dlq"+}++resource "aws_sqs_queue_redrive_policy" "jobs" {+ queue_url = aws_sqs_queue.jobs.id+ redrive_policy = jsonencode({+ deadLetterTargetArn = aws_sqs_queue.jobs_dlq.arn+ maxReceiveCount = 3+ })+}++# -- SNS Topic -----------------------------------------------------------------+resource "aws_sns_topic" "events" {+ name = "floci-compat-events"+}++resource "aws_sns_topic_subscription" "events_to_sqs" {+ topic_arn = aws_sns_topic.events.arn+ protocol = "sqs"+ endpoint = aws_sqs_queue.jobs.arn+}++# -- DynamoDB Table -------------------------------------------------------------+resource "aws_dynamodb_table" "items" {+ name = "floci-compat-items"+ billing_mode = "PAY_PER_REQUEST"+ hash_key = "pk"+ range_key = "sk"++ attribute {+ name = "pk"+ type = "S"+ }++ attribute {+ name = "sk"+ type = "S"+ }++ ttl {+ attribute_name = "expires_at"+ enabled = true+ }++ tags = {+ Environment = "compat-test"+ }+}++# -- IAM Role (for Lambda) -----------------------------------------------------+data "aws_iam_policy_document" "lambda_assume_role" {+ statement {+ actions = ["sts:AssumeRole"]+ effect = "Allow"++ principals {+ type = "Service"+ identifiers = ["lambda.amazonaws.com"]+ }+ }+}++resource "aws_iam_role" "lambda_exec" {+ name = "floci-compat-lambda-exec"+ assume_role_policy = data.aws_iam_policy_document.lambda_assume_role.json+}++# -- SSM Parameters ------------------------------------------------------------+resource "aws_ssm_parameter" "db_url" {+ name = "/floci-compat/db-url"+ type = "String"+ value = "jdbc:postgresql://localhost:5432/app"+}++resource "aws_ssm_parameter" "api_key" {+ name = "/floci-compat/api-key"+ type = "SecureString"+ value = "super-secret-key"+}++# -- Secrets Manager -----------------------------------------------------------+resource "aws_secretsmanager_secret" "db_creds" {+ name = "floci-compat/db-creds"+}++resource "aws_secretsmanager_secret_version" "db_creds" {+ secret_id = aws_secretsmanager_secret.db_creds.id+ secret_string = jsonencode({+ username = "admin"+ password = "s3cret"+ })+}++# -- Outputs -------------------------------------------------------------------+output "bucket_id" {+ value = aws_s3_bucket.app.id+}++output "queue_url" {+ value = aws_sqs_queue.jobs.url+}++output "topic_arn" {+ value = aws_sns_topic.events.arn+}++output "table_name" {+ value = aws_dynamodb_table.items.name+}++output "secret_arn" {+ value = aws_secretsmanager_secret.db_creds.arn+}++# -- Cognito User Pool ---------------------------------------------------------+resource "aws_cognito_user_pool" "pool" {+ name = "floci-compat-pool"++ password_policy {+ minimum_length = 12+ require_lowercase = true+ require_numbers = true+ require_symbols = true+ require_uppercase = true+ }++ auto_verified_attributes = ["email"]+ username_attributes = ["email"]++ admin_create_user_config {+ allow_admin_create_user_only = false+ }++ verification_message_template {+ default_email_option = "CONFIRM_WITH_CODE"+ email_message = "Your code is {####}"+ email_subject = "Verify your account"+ }++ account_recovery_setting {+ recovery_mechanism {+ name = "verified_email"+ priority = 1+ }+ }+}++output "user_pool_id" {+ value = aws_cognito_user_pool.pool.id+}++output "user_pool_arn" {+ value = aws_cognito_user_pool.pool.arn+}diff --git a/compatibility-tests/compat-terraform/provider.tf b/compatibility-tests/compat-terraform/provider.tfnew file mode 100644index 0000000000..32a995dd5a--- /dev/null+++ b/compatibility-tests/compat-terraform/provider.tf@@ -0,0 +1,39 @@+terraform {+ required_providers {+ aws = {+ source = "hashicorp/aws"+ version = "~> 6.0"+ }+ }++ backend "s3" {}+}++variable "endpoint" {+ type = string+ default = "http://localhost:4566"+}++provider "aws" {+ region = "us-east-1"+ access_key = "test"+ secret_key = "test"++ skip_credentials_validation = true+ skip_metadata_api_check = true+ skip_requesting_account_id = true+ s3_use_path_style = true++ endpoints {+ s3 = var.endpoint+ sqs = var.endpoint+ sns = var.endpoint+ dynamodb = var.endpoint+ lambda = var.endpoint+ iam = var.endpoint+ sts = var.endpoint+ ssm = var.endpoint+ secretsmanager = var.endpoint+ cognitoidp = var.endpoint+ }+}diff --git a/compatibility-tests/compat-terraform/run-bats-in-container.sh b/compatibility-tests/compat-terraform/run-bats-in-container.shnew file mode 100644index 0000000000..f89f6897ab--- /dev/null+++ b/compatibility-tests/compat-terraform/run-bats-in-container.sh@@ -0,0 +1,16 @@+#!/usr/bin/env bash+set -euo pipefail++report_dir="$(mktemp -d /tmp/bats-junit-XXXXXX)"+trap 'rm -rf "$report_dir"' EXIT++set +e+/opt/bats-core/bin/bats --report-formatter junit -o "$report_dir" test/+status=$?+set -e++if [ -f "$report_dir/report.xml" ]; then+ mv "$report_dir/report.xml" /results/junit.xml+fi++exit "$status"diff --git a/compatibility-tests/compat-terraform/run.sh b/compatibility-tests/compat-terraform/run.shnew file mode 100755index 0000000000..ce463ee8e2--- /dev/null+++ b/compatibility-tests/compat-terraform/run.sh@@ -0,0 +1,24 @@+#!/bin/bash+set -e++# Environment setup for Docker container+export AWS_REGION=us-east-1+export AWS_DEFAULT_REGION=us-east-1+export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"+export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"+export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"+export AWS_ENDPOINT_URL="$FLOCI_ENDPOINT"++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"++# Ensure bats is available+if [ ! -d "$REPO_ROOT/lib/bats-core" ]; then+ echo "Error: bats-core not found. Run 'just setup-bats' first."+ exit 1+fi++# Run bats tests+exec "$REPO_ROOT/lib/run-bats-with-junit.sh" \+ "$SCRIPT_DIR/test/" \+ "${BATS_JUNIT_XML:-$SCRIPT_DIR/test-results/junit.xml}"diff --git a/compatibility-tests/compat-terraform/test/terraform.bats b/compatibility-tests/compat-terraform/test/terraform.batsnew file mode 100644index 0000000000..6f9ccb6932--- /dev/null+++ b/compatibility-tests/compat-terraform/test/terraform.bats@@ -0,0 +1,97 @@+#!/usr/bin/env bats+# Terraform Compatibility Tests for floci++setup_file() {+ load 'test_helper/common-setup'++ cd "$TF_DIR"++ echo "# === Terraform Compatibility Test ===" >&3+ echo "# Endpoint: $FLOCI_ENDPOINT" >&3++ # Clean any previous state+ rm -rf .terraform .terraform.lock.hcl terraform.tfstate* 2>/dev/null || true++ echo "# --- Setup: state bucket & lock table ---" >&3+ create_state_backend+ generate_backend_config++ echo "# --- terraform init ---" >&3+ run terraform init -backend-config=/tmp/floci-backend.hcl \+ -var="endpoint=${FLOCI_ENDPOINT}" -input=false -no-color+ if [ "$status" -ne 0 ]; then+ echo "# terraform init failed: $output" >&3+ return 1+ fi++ echo "# --- terraform validate ---" >&3+ run terraform validate -no-color+ if [ "$status" -ne 0 ]; then+ echo "# terraform validate failed: $output" >&3+ return 1+ fi++ echo "# --- terraform plan ---" >&3+ run terraform plan -var="endpoint=${FLOCI_ENDPOINT}" -input=false -no-color+ if [ "$status" -ne 0 ]; then+ echo "# terraform plan failed: $output" >&3+ return 1+ fi++ echo "# --- terraform apply ---" >&3+ run terraform apply -var="endpoint=${FLOCI_ENDPOINT}" -input=false -auto-approve -no-color+ if [ "$status" -ne 0 ]; then+ echo "# terraform apply failed: $output" >&3+ return 1+ fi+}++teardown_file() {+ load 'test_helper/common-setup'++ cd "$TF_DIR"++ echo "# --- terraform destroy ---" >&3+ terraform destroy -var="endpoint=${FLOCI_ENDPOINT}" -input=false -auto-approve -no-color || true+}++setup() {+ load 'test_helper/common-setup'+}++# --- Spot Checks ---++@test "Terraform: S3 bucket created" {+ run aws_cmd s3api head-bucket --bucket floci-compat-app+ assert_success+}++@test "Terraform: SQS queue created" {+ run aws_cmd sqs get-queue-url --queue-name floci-compat-jobs+ assert_success+ assert_output --partial "QueueUrl"+}++@test "Terraform: SNS topic created" {+ run aws_cmd sns list-topics+ assert_success+ assert_output --partial "floci-compat-events"+}++@test "Terraform: DynamoDB table created" {+ run aws_cmd dynamodb describe-table --table-name floci-compat-items+ assert_success+ assert_output --partial "ACTIVE"+}++@test "Terraform: SSM parameter created" {+ run aws_cmd ssm get-parameter --name /floci-compat/db-url+ assert_success+ assert_output --partial "jdbc:"+}++@test "Terraform: Secrets Manager secret created" {+ run aws_cmd secretsmanager describe-secret --secret-id "floci-compat/db-creds"+ assert_success+ assert_output --partial "floci-compat"+}diff --git a/compatibility-tests/compat-terraform/test/test_helper/common-setup.bash b/compatibility-tests/compat-terraform/test/test_helper/common-setup.bashnew file mode 100644index 0000000000..aa0ac082fa--- /dev/null+++ b/compatibility-tests/compat-terraform/test/test_helper/common-setup.bash@@ -0,0 +1,71 @@+#!/usr/bin/env bash+# Common setup for Terraform bats tests++TF_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"++# Load bats helpers - support both local and Docker environments+if [[ -d "${TF_DIR}/../lib/bats-support" ]]; then+ load "${TF_DIR}/../lib/bats-support/load"+ load "${TF_DIR}/../lib/bats-assert/load"+elif [[ -d "${TF_DIR}/lib/bats-support" ]]; then+ load "${TF_DIR}/lib/bats-support/load"+ load "${TF_DIR}/lib/bats-assert/load"+elif [[ -n "${BATS_LIB_PATH:-}" ]]; then+ load "${BATS_LIB_PATH}/bats-support/load"+ load "${BATS_LIB_PATH}/bats-assert/load"+else+ echo "Error: Cannot find bats-support/bats-assert libraries" >&2+ exit 1+fi++# Shared test helpers kept local to this module so Docker and local runs behave the same.+export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"+export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"+export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"+export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"+export AWS_ENDPOINT_URL="$FLOCI_ENDPOINT"++aws_cmd() {+ aws --endpoint-url "$FLOCI_ENDPOINT" --region "$AWS_DEFAULT_REGION" --output json "$@"+}++json_get() {+ local json="$1"+ local path="$2"+ echo "$json" | jq -r "$path" 2>/dev/null || echo ""+}++# Terraform-specific helpers+create_state_backend() {+ # Create S3 state bucket if not exists+ if ! aws_cmd s3api head-bucket --bucket tfstate 2>/dev/null; then+ aws_cmd s3api create-bucket --bucket tfstate+ fi++ # Create DynamoDB lock table if not exists+ if ! aws_cmd dynamodb describe-table --table-name tflock 2>/dev/null | grep -q ACTIVE; then+ aws_cmd dynamodb create-table \+ --table-name tflock \+ --attribute-definitions AttributeName=LockID,AttributeType=S \+ --key-schema AttributeName=LockID,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST+ fi+}++generate_backend_config() {+ cat > /tmp/floci-backend.hcl <<EOF+bucket = "tfstate"+key = "floci-compat.tfstate"+region = "us-east-1"++endpoint = "${FLOCI_ENDPOINT}"+access_key = "test"+secret_key = "test"+skip_credentials_validation = true+skip_region_validation = true+force_path_style = true++dynamodb_endpoint = "${FLOCI_ENDPOINT}"+dynamodb_table = "tflock"+EOF+}diff --git a/compatibility-tests/env.example b/compatibility-tests/env.examplenew file mode 100644index 0000000000..51cde07ab6--- /dev/null+++ b/compatibility-tests/env.example@@ -0,0 +1,4 @@+FLOCI_ENDPOINT=http://localhost:4566+AWS_ACCESS_KEY_ID=test+AWS_SECRET_ACCESS_KEY=test+AWS_DEFAULT_REGION=us-east-1diff --git a/compatibility-tests/justfile b/compatibility-tests/justfilenew file mode 100644index 0000000000..5c5f5a0a67--- /dev/null+++ b/compatibility-tests/justfile@@ -0,0 +1,140 @@+# SDK Compatibility Tests - Task Runner Configuration+# Run `just` to see available commands++set export+set dotenv-load++# Environment defaults+FLOCI_ENDPOINT := env('FLOCI_ENDPOINT', 'http://localhost:4566')+AWS_ACCESS_KEY_ID := env('AWS_ACCESS_KEY_ID', 'test')+AWS_SECRET_ACCESS_KEY := env('AWS_SECRET_ACCESS_KEY', 'test')+AWS_DEFAULT_REGION := env('AWS_DEFAULT_REGION', 'us-east-1')++# Default recipe - list all available commands+default:+ @just --list++# Run all SDK tests sequentially (continues on failure)+test-all:+ #!/usr/bin/env bash+ set +e+ failed=0+ for suite in python typescript awscli java go rust; do+ echo "=== Running $suite tests ==="+ just test-$suite || failed=1+ done+ exit $failed++# Run Python SDK tests (JUnit XML output)+[working-directory: 'sdk-test-python']+test-python:+ pytest tests/ --junit-xml=test-results/junit.xml++# Run TypeScript SDK tests (JUnit XML output via vitest junit reporter)+[working-directory: 'sdk-test-node']+test-typescript:+ npm test++# Run AWS CLI tests (JUnit XML output via bats)+test-awscli:+ ./lib/run-bats-with-junit.sh sdk-test-awscli/test/ sdk-test-awscli/test-results/junit.xml++# Run Java SDK tests (JUnit XML output via Maven Surefire)+[working-directory: 'sdk-test-java']+test-java:+ mvn test -q++# Run Go SDK tests (JUnit XML output via gotestsum)+[working-directory: 'sdk-test-go']+test-go:+ gotestsum --junitfile test-results.xml ./tests/...++# Run Rust SDK tests (JUnit XML output via cargo-nextest)+[working-directory: 'sdk-test-rust']+test-rust:+ cargo nextest run --profile ci++# Install all test dependencies+setup: setup-python setup-typescript setup-awscli setup-java setup-go setup-rust++# Install Python test dependencies+[working-directory: 'sdk-test-python']+setup-python:+ pip install -r requirements.txt++# Install TypeScript test dependencies+[working-directory: 'sdk-test-node']+setup-typescript:+ npm install++# Install Java test dependencies+[working-directory: 'sdk-test-java']+setup-java:+ mvn dependency:resolve -q++# Install Go test dependencies+[working-directory: 'sdk-test-go']+setup-go:+ go mod download+ go install gotest.tools/gotestsum@latest++# Install Rust test dependencies+[working-directory: 'sdk-test-rust']+setup-rust:+ cargo fetch+ cargo install cargo-nextest --locked++# Install AWS CLI test dependencies (uses shared bats from repo root)+setup-awscli: setup-bats+ @echo "AWS CLI test dependencies ready (using shared bats)"++# Install bats-core and helpers for compat tests+setup-bats:+ #!/usr/bin/env bash+ set -euo pipefail+ mkdir -p lib+ if [ ! -d "lib/bats-core" ]; then+ echo "Cloning bats-core..."+ git clone --depth 1 https://github.com/bats-core/bats-core.git lib/bats-core+ fi+ if [ ! -d "lib/bats-support" ]; then+ echo "Cloning bats-support..."+ git clone --depth 1 https://github.com/bats-core/bats-support.git lib/bats-support+ fi+ if [ ! -d "lib/bats-assert" ]; then+ echo "Cloning bats-assert..."+ git clone --depth 1 https://github.com/bats-core/bats-assert.git lib/bats-assert+ fi+ echo "Bats dependencies installed!"++# Run CDK compatibility tests (JUnit XML output via bats)+test-cdk:+ ./lib/run-bats-with-junit.sh compat-cdk/test/ compat-cdk/test-results/junit.xml++# Run Terraform compatibility tests (JUnit XML output via bats)+test-terraform:+ ./lib/run-bats-with-junit.sh compat-terraform/test/ compat-terraform/test-results/junit.xml++# Run OpenTofu compatibility tests (JUnit XML output via bats)+test-opentofu:+ ./lib/run-bats-with-junit.sh compat-opentofu/test/ compat-opentofu/test-results/junit.xml++# Run all IaC compatibility tests (continues on failure)+test-compat:+ #!/usr/bin/env bash+ set +e+ failed=0+ for suite in cdk terraform opentofu; do+ echo "=== Running $suite tests ==="+ just test-$suite || failed=1+ done+ exit $failed++# Remove build artifacts and dependencies+clean:+ rm -rf sdk-test-python/__pycache__ sdk-test-python/.pytest_cache sdk-test-python/test-results+ rm -rf sdk-test-node/node_modules sdk-test-node/dist sdk-test-node/test-results+ rm -rf sdk-test-java/target+ rm -rf sdk-test-go/test-results.xml+ rm -rf sdk-test-rust/target+ rm -rf lib/bats-core lib/bats-support lib/bats-assertdiff --git a/compatibility-tests/lib/run-bats-with-junit.sh b/compatibility-tests/lib/run-bats-with-junit.shnew file mode 100755index 0000000000..86fde3b7dd--- /dev/null+++ b/compatibility-tests/lib/run-bats-with-junit.sh@@ -0,0 +1,37 @@+#!/usr/bin/env bash+set -euo pipefail++if [ "$#" -lt 2 ]; then+ echo "Usage: $0 <test-path> <junit-xml-path> [bats-args...]" >&2+ exit 1+fi++TEST_PATH="$1"+JUNIT_XML_PATH="$2"+shift 2++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"+BATS_BIN="$REPO_ROOT/lib/bats-core/bin/bats"++if [ ! -x "$BATS_BIN" ]; then+ echo "Error: bats-core not found at $BATS_BIN. Run 'just setup-bats' first." >&2+ exit 1+fi++mkdir -p "$(dirname "$JUNIT_XML_PATH")"+REPORT_DIR="$(mktemp -d "${TMPDIR:-/tmp}/bats-junit-XXXXXX")"+trap 'rm -rf "$REPORT_DIR"' EXIT++set +e+"$BATS_BIN" --report-formatter junit -o "$REPORT_DIR" "$@" "$TEST_PATH"+BATS_STATUS=$?+set -e++if [ ! -f "$REPORT_DIR/report.xml" ]; then+ echo "Error: expected JUnit report at $REPORT_DIR/report.xml" >&2+ exit 1+fi++mv "$REPORT_DIR/report.xml" "$JUNIT_XML_PATH"+exit "$BATS_STATUS"diff --git a/compatibility-tests/sdk-test-awscli/Dockerfile b/compatibility-tests/sdk-test-awscli/Dockerfilenew file mode 100644index 0000000000..a77d33090c--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/Dockerfile@@ -0,0 +1,19 @@+FROM amazon/aws-cli:latest++RUN yum install -y git jq bc >/dev/null 2>&1++WORKDIR /app++# Install bats and helpers+RUN git clone --depth 1 https://github.com/bats-core/bats-core.git /opt/bats-core \+ && git clone --depth 1 https://github.com/bats-core/bats-support.git /opt/bats-support \+ && git clone --depth 1 https://github.com/bats-core/bats-assert.git /opt/bats-assert++COPY test/ test/+COPY run-bats-in-container.sh /usr/local/bin/run-bats-in-container.sh++ENV FLOCI_ENDPOINT=http://floci:4566+ENV BATS_LIB_PATH=/opt++RUN chmod +x /usr/local/bin/run-bats-in-container.sh && mkdir -p /results+ENTRYPOINT ["run-bats-in-container.sh"]diff --git a/compatibility-tests/sdk-test-awscli/README.md b/compatibility-tests/sdk-test-awscli/README.mdnew file mode 100644index 0000000000..c05f5551ad--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/README.md@@ -0,0 +1,57 @@+# sdk-test-awscli++Compatibility tests for [Floci](https://github.com/hectorvent/floci) using the **AWS CLI v2 (2.22.35)**.++Tests are plain bash scripts that call `aws` CLI commands with `--endpoint-url` pointed at the emulator.++## Services Covered++| Group | Description |+| ------------------ | ---------------------------------------------------- |+| `ssm` | Parameter Store — put, get, path, tags |+| `sqs` | Queues, send/receive/delete, attributes |+| `sns` | Topics, publish, attributes |+| `s3` | Buckets, objects, tagging, copy, delete |+| `dynamodb` | Tables, put/get/update/query/delete items |+| `iam` | Users, roles, create/get/delete |+| `sts` | GetCallerIdentity |+| `ses` | Identities, sending, quotas, notification attributes |+| `secretsmanager` | Create/get/put/list/tag/delete secrets |+| `kms` | Keys, aliases, encrypt/decrypt |+| `cognito` | User pools, clients |+| `s3-notifications` | S3 → SQS event notifications |++## Requirements++- AWS CLI v2+- bash+- jq+- bats-core (installed via `just setup-awscli`)++## Running++```bash+# All groups (from compatibility-tests/)+just test-awscli++# Run bats directly+./lib/run-bats-with-junit.sh sdk-test-awscli/test/ sdk-test-awscli/test-results/junit.xml+```++## 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-awscli .+docker run --rm --network host floci-sdk-awscli++# Custom endpoint (macOS/Windows)+docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-awscli+```diff --git a/compatibility-tests/sdk-test-awscli/run-bats-in-container.sh b/compatibility-tests/sdk-test-awscli/run-bats-in-container.shnew file mode 100644index 0000000000..f89f6897ab--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/run-bats-in-container.sh@@ -0,0 +1,16 @@+#!/usr/bin/env bash+set -euo pipefail++report_dir="$(mktemp -d /tmp/bats-junit-XXXXXX)"+trap 'rm -rf "$report_dir"' EXIT++set +e+/opt/bats-core/bin/bats --report-formatter junit -o "$report_dir" test/+status=$?+set -e++if [ -f "$report_dir/report.xml" ]; then+ mv "$report_dir/report.xml" /results/junit.xml+fi++exit "$status"diff --git a/compatibility-tests/sdk-test-awscli/test/cognito.bats b/compatibility-tests/sdk-test-awscli/test/cognito.batsnew file mode 100644index 0000000000..c9159d6b55--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/cognito.bats@@ -0,0 +1,130 @@+#!/usr/bin/env bats+# Cognito tests++setup() {+ load 'test_helper/common-setup'+ POOL_ID=""+ CLIENT_ID=""+}++teardown() {+ if [ -n "$POOL_ID" ]; then+ aws_cmd cognito-idp delete-user-pool --user-pool-id "$POOL_ID" >/dev/null 2>&1 || true+ fi+}++@test "Cognito: create user pool" {+ run aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)"+ assert_success+ POOL_ID=$(json_get "$output" '.UserPool.Id')+ [ -n "$POOL_ID" ]+}++@test "Cognito: create user pool client" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ run aws_cmd cognito-idp create-user-pool-client \+ --user-pool-id "$POOL_ID" \+ --client-name "bats-test-client"+ assert_success+ CLIENT_ID=$(json_get "$output" '.UserPoolClient.ClientId')+ [ -n "$CLIENT_ID" ]+}++@test "Cognito: admin create user" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ run aws_cmd cognito-idp admin-create-user \+ --user-pool-id "$POOL_ID" \+ --username "testuser" \+ --temporary-password "Temp123!" \+ --user-attributes Name=email,[email protected]+ assert_success+ username=$(json_get "$output" '.User.Username')+ [ "$username" = "testuser" ]+}++@test "Cognito: admin set user password" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ aws_cmd cognito-idp admin-create-user \+ --user-pool-id "$POOL_ID" \+ --username "testuser" \+ --temporary-password "Temp123!" \+ --user-attributes Name=email,[email protected] >/dev/null++ run aws_cmd cognito-idp admin-set-user-password \+ --user-pool-id "$POOL_ID" \+ --username "testuser" \+ --password "Perm456!" \+ --permanent+ assert_success+}++@test "Cognito: admin get user" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ aws_cmd cognito-idp admin-create-user \+ --user-pool-id "$POOL_ID" \+ --username "testuser" \+ --temporary-password "Temp123!" \+ --user-attributes Name=email,[email protected] >/dev/null++ aws_cmd cognito-idp admin-set-user-password \+ --user-pool-id "$POOL_ID" \+ --username "testuser" \+ --password "Perm456!" \+ --permanent >/dev/null++ run aws_cmd cognito-idp admin-get-user \+ --user-pool-id "$POOL_ID" \+ --username "testuser"+ assert_success+ status=$(json_get "$output" '.UserStatus')+ [ "$status" = "CONFIRMED" ]+}++@test "Cognito: list users" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ aws_cmd cognito-idp admin-create-user \+ --user-pool-id "$POOL_ID" \+ --username "testuser" \+ --temporary-password "Temp123!" >/dev/null++ run aws_cmd cognito-idp list-users --user-pool-id "$POOL_ID"+ assert_success+ found=$(echo "$output" | jq '.Users | any(.Username == "testuser")')+ [ "$found" = "true" ]+}++@test "Cognito: JWKS endpoint" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ run curl -sS "$FLOCI_ENDPOINT/$POOL_ID/.well-known/jwks.json"+ assert_success++ keys_count=$(echo "$output" | jq '.keys | length')+ [ "$keys_count" -gt 0 ]++ key_type=$(echo "$output" | jq -r '.keys[0].kty')+ [ "$key_type" = "RSA" ]++ alg=$(echo "$output" | jq -r '.keys[0].alg')+ [ "$alg" = "RS256" ]+}++@test "Cognito: delete user pool" {+ out=$(aws_cmd cognito-idp create-user-pool --pool-name "bats-test-pool-$(unique_name)")+ POOL_ID=$(json_get "$out" '.UserPool.Id')++ run aws_cmd cognito-idp delete-user-pool --user-pool-id "$POOL_ID"+ assert_success+ POOL_ID=""+}diff --git a/compatibility-tests/sdk-test-awscli/test/dynamodb.bats b/compatibility-tests/sdk-test-awscli/test/dynamodb.batsnew file mode 100644index 0000000000..d7e5ead85d--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/dynamodb.bats@@ -0,0 +1,599 @@+#!/usr/bin/env bats+# DynamoDB tests++setup() {+ load 'test_helper/common-setup'+ TABLE_NAME="bats-test-table-$(unique_name)"+}++teardown() {+ aws_cmd dynamodb delete-table --table-name "$TABLE_NAME" >/dev/null 2>&1 || true+}++@test "DynamoDB: create table" {+ run aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE \+ --billing-mode PAY_PER_REQUEST+ assert_success+ status=$(json_get "$output" '.TableDescription.TableStatus')+ [ "$status" = "ACTIVE" ] || [ "$status" = "CREATING" ]+}++@test "DynamoDB: describe table" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ name=$(json_get "$output" '.Table.TableName')+ [ "$name" = "$TABLE_NAME" ]+}++@test "DynamoDB: list tables" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb list-tables+ assert_success+ found=$(echo "$output" | jq --arg name "$TABLE_NAME" '.TableNames | any(. == $name)')+ [ "$found" = "true" ]+}++@test "DynamoDB: put and get item" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb put-item \+ --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"user#1"},"name":{"S":"Alice"}}'+ assert_success++ run aws_cmd dynamodb get-item \+ --table-name "$TABLE_NAME" \+ --key '{"pk":{"S":"user#1"}}'+ assert_success+ name=$(json_get "$output" '.Item.name.S')+ [ "$name" = "Alice" ]+}++@test "DynamoDB: update item" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item \+ --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"user#1"},"name":{"S":"Alice"}}' >/dev/null++ run aws_cmd dynamodb update-item \+ --table-name "$TABLE_NAME" \+ --key '{"pk":{"S":"user#1"}}' \+ --update-expression 'SET #n = :v' \+ --expression-attribute-names '{"#n":"name"}' \+ --expression-attribute-values '{":v":{"S":"Bob"}}'+ assert_success++ run aws_cmd dynamodb get-item \+ --table-name "$TABLE_NAME" \+ --key '{"pk":{"S":"user#1"}}'+ assert_success+ name=$(json_get "$output" '.Item.name.S')+ [ "$name" = "Bob" ]+}++@test "DynamoDB: scan table" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" --item '{"pk":{"S":"user#1"},"name":{"S":"Alice"}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" --item '{"pk":{"S":"user#2"},"name":{"S":"Bob"}}' >/dev/null++ run aws_cmd dynamodb scan --table-name "$TABLE_NAME"+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" -ge 2 ]+}++@test "DynamoDB: query table" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" --item '{"pk":{"S":"user#1"},"sk":{"S":"profile"},"name":{"S":"Alice"}}' >/dev/null++ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --key-condition-expression 'pk = :pk' \+ --expression-attribute-values '{":pk":{"S":"user#1"}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" -ge 1 ]+}++@test "DynamoDB: delete item" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" --item '{"pk":{"S":"user#1"}}' >/dev/null++ run aws_cmd dynamodb delete-item \+ --table-name "$TABLE_NAME" \+ --key '{"pk":{"S":"user#1"}}'+ assert_success+}++@test "DynamoDB: delete table" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb delete-table --table-name "$TABLE_NAME"+ assert_success+}++# --- DynamoDB GSI/LSI Tests ---++@test "DynamoDB: create table with GSI and LSI" {+ run aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST+ assert_success+}++@test "DynamoDB: GSI count is 1" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ count=$(echo "$output" | jq '.Table.GlobalSecondaryIndexes | length')+ [ "$count" = "1" ]+}++@test "DynamoDB: GSI name is gsi-1" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ name=$(echo "$output" | jq -r '.Table.GlobalSecondaryIndexes[0].IndexName')+ [ "$name" = "gsi-1" ]+}++@test "DynamoDB: GSI projection is ALL" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ proj=$(echo "$output" | jq -r '.Table.GlobalSecondaryIndexes[0].Projection.ProjectionType')+ [ "$proj" = "ALL" ]+}++@test "DynamoDB: LSI count is 1" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ count=$(echo "$output" | jq '.Table.LocalSecondaryIndexes | length')+ [ "$count" = "1" ]+}++@test "DynamoDB: LSI name is lsi-1" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ name=$(echo "$output" | jq -r '.Table.LocalSecondaryIndexes[0].IndexName')+ [ "$name" = "lsi-1" ]+}++@test "DynamoDB: LSI projection is KEYS_ONLY" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ run aws_cmd dynamodb describe-table --table-name "$TABLE_NAME"+ assert_success+ proj=$(echo "$output" | jq -r '.Table.LocalSecondaryIndexes[0].Projection.ProjectionType')+ [ "$proj" = "KEYS_ONLY" ]+}++@test "DynamoDB: query GSI sparse index" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=gsiPk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --global-secondary-indexes \+ 'IndexName=gsi-1,KeySchema=[{AttributeName=gsiPk,KeyType=HASH},{AttributeName=sk,KeyType=RANGE}],Projection={ProjectionType=ALL}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ # Put 2 items with gsiPk+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"sk":{"S":"rev-1"},"gsiPk":{"S":"group-A"}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-2"},"sk":{"S":"rev-1"},"gsiPk":{"S":"group-A"}}' >/dev/null+ # Put 1 item without gsiPk (sparse)+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-3"},"sk":{"S":"rev-1"},"data":{"S":"no-gsi"}}' >/dev/null++ # Query GSI - should return only the 2 items with gsiPk+ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --index-name gsi-1 \+ --key-condition-expression 'gsiPk = :gpk' \+ --expression-attribute-values '{":gpk":{"S":"group-A"}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "2" ]+}++@test "DynamoDB: query LSI" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions \+ AttributeName=pk,AttributeType=S \+ AttributeName=sk,AttributeType=S \+ AttributeName=lsiSk,AttributeType=S \+ --key-schema \+ AttributeName=pk,KeyType=HASH \+ AttributeName=sk,KeyType=RANGE \+ --local-secondary-indexes \+ 'IndexName=lsi-1,KeySchema=[{AttributeName=pk,KeyType=HASH},{AttributeName=lsiSk,KeyType=RANGE}],Projection={ProjectionType=KEYS_ONLY}' \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"sk":{"S":"rev-1"},"lsiSk":{"S":"2024-01-01"}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"sk":{"S":"rev-2"},"lsiSk":{"S":"2024-01-02"}}' >/dev/null++ # Query LSI with range condition+ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --index-name lsi-1 \+ --key-condition-expression 'pk = :pk AND lsiSk > :d' \+ --expression-attribute-values '{":pk":{"S":"item-1"},":d":{"S":"2024-01-00"}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "2" ]+}++# --- DynamoDB FilterExpression Tests ---++@test "DynamoDB: query with FilterExpression" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ # Put items with different status values+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"user#1"},"sk":{"S":"order#1"},"status":{"S":"pending"}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"user#1"},"sk":{"S":"order#2"},"status":{"S":"complete"}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"user#1"},"sk":{"S":"order#3"},"status":{"S":"pending"}}' >/dev/null++ # Query with FilterExpression to get only pending+ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --key-condition-expression 'pk = :pk' \+ --filter-expression '#s = :status' \+ --expression-attribute-names '{"#s":"status"}' \+ --expression-attribute-values '{":pk":{"S":"user#1"},":status":{"S":"pending"}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "2" ]+}++@test "DynamoDB: query FilterExpression with limit" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ # Put multiple items+ for i in 1 2 3 4 5; do+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item "{\"pk\":{\"S\":\"user#1\"},\"sk\":{\"S\":\"order#$i\"},\"status\":{\"S\":\"pending\"}}" >/dev/null+ done++ # Query with limit+ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --key-condition-expression 'pk = :pk' \+ --expression-attribute-values '{":pk":{"S":"user#1"}}' \+ --limit 2+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "2" ]+}++@test "DynamoDB: query FilterExpression pagination" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ # Put multiple items+ for i in 1 2 3 4 5; do+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item "{\"pk\":{\"S\":\"user#1\"},\"sk\":{\"S\":\"order#$i\"},\"status\":{\"S\":\"pending\"}}" >/dev/null+ done++ # First page+ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --key-condition-expression 'pk = :pk' \+ --expression-attribute-values '{":pk":{"S":"user#1"}}' \+ --limit 2+ assert_success++ # Check that LastEvaluatedKey exists for pagination+ lek=$(echo "$output" | jq '.LastEvaluatedKey')+ [ "$lek" != "null" ]++ # Get next page+ run aws_cmd dynamodb query \+ --table-name "$TABLE_NAME" \+ --key-condition-expression 'pk = :pk' \+ --expression-attribute-values '{":pk":{"S":"user#1"}}' \+ --limit 2 \+ --exclusive-start-key "$lek"+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "2" ]+}++# --- DynamoDB Advanced Filter Tests ---++@test "DynamoDB: scan with contains on List" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"tags":{"L":[{"S":"foo"},{"S":"bar"}]}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-2"},"tags":{"L":[{"S":"baz"},{"S":"qux"}]}}' >/dev/null++ run aws_cmd dynamodb scan \+ --table-name "$TABLE_NAME" \+ --filter-expression 'contains(tags, :tag)' \+ --expression-attribute-values '{":tag":{"S":"foo"}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "1" ]+}++@test "DynamoDB: scan with BOOL filter" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"active":{"BOOL":true}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-2"},"active":{"BOOL":false}}' >/dev/null++ run aws_cmd dynamodb scan \+ --table-name "$TABLE_NAME" \+ --filter-expression 'active = :val' \+ --expression-attribute-values '{":val":{"BOOL":true}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "1" ]+}++@test "DynamoDB: scan with attribute_exists on nested Map" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"meta":{"M":{"created":{"S":"2024-01-01"}}}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-2"},"other":{"S":"data"}}' >/dev/null++ run aws_cmd dynamodb scan \+ --table-name "$TABLE_NAME" \+ --filter-expression 'attribute_exists(meta.created)'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "1" ]+}++@test "DynamoDB: scan with contains on String Set" {+ aws_cmd dynamodb create-table \+ --table-name "$TABLE_NAME" \+ --attribute-definitions AttributeName=pk,AttributeType=S \+ --key-schema AttributeName=pk,KeyType=HASH \+ --billing-mode PAY_PER_REQUEST >/dev/null++ ddb_wait_table "$TABLE_NAME"++ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-1"},"roles":{"SS":["admin","user"]}}' >/dev/null+ aws_cmd dynamodb put-item --table-name "$TABLE_NAME" \+ --item '{"pk":{"S":"item-2"},"roles":{"SS":["guest"]}}' >/dev/null++ run aws_cmd dynamodb scan \+ --table-name "$TABLE_NAME" \+ --filter-expression 'contains(roles, :role)' \+ --expression-attribute-values '{":role":{"S":"admin"}}'+ assert_success+ count=$(json_get "$output" '.Count')+ [ "$count" = "1" ]+}diff --git a/compatibility-tests/sdk-test-awscli/test/iam.bats b/compatibility-tests/sdk-test-awscli/test/iam.batsnew file mode 100644index 0000000000..bba18dd35a--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/iam.bats@@ -0,0 +1,86 @@+#!/usr/bin/env bats+# IAM tests++setup() {+ load 'test_helper/common-setup'+ ROLE_NAME="bats-test-role-$(unique_name)"+ POLICY_ARN=""+}++teardown() {+ if [ -n "$POLICY_ARN" ]; then+ aws_cmd iam detach-role-policy --role-name "$ROLE_NAME" --policy-arn "$POLICY_ARN" >/dev/null 2>&1 || true+ aws_cmd iam delete-policy --policy-arn "$POLICY_ARN" >/dev/null 2>&1 || true+ fi+ aws_cmd iam delete-role --role-name "$ROLE_NAME" >/dev/null 2>&1 || true+}++@test "IAM: create role" {+ local policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}'++ run aws_cmd iam create-role \+ --role-name "$ROLE_NAME" \+ --assume-role-policy-document "$policy_doc"+ assert_success+ arn=$(json_get "$output" '.Role.Arn')+ [ -n "$arn" ]+}++@test "IAM: get role" {+ local policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}'+ aws_cmd iam create-role --role-name "$ROLE_NAME" --assume-role-policy-document "$policy_doc" >/dev/null++ run aws_cmd iam get-role --role-name "$ROLE_NAME"+ assert_success+ name=$(json_get "$output" '.Role.RoleName')+ [ "$name" = "$ROLE_NAME" ]+}++@test "IAM: list roles" {+ local policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}'+ aws_cmd iam create-role --role-name "$ROLE_NAME" --assume-role-policy-document "$policy_doc" >/dev/null++ run aws_cmd iam list-roles+ assert_success+ found=$(echo "$output" | jq --arg name "$ROLE_NAME" '.Roles | any(.RoleName == $name)')+ [ "$found" = "true" ]+}++@test "IAM: create and delete policy" {+ local policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:GetObject","Resource":"*"}]}'++ run aws_cmd iam create-policy \+ --policy-name "bats-test-policy-$(unique_name)" \+ --policy-document "$policy_doc"+ assert_success+ POLICY_ARN=$(json_get "$output" '.Policy.Arn')+ [ -n "$POLICY_ARN" ]++ run aws_cmd iam delete-policy --policy-arn "$POLICY_ARN"+ assert_success+ POLICY_ARN=""+}++@test "IAM: attach and detach role policy" {+ local role_policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}'+ local policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:GetObject","Resource":"*"}]}'++ aws_cmd iam create-role --role-name "$ROLE_NAME" --assume-role-policy-document "$role_policy_doc" >/dev/null++ out=$(aws_cmd iam create-policy --policy-name "bats-test-policy-$(unique_name)" --policy-document "$policy_doc")+ POLICY_ARN=$(json_get "$out" '.Policy.Arn')++ run aws_cmd iam attach-role-policy --role-name "$ROLE_NAME" --policy-arn "$POLICY_ARN"+ assert_success++ run aws_cmd iam detach-role-policy --role-name "$ROLE_NAME" --policy-arn "$POLICY_ARN"+ assert_success+}++@test "IAM: delete role" {+ local policy_doc='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}'+ aws_cmd iam create-role --role-name "$ROLE_NAME" --assume-role-policy-document "$policy_doc" >/dev/null++ run aws_cmd iam delete-role --role-name "$ROLE_NAME"+ assert_success+}diff --git a/compatibility-tests/sdk-test-awscli/test/kms.bats b/compatibility-tests/sdk-test-awscli/test/kms.batsnew file mode 100644index 0000000000..fe5e41114f--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/kms.bats@@ -0,0 +1,130 @@+#!/usr/bin/env bats+# KMS tests++setup() {+ load 'test_helper/common-setup'+ KEY_ID=""+}++teardown() {+ if [ -n "$KEY_ID" ]; then+ aws_cmd kms schedule-key-deletion --key-id "$KEY_ID" --pending-window-in-days 7 >/dev/null 2>&1 || true+ fi+}++@test "KMS: create key" {+ run aws_cmd kms create-key --description "bats-test-key"+ assert_success+ KEY_ID=$(json_get "$output" '.KeyMetadata.KeyId')+ [ -n "$KEY_ID" ]+}++@test "KMS: describe key" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')++ run aws_cmd kms describe-key --key-id "$KEY_ID"+ assert_success+ enabled=$(json_get "$output" '.KeyMetadata.Enabled')+ [ "$enabled" = "true" ]+}++@test "KMS: list keys" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')++ run aws_cmd kms list-keys+ assert_success+ found=$(echo "$output" | jq --arg id "$KEY_ID" '.Keys | any(.KeyId == $id)')+ [ "$found" = "true" ]+}++@test "KMS: encrypt and decrypt" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')++ # Create a temp file with plaintext+ local plaintext_file ciphertext_file decrypted_file+ plaintext_file=$(mktemp)+ ciphertext_file=$(mktemp)+ decrypted_file=$(mktemp)+ echo -n "hello-kms-bats" > "$plaintext_file"++ run aws_cmd kms encrypt \+ --key-id "$KEY_ID" \+ --plaintext "fileb://$plaintext_file" \+ --output text \+ --query CiphertextBlob+ assert_success+ echo "$output" | base64 -d > "$ciphertext_file"++ run aws_cmd kms decrypt \+ --ciphertext-blob "fileb://$ciphertext_file" \+ --output text \+ --query Plaintext+ assert_success+ echo "$output" | base64 -d > "$decrypted_file"++ decrypted=$(cat "$decrypted_file")+ [ "$decrypted" = "hello-kms-bats" ]++ rm -f "$plaintext_file" "$ciphertext_file" "$decrypted_file"+}++@test "KMS: generate data key" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')++ run aws_cmd kms generate-data-key --key-id "$KEY_ID" --key-spec AES_256+ assert_success+ plaintext=$(json_get "$output" '.Plaintext')+ [ -n "$plaintext" ]+ ciphertext=$(json_get "$output" '.CiphertextBlob')+ [ -n "$ciphertext" ]+}++# --- KMS Alias Tests ---++@test "KMS: create alias" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')+ alias_name="alias/bats-test-$(date +%s)"++ run aws_cmd kms create-alias --alias-name "$alias_name" --target-key-id "$KEY_ID"+ assert_success++ # Cleanup alias+ aws_cmd kms delete-alias --alias-name "$alias_name" >/dev/null 2>&1 || true+}++@test "KMS: list aliases" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')+ alias_name="alias/bats-test-$(date +%s)"++ aws_cmd kms create-alias --alias-name "$alias_name" --target-key-id "$KEY_ID" >/dev/null++ run aws_cmd kms list-aliases+ assert_success+ found=$(echo "$output" | jq --arg name "$alias_name" '.Aliases | any(.AliasName == $name)')+ [ "$found" = "true" ]++ # Cleanup alias+ aws_cmd kms delete-alias --alias-name "$alias_name" >/dev/null 2>&1 || true+}++@test "KMS: delete alias" {+ out=$(aws_cmd kms create-key --description "bats-test-key")+ KEY_ID=$(json_get "$out" '.KeyMetadata.KeyId')+ alias_name="alias/bats-test-$(date +%s)"++ aws_cmd kms create-alias --alias-name "$alias_name" --target-key-id "$KEY_ID" >/dev/null++ run aws_cmd kms delete-alias --alias-name "$alias_name"+ assert_success++ # Verify alias is deleted+ run aws_cmd kms list-aliases+ found=$(echo "$output" | jq --arg name "$alias_name" '.Aliases | any(.AliasName == $name)')+ [ "$found" = "false" ]+}diff --git a/compatibility-tests/sdk-test-awscli/test/s3-notifications.bats b/compatibility-tests/sdk-test-awscli/test/s3-notifications.batsnew file mode 100644index 0000000000..4e22fc3495--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/s3-notifications.bats@@ -0,0 +1,90 @@+#!/usr/bin/env bats+# S3 Notification Filter integration tests++load 'test_helper/common-setup'++setup_file() {+ export TEST_BUCKET="s3-notif-filter-bucket-$(date +%s)"+ export TEST_QUEUE="s3-notif-filter-queue-$(date +%s)"+ export TEST_TOPIC="s3-notif-filter-topic-$(date +%s)"+ export ACCOUNT_ID="000000000000"+ export QUEUE_ARN="arn:aws:sqs:us-east-1:${ACCOUNT_ID}:${TEST_QUEUE}"++ # Create SQS queue+ aws_cmd sqs create-queue --queue-name "$TEST_QUEUE" >/dev/null 2>&1++ # Create SNS topic and capture ARN+ local topic_out+ topic_out=$(aws_cmd sns create-topic --name "$TEST_TOPIC")+ export TOPIC_ARN=$(json_get "$topic_out" '.TopicArn')++ # Create S3 bucket+ aws_cmd s3api create-bucket --bucket "$TEST_BUCKET" >/dev/null 2>&1+}++teardown_file() {+ # Cleanup resources+ aws_cmd s3api delete-bucket --bucket "$TEST_BUCKET" >/dev/null 2>&1 || true+ aws_cmd sqs delete-queue --queue-url "${FLOCI_ENDPOINT}/${ACCOUNT_ID}/${TEST_QUEUE}" >/dev/null 2>&1 || true+ aws_cmd sns delete-topic --topic-arn "$TOPIC_ARN" >/dev/null 2>&1 || true+}++@test "S3 Notifications: put bucket notification configuration with filter" {+ local notif_config+ notif_config=$(cat <<EOF+{+ "QueueConfigurations": [{+ "Id": "sqs-filtered",+ "QueueArn": "${QUEUE_ARN}",+ "Events": ["s3:ObjectCreated:*"],+ "Filter": {+ "Key": {+ "FilterRules": [+ {"Name": "prefix", "Value": "incoming/"},+ {"Name": "suffix", "Value": ".csv"}+ ]+ }+ }+ }],+ "TopicConfigurations": [{+ "Id": "sns-filtered",+ "TopicArn": "${TOPIC_ARN}",+ "Events": ["s3:ObjectRemoved:*"],+ "Filter": {+ "Key": {+ "FilterRules": [+ {"Name": "prefix", "Value": ""},+ {"Name": "suffix", "Value": ".txt"}+ ]+ }+ }+ }]+}+EOF+)++ run aws_cmd s3api put-bucket-notification-configuration \+ --bucket "$TEST_BUCKET" \+ --notification-configuration "$notif_config"+ assert_success+}++@test "S3 Notifications: get bucket notification configuration - queue filter round-trip" {+ run aws_cmd s3api get-bucket-notification-configuration --bucket "$TEST_BUCKET"+ assert_success++ # Verify queue configuration has 2 filter rules+ local queue_filter_count+ queue_filter_count=$(echo "$output" | jq "[.QueueConfigurations[] | select(.QueueArn == \"${QUEUE_ARN}\")][0].Filter.Key.FilterRules | length" 2>/dev/null || echo "0")+ [ "$queue_filter_count" = "2" ]+}++@test "S3 Notifications: get bucket notification configuration - topic filter round-trip" {+ run aws_cmd s3api get-bucket-notification-configuration --bucket "$TEST_BUCKET"+ assert_success++ # Verify topic configuration has 2 filter rules+ local topic_filter_count+ topic_filter_count=$(echo "$output" | jq "[.TopicConfigurations[] | select(.TopicArn == \"${TOPIC_ARN}\")][0].Filter.Key.FilterRules | length" 2>/dev/null || echo "0")+ [ "$topic_filter_count" = "2" ]+}diff --git a/compatibility-tests/sdk-test-awscli/test/s3.bats b/compatibility-tests/sdk-test-awscli/test/s3.batsnew file mode 100644index 0000000000..3fe298197a--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/s3.bats@@ -0,0 +1,307 @@+#!/usr/bin/env bats+# S3 tests++setup() {+ load 'test_helper/common-setup'+ BUCKET="bats-test-bucket-$(unique_name)"+}++teardown() {+ # Clean up all objects in bucket+ aws_cmd s3 rm "s3://$BUCKET" --recursive >/dev/null 2>&1 || true+ aws_cmd s3api delete-bucket --bucket "$BUCKET" >/dev/null 2>&1 || true+}++@test "S3: create bucket" {+ run aws_cmd s3api create-bucket --bucket "$BUCKET"+ assert_success+}++@test "S3: list buckets" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ run aws_cmd s3api list-buckets+ assert_success+ found=$(echo "$output" | jq --arg name "$BUCKET" '.Buckets | any(.Name == $name)')+ [ "$found" = "true" ]+}++@test "S3: put object" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "hello-s3-bats" > "$body_file"++ run aws_cmd s3api put-object --bucket "$BUCKET" --key "test.txt" --body "$body_file"+ assert_success+ rm -f "$body_file"+}++@test "S3: get object" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file get_file+ body_file=$(mktemp)+ get_file=$(mktemp)+ echo -n "hello-s3-bats" > "$body_file"++ aws_cmd s3api put-object --bucket "$BUCKET" --key "test.txt" --body "$body_file" >/dev/null++ run aws_cmd s3api get-object --bucket "$BUCKET" --key "test.txt" "$get_file"+ assert_success++ content=$(cat "$get_file")+ [ "$content" = "hello-s3-bats" ]++ rm -f "$body_file" "$get_file"+}++@test "S3: head object" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "hello-s3-bats" > "$body_file"+ aws_cmd s3api put-object --bucket "$BUCKET" --key "test.txt" --body "$body_file" >/dev/null++ run aws_cmd s3api head-object --bucket "$BUCKET" --key "test.txt"+ assert_success+ length=$(json_get "$output" '.ContentLength')+ [ "$length" = "13" ]++ rm -f "$body_file"+}++@test "S3: list objects" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "hello" > "$body_file"+ aws_cmd s3api put-object --bucket "$BUCKET" --key "test.txt" --body "$body_file" >/dev/null++ run aws_cmd s3api list-objects-v2 --bucket "$BUCKET"+ assert_success+ found=$(echo "$output" | jq '.Contents | any(.Key == "test.txt")')+ [ "$found" = "true" ]++ rm -f "$body_file"+}++@test "S3: copy object" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "hello" > "$body_file"+ aws_cmd s3api put-object --bucket "$BUCKET" --key "src.txt" --body "$body_file" >/dev/null++ run aws_cmd s3api copy-object --bucket "$BUCKET" --copy-source "$BUCKET/src.txt" --key "dst.txt"+ assert_success++ rm -f "$body_file"+}++@test "S3: put and get object tagging" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "hello" > "$body_file"+ aws_cmd s3api put-object --bucket "$BUCKET" --key "test.txt" --body "$body_file" >/dev/null++ run aws_cmd s3api put-object-tagging \+ --bucket "$BUCKET" \+ --key "test.txt" \+ --tagging 'TagSet=[{Key=env,Value=test}]'+ assert_success++ run aws_cmd s3api get-object-tagging --bucket "$BUCKET" --key "test.txt"+ assert_success+ found=$(echo "$output" | jq '.TagSet | any(.Key == "env" and .Value == "test")')+ [ "$found" = "true" ]++ rm -f "$body_file"+}++@test "S3: delete object" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "hello" > "$body_file"+ aws_cmd s3api put-object --bucket "$BUCKET" --key "test.txt" --body "$body_file" >/dev/null++ run aws_cmd s3api delete-object --bucket "$BUCKET" --key "test.txt"+ assert_success++ rm -f "$body_file"+}++@test "S3: delete bucket" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ run aws_cmd s3api delete-bucket --bucket "$BUCKET"+ assert_success+}++# --- S3 Versioning Tests ---++@test "S3: put bucket versioning" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ run aws_cmd s3api put-bucket-versioning \+ --bucket "$BUCKET" \+ --versioning-configuration Status=Enabled+ assert_success+}++@test "S3: versioned objects have version IDs" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null+ aws_cmd s3api put-bucket-versioning \+ --bucket "$BUCKET" \+ --versioning-configuration Status=Enabled >/dev/null++ local body_file+ body_file=$(mktemp)+ echo -n "version-one" > "$body_file"++ run aws_cmd s3api put-object --bucket "$BUCKET" --key "ver.txt" --body "$body_file"+ assert_success+ v1=$(json_get "$output" '.VersionId')+ [ -n "$v1" ]++ echo -n "version-two" > "$body_file"+ run aws_cmd s3api put-object --bucket "$BUCKET" --key "ver.txt" --body "$body_file"+ assert_success+ v2=$(json_get "$output" '.VersionId')+ [ -n "$v2" ]+ [ "$v1" != "$v2" ]++ rm -f "$body_file"+}++# --- S3 Multipart Upload Tests ---++@test "S3: create multipart upload" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ run aws_cmd s3api create-multipart-upload \+ --bucket "$BUCKET" \+ --key "multipart.bin"+ assert_success+ upload_id=$(json_get "$output" '.UploadId')+ [ -n "$upload_id" ]++ # Cleanup: abort the upload+ aws_cmd s3api abort-multipart-upload \+ --bucket "$BUCKET" \+ --key "multipart.bin" \+ --upload-id "$upload_id" >/dev/null 2>&1 || true+}++@test "S3: upload part" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ output=$(aws_cmd s3api create-multipart-upload \+ --bucket "$BUCKET" \+ --key "multipart.bin")+ upload_id=$(json_get "$output" '.UploadId')++ local part_file+ part_file=$(mktemp)+ echo -n "part-one-data" > "$part_file"++ run aws_cmd s3api upload-part \+ --bucket "$BUCKET" \+ --key "multipart.bin" \+ --upload-id "$upload_id" \+ --part-number 1 \+ --body "$part_file"+ assert_success+ etag=$(json_get "$output" '.ETag')+ [ -n "$etag" ]++ rm -f "$part_file"+ aws_cmd s3api abort-multipart-upload \+ --bucket "$BUCKET" \+ --key "multipart.bin" \+ --upload-id "$upload_id" >/dev/null 2>&1 || true+}++@test "S3: complete multipart upload" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ output=$(aws_cmd s3api create-multipart-upload \+ --bucket "$BUCKET" \+ --key "multipart.bin")+ upload_id=$(json_get "$output" '.UploadId')++ local part1_file part2_file+ part1_file=$(mktemp)+ part2_file=$(mktemp)+ echo -n "part-one" > "$part1_file"+ echo -n "part-two" > "$part2_file"++ output=$(aws_cmd s3api upload-part \+ --bucket "$BUCKET" \+ --key "multipart.bin" \+ --upload-id "$upload_id" \+ --part-number 1 \+ --body "$part1_file")+ etag1=$(json_get "$output" '.ETag')++ output=$(aws_cmd s3api upload-part \+ --bucket "$BUCKET" \+ --key "multipart.bin" \+ --upload-id "$upload_id" \+ --part-number 2 \+ --body "$part2_file")+ etag2=$(json_get "$output" '.ETag')++ local mp_file+ mp_file=$(mktemp)+ cat > "$mp_file" <<EOF+{+ "Parts": [+ { "ETag": $etag1, "PartNumber": 1 },+ { "ETag": $etag2, "PartNumber": 2 }+ ]+}+EOF++ run aws_cmd s3api complete-multipart-upload \+ --bucket "$BUCKET" \+ --key "multipart.bin" \+ --upload-id "$upload_id" \+ --multipart-upload "file://$mp_file"+ assert_success++ rm -f "$part1_file" "$part2_file" "$mp_file"+}++# --- S3 Large File Test ---++@test "S3: put object 25 MB" {+ aws_cmd s3api create-bucket --bucket "$BUCKET" >/dev/null++ local large_file+ large_file=$(mktemp)+ dd if=/dev/zero of="$large_file" bs=1048576 count=25 2>/dev/null++ run aws_cmd s3api put-object \+ --bucket "$BUCKET" \+ --key "large-25mb.bin" \+ --body "$large_file"+ assert_success++ run aws_cmd s3api head-object \+ --bucket "$BUCKET" \+ --key "large-25mb.bin"+ assert_success+ length=$(json_get "$output" '.ContentLength')+ [ "$length" = "26214400" ]++ rm -f "$large_file"+}diff --git a/compatibility-tests/sdk-test-awscli/test/secretsmanager.bats b/compatibility-tests/sdk-test-awscli/test/secretsmanager.batsnew file mode 100644index 0000000000..8b003094e4--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/secretsmanager.bats@@ -0,0 +1,122 @@+#!/usr/bin/env bats+# Secrets Manager tests++setup() {+ load 'test_helper/common-setup'+ SECRET_NAME="bats/test/secret-$(unique_name)"+}++teardown() {+ aws_cmd secretsmanager delete-secret \+ --secret-id "$SECRET_NAME" \+ --force-delete-without-recovery >/dev/null 2>&1 || true+}++@test "Secrets Manager: create secret" {+ run aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}'+ assert_success+ arn=$(json_get "$output" '.ARN')+ [ -n "$arn" ]+}++@test "Secrets Manager: get secret value" {+ aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}' >/dev/null++ run aws_cmd secretsmanager get-secret-value --secret-id "$SECRET_NAME"+ assert_success+ value=$(json_get "$output" '.SecretString')+ [ "$value" = '{"key":"value"}' ]+}++@test "Secrets Manager: update secret" {+ aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}' >/dev/null++ run aws_cmd secretsmanager update-secret \+ --secret-id "$SECRET_NAME" \+ --secret-string '{"key":"updated"}'+ assert_success++ run aws_cmd secretsmanager get-secret-value --secret-id "$SECRET_NAME"+ assert_success+ value=$(json_get "$output" '.SecretString')+ [ "$value" = '{"key":"updated"}' ]+}++@test "Secrets Manager: list secrets" {+ aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}' >/dev/null++ run aws_cmd secretsmanager list-secrets+ assert_success+ found=$(echo "$output" | jq --arg name "$SECRET_NAME" '.SecretList | any(.Name == $name)')+ [ "$found" = "true" ]+}++@test "Secrets Manager: delete secret" {+ aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}' >/dev/null++ run aws_cmd secretsmanager delete-secret \+ --secret-id "$SECRET_NAME" \+ --force-delete-without-recovery+ assert_success+}++# --- Secrets Manager Tagging Tests ---++@test "Secrets Manager: tag resource" {+ out=$(aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}')+ arn=$(json_get "$out" '.ARN')++ run aws_cmd secretsmanager tag-resource \+ --secret-id "$arn" \+ --tags Key=Environment,Value=test Key=Project,Value=bats+ assert_success+}++@test "Secrets Manager: describe secret with tags" {+ out=$(aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}')+ arn=$(json_get "$out" '.ARN')++ aws_cmd secretsmanager tag-resource \+ --secret-id "$arn" \+ --tags Key=Environment,Value=test >/dev/null++ run aws_cmd secretsmanager describe-secret --secret-id "$SECRET_NAME"+ assert_success+ found=$(echo "$output" | jq '.Tags | any(.Key == "Environment" and .Value == "test")')+ [ "$found" = "true" ]+}++@test "Secrets Manager: untag resource" {+ out=$(aws_cmd secretsmanager create-secret \+ --name "$SECRET_NAME" \+ --secret-string '{"key":"value"}')+ arn=$(json_get "$out" '.ARN')++ aws_cmd secretsmanager tag-resource \+ --secret-id "$arn" \+ --tags Key=Environment,Value=test >/dev/null++ run aws_cmd secretsmanager untag-resource \+ --secret-id "$arn" \+ --tag-keys Environment+ assert_success++ # Verify tag is removed+ run aws_cmd secretsmanager describe-secret --secret-id "$SECRET_NAME"+ found=$(echo "$output" | jq '.Tags // [] | any(.Key == "Environment")')+ [ "$found" = "false" ]+}diff --git a/compatibility-tests/sdk-test-awscli/test/ses.bats b/compatibility-tests/sdk-test-awscli/test/ses.batsnew file mode 100644index 0000000000..31790f3694--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/ses.bats@@ -0,0 +1,142 @@+#!/usr/bin/env bats+# SES integration tests++load 'test_helper/common-setup'++setup_file() {+ export TEST_EMAIL="test-$(date +%s)@example.com"+ export TEST_DOMAIN="test-$(date +%s).example.com"+}++teardown_file() {+ # Cleanup identities+ aws_cmd ses delete-identity --identity "$TEST_EMAIL" >/dev/null 2>&1 || true+ aws_cmd ses delete-identity --identity "$TEST_DOMAIN" >/dev/null 2>&1 || true+}++@test "SES: verify email identity" {+ run aws_cmd ses verify-email-identity --email-address "$TEST_EMAIL"+ assert_success+}++@test "SES: verify domain identity" {+ run aws_cmd ses verify-domain-identity --domain "$TEST_DOMAIN"+ assert_success+ token=$(json_get "$output" '.VerificationToken')+ [ -n "$token" ]+}++@test "SES: list identities" {+ run aws_cmd ses list-identities+ assert_success+ assert_output --partial "$TEST_EMAIL"+ assert_output --partial "$TEST_DOMAIN"+}++@test "SES: list identities by type EmailAddress" {+ run aws_cmd ses list-identities --identity-type EmailAddress+ assert_success+ assert_output --partial "$TEST_EMAIL"+ refute_output --partial "$TEST_DOMAIN"+}++@test "SES: get identity verification attributes" {+ run aws_cmd ses get-identity-verification-attributes --identities "$TEST_EMAIL"+ assert_success+ status=$(json_get "$output" ".VerificationAttributes.\"$TEST_EMAIL\".VerificationStatus")+ [ "$status" = "Success" ]+}++@test "SES: send email" {+ run aws_cmd ses send-email \+ --from "$TEST_EMAIL" \+ --destination "[email protected]" \+ --message "Subject={Data=Test Subject},Body={Text={Data=Hello from SES test}}"+ assert_success+ message_id=$(json_get "$output" '.MessageId')+ [ -n "$message_id" ]+}++@test "SES: send raw email" {+ local raw_file+ raw_file=$(mktemp)+ printf 'From: %s\r\nTo: [email protected]\r\nSubject: Raw Test\r\n\r\nRaw body' "$TEST_EMAIL" > "$raw_file"+ local raw_b64+ raw_b64=$(python3 -c "import base64,sys; print(base64.b64encode(open(sys.argv[1],'rb').read()).decode())" "$raw_file")++ run aws_cmd ses send-raw-email \+ --source "$TEST_EMAIL" \+ --destinations "[email protected]" \+ --raw-message "Data=$raw_b64"+ rm -f "$raw_file"++ assert_success+ message_id=$(json_get "$output" '.MessageId')+ [ -n "$message_id" ]+}++@test "SES: get send quota" {+ run aws_cmd ses get-send-quota+ assert_success+ max_24h=$(json_get "$output" '.Max24HourSend')+ max_rate=$(json_get "$output" '.MaxSendRate')+ [ "$(echo "$max_24h > 0" | bc)" -eq 1 ]+ [ "$(echo "$max_rate > 0" | bc)" -eq 1 ]+}++@test "SES: get send statistics" {+ run aws_cmd ses get-send-statistics+ assert_success+ # Should have SendDataPoints array (may be empty)+ run jq -e '.SendDataPoints' <<< "$output"+ assert_success+}++@test "SES: get account sending enabled" {+ run aws_cmd ses get-account-sending-enabled+ assert_success+ enabled=$(json_get "$output" '.Enabled')+ [ "$enabled" = "true" ]+}++@test "SES: get identity dkim attributes" {+ run aws_cmd ses get-identity-dkim-attributes --identities "$TEST_DOMAIN"+ assert_success+ # Should have DkimAttributes for our domain+ run jq -e ".DkimAttributes.\"$TEST_DOMAIN\"" <<< "$output"+ assert_success+}++@test "SES: set identity notification topic" {+ # This test checks that the command is accepted (may have parser quirks)+ run aws_cmd ses set-identity-notification-topic \+ --identity "$TEST_EMAIL" \+ --notification-type Bounce \+ --sns-topic arn:aws:sns:us-east-1:000000000000:bounce-topic+ # Accept success or known parser bug output+ [[ $status -eq 0 ]] || [[ "$output" == *"SetIdentityNotificationTopicResult"* ]]+}++@test "SES: get identity notification attributes" {+ run aws_cmd ses get-identity-notification-attributes --identities "$TEST_EMAIL"+ assert_success+}++@test "SES: delete identity email" {+ run aws_cmd ses delete-identity --identity "$TEST_EMAIL"+ # Accept success or known parser bug output+ [[ $status -eq 0 ]] || [[ "$output" == *"DeleteIdentityResult"* ]]+}++@test "SES: delete identity domain" {+ run aws_cmd ses delete-identity --identity "$TEST_DOMAIN"+ # Accept success or known parser bug output+ [[ $status -eq 0 ]] || [[ "$output" == *"DeleteIdentityResult"* ]]+}++@test "SES: verify identities deleted" {+ run aws_cmd ses list-identities+ assert_success+ refute_output --partial "$TEST_EMAIL"+ refute_output --partial "$TEST_DOMAIN"+}diff --git a/compatibility-tests/sdk-test-awscli/test/sns.bats b/compatibility-tests/sdk-test-awscli/test/sns.batsnew file mode 100644index 0000000000..95b2077f14--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/sns.bats@@ -0,0 +1,58 @@+#!/usr/bin/env bats+# SNS tests++setup() {+ load 'test_helper/common-setup'+ TOPIC_NAME="bats-test-topic-$(unique_name)"+ TOPIC_ARN=""+}++teardown() {+ if [ -n "$TOPIC_ARN" ]; then+ aws_cmd sns delete-topic --topic-arn "$TOPIC_ARN" >/dev/null 2>&1 || true+ fi+}++@test "SNS: create topic" {+ run aws_cmd sns create-topic --name "$TOPIC_NAME"+ assert_success+ TOPIC_ARN=$(json_get "$output" '.TopicArn')+ [ -n "$TOPIC_ARN" ]+}++@test "SNS: list topics" {+ out=$(aws_cmd sns create-topic --name "$TOPIC_NAME")+ TOPIC_ARN=$(json_get "$out" '.TopicArn')++ run aws_cmd sns list-topics+ assert_success+ found=$(echo "$output" | jq --arg name "$TOPIC_NAME" '.Topics | any(.TopicArn | contains($name))')+ [ "$found" = "true" ]+}++@test "SNS: get topic attributes" {+ out=$(aws_cmd sns create-topic --name "$TOPIC_NAME")+ TOPIC_ARN=$(json_get "$out" '.TopicArn')++ run aws_cmd sns get-topic-attributes --topic-arn "$TOPIC_ARN"+ assert_success+}++@test "SNS: publish message" {+ out=$(aws_cmd sns create-topic --name "$TOPIC_NAME")+ TOPIC_ARN=$(json_get "$out" '.TopicArn')++ run aws_cmd sns publish --topic-arn "$TOPIC_ARN" --message "hello-bats"+ assert_success+ msg_id=$(json_get "$output" '.MessageId')+ [ -n "$msg_id" ]+}++@test "SNS: delete topic" {+ out=$(aws_cmd sns create-topic --name "$TOPIC_NAME")+ TOPIC_ARN=$(json_get "$out" '.TopicArn')++ run aws_cmd sns delete-topic --topic-arn "$TOPIC_ARN"+ assert_success+ TOPIC_ARN=""+}diff --git a/compatibility-tests/sdk-test-awscli/test/sqs.bats b/compatibility-tests/sdk-test-awscli/test/sqs.batsnew file mode 100644index 0000000000..3ff9675dc1--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/sqs.bats@@ -0,0 +1,86 @@+#!/usr/bin/env bats+# SQS tests++setup() {+ load 'test_helper/common-setup'+ QUEUE_NAME="bats-test-queue-$(unique_name)"+ QUEUE_URL=""+}++teardown() {+ if [ -n "$QUEUE_URL" ]; then+ aws_cmd sqs delete-queue --queue-url "$QUEUE_URL" >/dev/null 2>&1 || true+ fi+}++@test "SQS: create queue" {+ run aws_cmd sqs create-queue --queue-name "$QUEUE_NAME"+ assert_success+ QUEUE_URL=$(json_get "$output" '.QueueUrl')+ [ -n "$QUEUE_URL" ]+}++@test "SQS: get queue URL" {+ out=$(aws_cmd sqs create-queue --queue-name "$QUEUE_NAME")+ QUEUE_URL=$(json_get "$out" '.QueueUrl')++ run aws_cmd sqs get-queue-url --queue-name "$QUEUE_NAME"+ assert_success+ got_url=$(json_get "$output" '.QueueUrl')+ [ "$got_url" = "$QUEUE_URL" ]+}++@test "SQS: list queues" {+ out=$(aws_cmd sqs create-queue --queue-name "$QUEUE_NAME")+ QUEUE_URL=$(json_get "$out" '.QueueUrl')++ run aws_cmd sqs list-queues --queue-name-prefix "bats-test"+ assert_success+ found=$(echo "$output" | jq --arg name "$QUEUE_NAME" '.QueueUrls | any(contains($name))')+ [ "$found" = "true" ]+}++@test "SQS: send and receive message" {+ out=$(aws_cmd sqs create-queue --queue-name "$QUEUE_NAME")+ QUEUE_URL=$(json_get "$out" '.QueueUrl')++ run aws_cmd sqs send-message --queue-url "$QUEUE_URL" --message-body "hello-bats"+ assert_success+ msg_id=$(json_get "$output" '.MessageId')+ [ -n "$msg_id" ]++ run aws_cmd sqs receive-message --queue-url "$QUEUE_URL" --max-number-of-messages 1 --wait-time-seconds 1+ assert_success+ body=$(json_get "$output" '.Messages[0].Body')+ [ "$body" = "hello-bats" ]+}++@test "SQS: delete message" {+ out=$(aws_cmd sqs create-queue --queue-name "$QUEUE_NAME")+ QUEUE_URL=$(json_get "$out" '.QueueUrl')++ aws_cmd sqs send-message --queue-url "$QUEUE_URL" --message-body "hello-bats" >/dev/null++ out=$(aws_cmd sqs receive-message --queue-url "$QUEUE_URL" --max-number-of-messages 1 --wait-time-seconds 1)+ receipt=$(json_get "$out" '.Messages[0].ReceiptHandle')++ run aws_cmd sqs delete-message --queue-url "$QUEUE_URL" --receipt-handle "$receipt"+ assert_success+}++@test "SQS: get queue attributes" {+ out=$(aws_cmd sqs create-queue --queue-name "$QUEUE_NAME")+ QUEUE_URL=$(json_get "$out" '.QueueUrl')++ run aws_cmd sqs get-queue-attributes --queue-url "$QUEUE_URL" --attribute-names ApproximateNumberOfMessages+ assert_success+}++@test "SQS: delete queue" {+ out=$(aws_cmd sqs create-queue --queue-name "$QUEUE_NAME")+ QUEUE_URL=$(json_get "$out" '.QueueUrl')++ run aws_cmd sqs delete-queue --queue-url "$QUEUE_URL"+ assert_success+ QUEUE_URL=""+}diff --git a/compatibility-tests/sdk-test-awscli/test/ssm.bats b/compatibility-tests/sdk-test-awscli/test/ssm.batsnew file mode 100644index 0000000000..c8b3d1f4f9--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/ssm.bats@@ -0,0 +1,73 @@+#!/usr/bin/env bats+# SSM Parameter Store tests++setup() {+ load 'test_helper/common-setup'+ PARAM_NAME="/bats-test/param-$(unique_name)"+}++teardown() {+ aws_cmd ssm delete-parameter --name "$PARAM_NAME" >/dev/null 2>&1 || true+}++@test "SSM: put parameter" {+ run aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "test-value" --type String+ assert_success+ version=$(json_get "$output" '.Version')+ [ "$version" -gt 0 ]+}++@test "SSM: get parameter" {+ aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "test-value" --type String >/dev/null++ run aws_cmd ssm get-parameter --name "$PARAM_NAME" --no-with-decryption+ assert_success+ value=$(json_get "$output" '.Parameter.Value')+ [ "$value" = "test-value" ]+}++@test "SSM: get parameters by path" {+ aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "test-value" --type String >/dev/null++ run aws_cmd ssm get-parameters-by-path --path "/bats-test"+ assert_success+ # Check that parameters array is not empty+ count=$(echo "$output" | jq '.Parameters | length')+ [ "$count" -gt 0 ]+}++@test "SSM: add and list tags" {+ aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "test-value" --type String >/dev/null++ run aws_cmd ssm add-tags-to-resource \+ --resource-type Parameter \+ --resource-id "$PARAM_NAME" \+ --tags Key=env,Value=test+ assert_success++ run aws_cmd ssm list-tags-for-resource \+ --resource-type Parameter \+ --resource-id "$PARAM_NAME"+ assert_success+ found=$(echo "$output" | jq '.TagList | any(.Key == "env" and .Value == "test")')+ [ "$found" = "true" ]+}++@test "SSM: overwrite parameter" {+ aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "original" --type String >/dev/null++ run aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "updated" --type String --overwrite+ assert_success++ run aws_cmd ssm get-parameter --name "$PARAM_NAME" --no-with-decryption+ assert_success+ value=$(json_get "$output" '.Parameter.Value')+ [ "$value" = "updated" ]+}++@test "SSM: delete parameter" {+ aws_cmd ssm put-parameter --name "$PARAM_NAME" --value "test-value" --type String >/dev/null++ run aws_cmd ssm delete-parameter --name "$PARAM_NAME"+ assert_success+}diff --git a/compatibility-tests/sdk-test-awscli/test/sts.bats b/compatibility-tests/sdk-test-awscli/test/sts.batsnew file mode 100644index 0000000000..5e89d39088--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/sts.bats@@ -0,0 +1,26 @@+#!/usr/bin/env bats+# STS tests++setup() {+ load 'test_helper/common-setup'+}++@test "STS: get caller identity" {+ run aws_cmd sts get-caller-identity+ assert_success+ account=$(json_get "$output" '.Account')+ [ -n "$account" ]+ user_id=$(json_get "$output" '.UserId')+ [ -n "$user_id" ]+}++@test "STS: assume role" {+ local role_arn="arn:aws:iam::000000000000:role/test-role"++ run aws_cmd sts assume-role \+ --role-arn "$role_arn" \+ --role-session-name "bats-test-session"+ assert_success+ access_key=$(json_get "$output" '.Credentials.AccessKeyId')+ [ -n "$access_key" ]+}diff --git a/compatibility-tests/sdk-test-awscli/test/test_helper/common-setup.bash b/compatibility-tests/sdk-test-awscli/test/test_helper/common-setup.bashnew file mode 100644index 0000000000..c1942ab617--- /dev/null+++ b/compatibility-tests/sdk-test-awscli/test/test_helper/common-setup.bash@@ -0,0 +1,52 @@+#!/usr/bin/env bash+# Common setup for bats tests++# Load bats-support and bats-assert+# Supports both local lib/ directory and BATS_LIB_PATH for Docker+_COMMON_SETUP_DIR="${BATS_TEST_DIRNAME}"+if [[ -d "${_COMMON_SETUP_DIR}/../../lib/bats-support" ]]; then+ load "${_COMMON_SETUP_DIR}/../../lib/bats-support/load.bash"+ load "${_COMMON_SETUP_DIR}/../../lib/bats-assert/load.bash"+elif [[ -n "${BATS_LIB_PATH}" ]]; then+ load "${BATS_LIB_PATH}/bats-support/load.bash"+ load "${BATS_LIB_PATH}/bats-assert/load.bash"+else+ echo "Error: Cannot find bats-support/bats-assert libraries" >&2+ exit 1+fi++# Environment configuration+export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"+export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"+export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"+export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"++# Helper function to run AWS CLI commands with endpoint+aws_cmd() {+ aws --endpoint-url "$FLOCI_ENDPOINT" --region "$AWS_DEFAULT_REGION" --output json "$@" 2>&1+}++# Generate unique name for test resources+unique_name() {+ local prefix="${1:-test}"+ echo "${prefix}-$(date +%s)-$$"+}++# Wait for DynamoDB table to exist+ddb_wait_table() {+ local table_name="$1"+ aws_cmd dynamodb wait table-exists --table-name "$table_name" >/dev/null 2>&1 || true+}++# Extract JSON value using jq+json_get() {+ local json="$1"+ local path="$2"+ echo "$json" | jq -r "$path" 2>/dev/null || echo ""+}++# Check if operation is unsupported+is_unsupported_operation() {+ local output="$1"+ [[ "$output" == *"(UnsupportedOperation)"* ]] || [[ "$output" == *" is not supported."* ]]+}diff --git a/compatibility-tests/sdk-test-go/Dockerfile b/compatibility-tests/sdk-test-go/Dockerfilenew file mode 100644index 0000000000..656721b4b6--- /dev/null+++ b/compatibility-tests/sdk-test-go/Dockerfile@@ -0,0 +1,21 @@+FROM golang:1.24-alpine+RUN apk add --no-cache ca-certificates git+WORKDIR /app++# Install gotestsum for JUnit XML output+RUN go install gotest.tools/gotestsum@latest++COPY go.mod go.sum ./+RUN go mod download && go mod verify++COPY . .++# Resolve test dependencies+RUN go mod tidy++ENV FLOCI_ENDPOINT=http://floci:4566+ENV AWS_ACCESS_KEY_ID=test+ENV AWS_SECRET_ACCESS_KEY=test+ENV AWS_DEFAULT_REGION=us-east-1++ENTRYPOINT ["gotestsum", "--format", "testname", "--junitfile", "/results/junit.xml", "./tests/..."]diff --git a/compatibility-tests/sdk-test-go/README.md b/compatibility-tests/sdk-test-go/README.mdnew file mode 100644index 0000000000..79a99ab52e--- /dev/null+++ b/compatibility-tests/sdk-test-go/README.md@@ -0,0 +1,57 @@+# sdk-test-go++Compatibility tests for [Floci](https://github.com/hectorvent/floci) using the **AWS SDK for Go v2 (1.41.4)**.++## 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` | PutMetricData, ListMetrics, GetMetricStatistics, alarms |++## Requirements++- Go 1.24+++## Running++```bash+# All groups+gotestsum --junitfile test-results.xml ./tests/...++# Specific tests+go test ./tests/ -run TestSsm++# Via just (from compatibility-tests/)+just test-go+```++## 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-go .+docker run --rm --network host floci-sdk-go++# Custom endpoint (macOS/Windows)+docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-go+```diff --git a/compatibility-tests/sdk-test-go/go.mod b/compatibility-tests/sdk-test-go/go.modnew file mode 100644index 0000000000..a742418875--- /dev/null+++ b/compatibility-tests/sdk-test-go/go.mod@@ -0,0 +1,40 @@+module floci-sdk-test-go++go 1.24++require (+ github.com/aws/aws-sdk-go-v2 v1.41.4+ github.com/aws/aws-sdk-go-v2/config v1.32.12+ github.com/aws/aws-sdk-go-v2/credentials v1.19.12+ github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.55.2+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.57.0+ github.com/aws/aws-sdk-go-v2/service/iam v1.53.6+ github.com/aws/aws-sdk-go-v2/service/kinesis v1.43.3+ github.com/aws/aws-sdk-go-v2/service/kms v1.50.3+ github.com/aws/aws-sdk-go-v2/service/lambda v1.88.3+ github.com/aws/aws-sdk-go-v2/service/s3 v1.97.1+ github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.41.4+ github.com/aws/aws-sdk-go-v2/service/sns v1.39.14+ github.com/aws/aws-sdk-go-v2/service/sqs v1.42.24+ github.com/aws/aws-sdk-go-v2/service/ssm v1.68.3+ github.com/aws/aws-sdk-go-v2/service/sts v1.41.9+ github.com/stretchr/testify v1.9.0+)++require (+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.7 // indirect+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20 // indirect+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.20 // indirect+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.20 // indirect+ github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 // indirect+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.21 // indirect+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 // indirect+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.12 // indirect+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.11.20 // indirect+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.20 // indirect+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.20 // indirect+ github.com/aws/aws-sdk-go-v2/service/signin v1.0.8 // indirect+ github.com/aws/aws-sdk-go-v2/service/sso v1.30.13 // indirect+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17 // indirect+ github.com/aws/smithy-go v1.24.2 // indirect+)diff --git a/compatibility-tests/sdk-test-go/go.sum b/compatibility-tests/sdk-test-go/go.sumnew file mode 100644index 0000000000..0be19d0167--- /dev/null+++ b/compatibility-tests/sdk-test-go/go.sum@@ -0,0 +1,61 @@+github.com/aws/aws-sdk-go-v2 v1.41.4 h1:10f50G7WyU02T56ox1wWXq+zTX9I1zxG46HYuG1hH/k=+github.com/aws/aws-sdk-go-v2 v1.41.4/go.mod h1:mwsPRE8ceUUpiTgF7QmQIJ7lgsKUPQOUl3o72QBrE1o=+github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.7 h1:3kGOqnh1pPeddVa/E37XNTaWJ8W6vrbYV9lJEkCnhuY=+github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.7/go.mod h1:lyw7GFp3qENLh7kwzf7iMzAxDn+NzjXEAGjKS2UOKqI=+github.com/aws/aws-sdk-go-v2/config v1.32.12 h1:O3csC7HUGn2895eNrLytOJQdoL2xyJy0iYXhoZ1OmP0=+github.com/aws/aws-sdk-go-v2/config v1.32.12/go.mod h1:96zTvoOFR4FURjI+/5wY1vc1ABceROO4lWgWJuxgy0g=+github.com/aws/aws-sdk-go-v2/credentials v1.19.12 h1:oqtA6v+y5fZg//tcTWahyN9PEn5eDU/Wpvc2+kJ4aY8=+github.com/aws/aws-sdk-go-v2/credentials v1.19.12/go.mod h1:U3R1RtSHx6NB0DvEQFGyf/0sbrpJrluENHdPy1j/3TE=+github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20 h1:zOgq3uezl5nznfoK3ODuqbhVg1JzAGDUhXOsU0IDCAo=+github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20/go.mod h1:z/MVwUARehy6GAg/yQ1GO2IMl0k++cu1ohP9zo887wE=+github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.20 h1:CNXO7mvgThFGqOFgbNAP2nol2qAWBOGfqR/7tQlvLmc=+github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.20/go.mod h1:oydPDJKcfMhgfcgBUZaG+toBbwy8yPWubJXBVERtI4o=+github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.20 h1:tN6W/hg+pkM+tf9XDkWUbDEjGLb+raoBMFsTodcoYKw=+github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.20/go.mod h1:YJ898MhD067hSHA6xYCx5ts/jEd8BSOLtQDL3iZsvbc=+github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 h1:qYQ4pzQ2Oz6WpQ8T3HvGHnZydA72MnLuFK9tJwmrbHw=+github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6/go.mod h1:O3h0IK87yXci+kg6flUKzJnWeziQUKciKrLjcatSNcY=+github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.21 h1:SwGMTMLIlvDNyhMteQ6r8IJSBPlRdXX5d4idhIGbkXA=+github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.21/go.mod h1:UUxgWxofmOdAMuqEsSppbDtGKLfR04HGsD0HXzvhI1k=+github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.55.2 h1:mleWBVIxwceEzyItUVoqMFiv6TmOP6ECPoN6WB/VWXc=+github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.55.2/go.mod h1:cMApt548kNgu87UsBTNWVv+fpzjbUTFRSFjD1688SBs=+github.com/aws/aws-sdk-go-v2/service/dynamodb v1.57.0 h1:lQmHdyl1ZzNxImTGMkzPTnXEYGd16GaiNU61J02gt5w=+github.com/aws/aws-sdk-go-v2/service/dynamodb v1.57.0/go.mod h1:dLREOeW66eVaaGIOi2ZlLHDgkR3nuJ02rd00j0YSlBE=+github.com/aws/aws-sdk-go-v2/service/iam v1.53.6 h1:GPQvvxy8+FDnD9xKYzGKJMjIm5xkVM5pd3bFgRldNSo=+github.com/aws/aws-sdk-go-v2/service/iam v1.53.6/go.mod h1:RJNVc52A0K41fCDJOnsCLeWJf8mwa0q30fM3CfE9U18=+github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 h1:5EniKhLZe4xzL7a+fU3C2tfUN4nWIqlLesfrjkuPFTY=+github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7/go.mod h1:x0nZssQ3qZSnIcePWLvcoFisRXJzcTVvYpAAdYX8+GI=+github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.12 h1:qtJZ70afD3ISKWnoX3xB0J2otEqu3LqicRcDBqsj0hQ=+github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.12/go.mod h1:v2pNpJbRNl4vEUWEh5ytQok0zACAKfdmKS51Hotc3pQ=+github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.11.20 h1:ru+seMuylHiNZlvgZei83eD8h37hRjm1XIMOEmcV0BU=+github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.11.20/go.mod h1:ihZMtPTKoX/ugQRHbui6zNdSgVYN1KY2Dgwb2d3hXlc=+github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.20 h1:2HvVAIq+YqgGotK6EkMf+KIEqTISmTYh5zLpYyeTo1Y=+github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.20/go.mod h1:V4X406Y666khGa8ghKmphma/7C0DAtEQYhkq9z4vpbk=+github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.20 h1:siU1A6xjUZ2N8zjTHSXFhB9L/2OY8Dqs0xXiLjF30jA=+github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.20/go.mod h1:4TLZCmVJDM3FOu5P5TJP0zOlu9zWgDWU7aUxWbr+rcw=+github.com/aws/aws-sdk-go-v2/service/kinesis v1.43.3 h1:EjAuQ4b2AIcQlhIjYcNsAa8vHyLA/2cirTQfvje1dts=+github.com/aws/aws-sdk-go-v2/service/kinesis v1.43.3/go.mod h1:woJGo0NqlqnyNDQJHE4dXNPm3WPZo0oSNe4QZLVHTu0=+github.com/aws/aws-sdk-go-v2/service/kms v1.50.3 h1:s/zDSG/a/Su9aX+v0Ld9cimUCdkr5FWPmBV8owaEbZY=+github.com/aws/aws-sdk-go-v2/service/kms v1.50.3/go.mod h1:/iSgiUor15ZuxFGQSTf3lA2FmKxFsQoc2tADOarQBSw=+github.com/aws/aws-sdk-go-v2/service/lambda v1.88.3 h1:VlSZQKfbHSjeKJaTpBfp3WVxPH7qa2SbneFtjT9vft8=+github.com/aws/aws-sdk-go-v2/service/lambda v1.88.3/go.mod h1:/C3/ZU9bR0pjMwIYivZVpdcj4HjvOfk+OTPiiXKoTSE=+github.com/aws/aws-sdk-go-v2/service/s3 v1.97.1 h1:csi9NLpFZXb9fxY7rS1xVzgPRGMt7MSNWeQ6eo247kE=+github.com/aws/aws-sdk-go-v2/service/s3 v1.97.1/go.mod h1:qXVal5H0ChqXP63t6jze5LmFalc7+ZE7wOdLtZ0LCP0=+github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.41.4 h1:9aZbO86sraeCIHHCpZhxwN9tnVy9POkSKzi4/TpT54A=+github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.41.4/go.mod h1:cxiXDhEzIq7Xx1BtmC4lGBK3SwAZ79+EUWiKawYHo14=+github.com/aws/aws-sdk-go-v2/service/signin v1.0.8 h1:0GFOLzEbOyZABS3PhYfBIx2rNBACYcKty+XGkTgw1ow=+github.com/aws/aws-sdk-go-v2/service/signin v1.0.8/go.mod h1:LXypKvk85AROkKhOG6/YEcHFPoX+prKTowKnVdcaIxE=+github.com/aws/aws-sdk-go-v2/service/sns v1.39.14 h1:p8WdWDh5AwSZdp19Haa3XMyPCICi9Z375a/Nu3IIEZY=+github.com/aws/aws-sdk-go-v2/service/sns v1.39.14/go.mod h1:NKVY7DER6VXHkt2I/ycmHakALNboi3Rqwt4eEf/1Cnk=+github.com/aws/aws-sdk-go-v2/service/sqs v1.42.24 h1:JP2wjWGmUp8lTCZb13Dv0Eciyc1jbO8pd0HZVMHFlrc=+github.com/aws/aws-sdk-go-v2/service/sqs v1.42.24/go.mod h1:Ql9ziDutk8ERAN9HMaYANCW3lop451ppebkxEJMLCTM=+github.com/aws/aws-sdk-go-v2/service/ssm v1.68.3 h1:bBoWhx8lsFLTXintRX64ZBXcmFZbGqUmaPUrjXECqIc=+github.com/aws/aws-sdk-go-v2/service/ssm v1.68.3/go.mod h1:rcRkKbUJ2437WuXdq9fbj+MjTudYWzY9Ct8kiBbN8a8=+github.com/aws/aws-sdk-go-v2/service/sso v1.30.13 h1:kiIDLZ005EcKomYYITtfsjn7dtOwHDOFy7IbPXKek2o=+github.com/aws/aws-sdk-go-v2/service/sso v1.30.13/go.mod h1:2h/xGEowcW/g38g06g3KpRWDlT+OTfxxI0o1KqayAB8=+github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17 h1:jzKAXIlhZhJbnYwHbvUQZEB8KfgAEuG0dc08Bkda7NU=+github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17/go.mod h1:Al9fFsXjv4KfbzQHGe6V4NZSZQXecFcvaIF4e70FoRA=+github.com/aws/aws-sdk-go-v2/service/sts v1.41.9 h1:Cng+OOwCHmFljXIxpEVXAGMnBia8MSU6Ch5i9PgBkcU=+github.com/aws/aws-sdk-go-v2/service/sts v1.41.9/go.mod h1:LrlIndBDdjA/EeXeyNBle+gyCwTlizzW5ycgWnvIxkk=+github.com/aws/smithy-go v1.24.2 h1:FzA3bu/nt/vDvmnkg+R8Xl46gmzEDam6mZ1hzmwXFng=+github.com/aws/smithy-go v1.24.2/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=diff --git a/compatibility-tests/sdk-test-go/internal/testutil/fixtures.go b/compatibility-tests/sdk-test-go/internal/testutil/fixtures.gonew file mode 100644index 0000000000..2806b72b85--- /dev/null+++ b/compatibility-tests/sdk-test-go/internal/testutil/fixtures.go@@ -0,0 +1,123 @@+// Package testutil provides shared test utilities and AWS client factories.+package testutil++import (+ "archive/zip"+ "bytes"+ "context"+ "os"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/config"+ "github.com/aws/aws-sdk-go-v2/credentials"+ "github.com/aws/aws-sdk-go-v2/service/cloudwatch"+ "github.com/aws/aws-sdk-go-v2/service/dynamodb"+ "github.com/aws/aws-sdk-go-v2/service/iam"+ "github.com/aws/aws-sdk-go-v2/service/kinesis"+ "github.com/aws/aws-sdk-go-v2/service/kms"+ "github.com/aws/aws-sdk-go-v2/service/lambda"+ "github.com/aws/aws-sdk-go-v2/service/s3"+ "github.com/aws/aws-sdk-go-v2/service/secretsmanager"+ "github.com/aws/aws-sdk-go-v2/service/sns"+ "github.com/aws/aws-sdk-go-v2/service/sqs"+ "github.com/aws/aws-sdk-go-v2/service/ssm"+ "github.com/aws/aws-sdk-go-v2/service/sts"+)++// Endpoint returns the Floci endpoint from environment or default.+func Endpoint() string {+ if ep := os.Getenv("FLOCI_ENDPOINT"); ep != "" {+ return ep+ }+ return "http://localhost:4566"+}++// Config returns an AWS config configured for the Floci endpoint.+func Config() aws.Config {+ ctx := context.Background()+ cfg, err := config.LoadDefaultConfig(ctx,+ config.WithRegion("us-east-1"),+ config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider("test", "test", "")),+ config.WithBaseEndpoint(Endpoint()),+ )+ if err != nil {+ panic("failed to create AWS config: " + err.Error())+ }+ return cfg+}++// SSMClient returns a new SSM client.+func SSMClient() *ssm.Client {+ return ssm.NewFromConfig(Config())+}++// SQSClient returns a new SQS client.+func SQSClient() *sqs.Client {+ return sqs.NewFromConfig(Config())+}++// SNSClient returns a new SNS client.+func SNSClient() *sns.Client {+ return sns.NewFromConfig(Config())+}++// S3Client returns a new S3 client with path-style addressing.+func S3Client() *s3.Client {+ return s3.NewFromConfig(Config(), func(o *s3.Options) {+ o.UsePathStyle = true+ })+}++// DynamoDBClient returns a new DynamoDB client.+func DynamoDBClient() *dynamodb.Client {+ return dynamodb.NewFromConfig(Config())+}++// LambdaClient returns a new Lambda client.+func LambdaClient() *lambda.Client {+ return lambda.NewFromConfig(Config())+}++// IAMClient returns a new IAM client.+func IAMClient() *iam.Client {+ return iam.NewFromConfig(Config())+}++// STSClient returns a new STS client.+func STSClient() *sts.Client {+ return sts.NewFromConfig(Config())+}++// SecretsManagerClient returns a new Secrets Manager client.+func SecretsManagerClient() *secretsmanager.Client {+ return secretsmanager.NewFromConfig(Config())+}++// KMSClient returns a new KMS client.+func KMSClient() *kms.Client {+ return kms.NewFromConfig(Config())+}++// KinesisClient returns a new Kinesis client.+func KinesisClient() *kinesis.Client {+ return kinesis.NewFromConfig(Config())+}++// CloudWatchClient returns a new CloudWatch client.+func CloudWatchClient() *cloudwatch.Client {+ return cloudwatch.NewFromConfig(Config())+}++// MinimalZip returns a minimal Lambda deployment zip with a Node.js handler.+func MinimalZip() []byte {+ code := `exports.handler = async (event) => {+ const name = (event && event.name) ? event.name : "World";+ return { statusCode: 200, body: JSON.stringify({ message: "Hello, " + name + "!" }) };+};`+ var buf bytes.Buffer+ w := zip.NewWriter(&buf)+ f, _ := w.Create("index.js")+ f.Write([]byte(code))+ w.Close()+ return buf.Bytes()+}diff --git a/compatibility-tests/sdk-test-go/tests/cloudwatch_test.go b/compatibility-tests/sdk-test-go/tests/cloudwatch_test.gonew file mode 100644index 0000000000..57cff41003--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/cloudwatch_test.go@@ -0,0 +1,110 @@+package tests++import (+ "context"+ "testing"+ "time"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/cloudwatch"+ cwtypes "github.com/aws/aws-sdk-go-v2/service/cloudwatch/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestCloudWatch(t *testing.T) {+ ctx := context.Background()+ svc := testutil.CloudWatchClient()+ namespace := "GoTest"++ t.Run("PutMetricData", func(t *testing.T) {+ _, err := svc.PutMetricData(ctx, &cloudwatch.PutMetricDataInput{+ Namespace: aws.String(namespace),+ MetricData: []cwtypes.MetricDatum{+ {+ MetricName: aws.String("RequestCount"),+ Value: aws.Float64(42),+ Unit: cwtypes.StandardUnitCount,+ Timestamp: aws.Time(time.Now()),+ },+ },+ })+ require.NoError(t, err)+ })++ t.Run("ListMetrics", func(t *testing.T) {+ r, err := svc.ListMetrics(ctx, &cloudwatch.ListMetricsInput{Namespace: aws.String(namespace)})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Metrics)+ })++ t.Run("GetMetricStatistics", func(t *testing.T) {+ now := time.Now()+ r, err := svc.GetMetricStatistics(ctx, &cloudwatch.GetMetricStatisticsInput{+ Namespace: aws.String(namespace),+ MetricName: aws.String("RequestCount"),+ StartTime: aws.Time(now.Add(-5 * time.Minute)),+ EndTime: aws.Time(now.Add(time.Minute)),+ Period: aws.Int32(60),+ Statistics: []cwtypes.Statistic{cwtypes.StatisticSum},+ })+ require.NoError(t, err)+ assert.NotEmpty(t, r.Datapoints)+ })++ t.Run("PutMetricDataWithStatisticValues", func(t *testing.T) {+ now := time.Now()+ namespace := "GoTestStatisticValues"++ // Put metric data with pre-calculated statistics+ _, err := svc.PutMetricData(ctx, &cloudwatch.PutMetricDataInput{+ Namespace: aws.String(namespace),+ MetricData: []cwtypes.MetricDatum{+ {+ MetricName: aws.String("AggregatedMetric"),+ StatisticValues: &cwtypes.StatisticSet{+ SampleCount: aws.Float64(5.0),+ Sum: aws.Float64(150.0),+ Minimum: aws.Float64(20.0),+ Maximum: aws.Float64(40.0),+ },+ Unit: cwtypes.StandardUnitCount,+ },+ },+ })+ require.NoError(t, err)++ // Query back the statistics+ r, err := svc.GetMetricStatistics(ctx, &cloudwatch.GetMetricStatisticsInput{+ Namespace: aws.String(namespace),+ MetricName: aws.String("AggregatedMetric"),+ StartTime: aws.Time(now.Add(-time.Hour)),+ EndTime: aws.Time(now.Add(time.Minute)),+ Period: aws.Int32(3600),+ Statistics: []cwtypes.Statistic{+ cwtypes.StatisticSum,+ cwtypes.StatisticAverage,+ cwtypes.StatisticMinimum,+ cwtypes.StatisticMaximum,+ cwtypes.StatisticSampleCount,+ },+ })++ require.NoError(t, err)+ assert.NotEmpty(t, r.Datapoints)++ dp := r.Datapoints[0]+ assert.NotNil(t, dp.Sum)+ assert.Equal(t, 150.0, *dp.Sum)+ assert.NotNil(t, dp.SampleCount)+ assert.Equal(t, float64(5), *dp.SampleCount)+ assert.NotNil(t, dp.Minimum)+ assert.Equal(t, 20.0, *dp.Minimum)+ assert.NotNil(t, dp.Maximum)+ assert.Equal(t, 40.0, *dp.Maximum)+ assert.NotNil(t, dp.Average)+ assert.Equal(t, 30.0, *dp.Average) // sum / sampleCount+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/dynamodb_test.go b/compatibility-tests/sdk-test-go/tests/dynamodb_test.gonew file mode 100644index 0000000000..103ba32a1a--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/dynamodb_test.go@@ -0,0 +1,129 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/dynamodb"+ ddbtypes "github.com/aws/aws-sdk-go-v2/service/dynamodb/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestDynamoDB(t *testing.T) {+ ctx := context.Background()+ svc := testutil.DynamoDBClient()+ table := "go-test-table"++ t.Cleanup(func() {+ svc.DeleteTable(ctx, &dynamodb.DeleteTableInput{TableName: aws.String(table)})+ })++ t.Run("CreateTable", func(t *testing.T) {+ _, err := svc.CreateTable(ctx, &dynamodb.CreateTableInput{+ TableName: aws.String(table),+ BillingMode: ddbtypes.BillingModePayPerRequest,+ AttributeDefinitions: []ddbtypes.AttributeDefinition{+ {AttributeName: aws.String("pk"), AttributeType: ddbtypes.ScalarAttributeTypeS},+ {AttributeName: aws.String("sk"), AttributeType: ddbtypes.ScalarAttributeTypeS},+ },+ KeySchema: []ddbtypes.KeySchemaElement{+ {AttributeName: aws.String("pk"), KeyType: ddbtypes.KeyTypeHash},+ {AttributeName: aws.String("sk"), KeyType: ddbtypes.KeyTypeRange},+ },+ })+ require.NoError(t, err)+ })++ t.Run("DescribeTable", func(t *testing.T) {+ r, err := svc.DescribeTable(ctx, &dynamodb.DescribeTableInput{TableName: aws.String(table)})+ require.NoError(t, err)+ assert.Equal(t, ddbtypes.TableStatusActive, r.Table.TableStatus)+ })++ t.Run("ListTables", func(t *testing.T) {+ r, err := svc.ListTables(ctx, &dynamodb.ListTablesInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.TableNames)+ })++ t.Run("PutItem", func(t *testing.T) {+ _, err := svc.PutItem(ctx, &dynamodb.PutItemInput{+ TableName: aws.String(table),+ Item: map[string]ddbtypes.AttributeValue{+ "pk": &ddbtypes.AttributeValueMemberS{Value: "user#1"},+ "sk": &ddbtypes.AttributeValueMemberS{Value: "profile"},+ "name": &ddbtypes.AttributeValueMemberS{Value: "Alice"},+ "age": &ddbtypes.AttributeValueMemberN{Value: "30"},+ },+ })+ require.NoError(t, err)+ })++ t.Run("GetItem", func(t *testing.T) {+ r, err := svc.GetItem(ctx, &dynamodb.GetItemInput{+ TableName: aws.String(table),+ Key: map[string]ddbtypes.AttributeValue{+ "pk": &ddbtypes.AttributeValueMemberS{Value: "user#1"},+ "sk": &ddbtypes.AttributeValueMemberS{Value: "profile"},+ },+ })+ require.NoError(t, err)+ attr, ok := r.Item["name"].(*ddbtypes.AttributeValueMemberS)+ require.True(t, ok)+ assert.Equal(t, "Alice", attr.Value)+ })++ t.Run("UpdateItem", func(t *testing.T) {+ _, err := svc.UpdateItem(ctx, &dynamodb.UpdateItemInput{+ TableName: aws.String(table),+ Key: map[string]ddbtypes.AttributeValue{+ "pk": &ddbtypes.AttributeValueMemberS{Value: "user#1"},+ "sk": &ddbtypes.AttributeValueMemberS{Value: "profile"},+ },+ UpdateExpression: aws.String("SET #n = :n"),+ ExpressionAttributeNames: map[string]string{"#n": "name"},+ ExpressionAttributeValues: map[string]ddbtypes.AttributeValue{+ ":n": &ddbtypes.AttributeValueMemberS{Value: "Alice Updated"},+ },+ })+ require.NoError(t, err)+ })++ t.Run("Query", func(t *testing.T) {+ r, err := svc.Query(ctx, &dynamodb.QueryInput{+ TableName: aws.String(table),+ KeyConditionExpression: aws.String("pk = :pk"),+ ExpressionAttributeValues: map[string]ddbtypes.AttributeValue{+ ":pk": &ddbtypes.AttributeValueMemberS{Value: "user#1"},+ },+ })+ require.NoError(t, err)+ assert.NotEmpty(t, r.Items)+ })++ t.Run("Scan", func(t *testing.T) {+ r, err := svc.Scan(ctx, &dynamodb.ScanInput{TableName: aws.String(table)})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Items)+ })++ t.Run("DeleteItem", func(t *testing.T) {+ _, err := svc.DeleteItem(ctx, &dynamodb.DeleteItemInput{+ TableName: aws.String(table),+ Key: map[string]ddbtypes.AttributeValue{+ "pk": &ddbtypes.AttributeValueMemberS{Value: "user#1"},+ "sk": &ddbtypes.AttributeValueMemberS{Value: "profile"},+ },+ })+ require.NoError(t, err)+ })++ t.Run("DeleteTable", func(t *testing.T) {+ _, err := svc.DeleteTable(ctx, &dynamodb.DeleteTableInput{TableName: aws.String(table)})+ require.NoError(t, err)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/iam_test.go b/compatibility-tests/sdk-test-go/tests/iam_test.gonew file mode 100644index 0000000000..f97619b8b8--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/iam_test.go@@ -0,0 +1,49 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/iam"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestIAM(t *testing.T) {+ ctx := context.Background()+ svc := testutil.IAMClient()+ roleName := "go-test-role"+ assumePolicy := `{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}`++ t.Cleanup(func() {+ svc.DeleteRole(ctx, &iam.DeleteRoleInput{RoleName: aws.String(roleName)})+ })++ t.Run("CreateRole", func(t *testing.T) {+ _, err := svc.CreateRole(ctx, &iam.CreateRoleInput{+ RoleName: aws.String(roleName),+ AssumeRolePolicyDocument: aws.String(assumePolicy),+ })+ require.NoError(t, err)+ })++ t.Run("GetRole", func(t *testing.T) {+ r, err := svc.GetRole(ctx, &iam.GetRoleInput{RoleName: aws.String(roleName)})+ require.NoError(t, err)+ assert.Equal(t, roleName, aws.ToString(r.Role.RoleName))+ })++ t.Run("ListRoles", func(t *testing.T) {+ r, err := svc.ListRoles(ctx, &iam.ListRolesInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Roles)+ })++ t.Run("DeleteRole", func(t *testing.T) {+ _, err := svc.DeleteRole(ctx, &iam.DeleteRoleInput{RoleName: aws.String(roleName)})+ require.NoError(t, err)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/kinesis_test.go b/compatibility-tests/sdk-test-go/tests/kinesis_test.gonew file mode 100644index 0000000000..f7f53293f7--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/kinesis_test.go@@ -0,0 +1,97 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/kinesis"+ kinesistypes "github.com/aws/aws-sdk-go-v2/service/kinesis/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestKinesis(t *testing.T) {+ ctx := context.Background()+ svc := testutil.KinesisClient()+ streamName := "go-test-stream"++ t.Cleanup(func() {+ svc.DeleteStream(ctx, &kinesis.DeleteStreamInput{StreamName: aws.String(streamName)})+ })++ t.Run("CreateStream", func(t *testing.T) {+ _, err := svc.CreateStream(ctx, &kinesis.CreateStreamInput{+ StreamName: aws.String(streamName),+ ShardCount: aws.Int32(1),+ })+ require.NoError(t, err)+ })++ t.Run("ListStreams", func(t *testing.T) {+ r, err := svc.ListStreams(ctx, &kinesis.ListStreamsInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.StreamNames)+ })++ var shardID string++ t.Run("DescribeStream", func(t *testing.T) {+ r, err := svc.DescribeStream(ctx, &kinesis.DescribeStreamInput{StreamName: aws.String(streamName)})+ require.NoError(t, err)+ assert.Equal(t, kinesistypes.StreamStatusActive, r.StreamDescription.StreamStatus)+ if len(r.StreamDescription.Shards) > 0 {+ shardID = aws.ToString(r.StreamDescription.Shards[0].ShardId)+ }+ })++ t.Run("PutRecord", func(t *testing.T) {+ r, err := svc.PutRecord(ctx, &kinesis.PutRecordInput{+ StreamName: aws.String(streamName),+ Data: []byte(`{"event":"go-test"}`),+ PartitionKey: aws.String("pk1"),+ })+ require.NoError(t, err)+ assert.NotEmpty(t, aws.ToString(r.ShardId))+ })++ t.Run("GetShardIterator", func(t *testing.T) {+ if shardID == "" {+ t.Skip("No shard ID from DescribeStream")+ }+ r, err := svc.GetShardIterator(ctx, &kinesis.GetShardIteratorInput{+ StreamName: aws.String(streamName),+ ShardId: aws.String(shardID),+ ShardIteratorType: kinesistypes.ShardIteratorTypeTrimHorizon,+ })+ require.NoError(t, err)+ assert.NotEmpty(t, aws.ToString(r.ShardIterator))+ })++ t.Run("GetRecords", func(t *testing.T) {+ if shardID == "" {+ t.Skip("No shard ID from DescribeStream")+ }+ // Get fresh iterator+ iter, err := svc.GetShardIterator(ctx, &kinesis.GetShardIteratorInput{+ StreamName: aws.String(streamName),+ ShardId: aws.String(shardID),+ ShardIteratorType: kinesistypes.ShardIteratorTypeTrimHorizon,+ })+ require.NoError(t, err)++ r, err := svc.GetRecords(ctx, &kinesis.GetRecordsInput{+ ShardIterator: iter.ShardIterator,+ Limit: aws.Int32(10),+ })+ require.NoError(t, err)+ assert.NotEmpty(t, r.Records)+ })++ t.Run("DeleteStream", func(t *testing.T) {+ _, err := svc.DeleteStream(ctx, &kinesis.DeleteStreamInput{StreamName: aws.String(streamName)})+ require.NoError(t, err)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/kms_test.go b/compatibility-tests/sdk-test-go/tests/kms_test.gonew file mode 100644index 0000000000..09c5d65ac7--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/kms_test.go@@ -0,0 +1,76 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/kms"+ kmstypes "github.com/aws/aws-sdk-go-v2/service/kms/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestKMS(t *testing.T) {+ ctx := context.Background()+ svc := testutil.KMSClient()+ var keyID string++ // Note: KMS keys cannot be deleted immediately, so we don't clean up++ t.Run("CreateKey", func(t *testing.T) {+ r, err := svc.CreateKey(ctx, &kms.CreateKeyInput{+ Description: aws.String("go-test key"),+ })+ require.NoError(t, err)+ keyID = aws.ToString(r.KeyMetadata.KeyId)+ assert.NotEmpty(t, keyID)+ })++ t.Run("DescribeKey", func(t *testing.T) {+ r, err := svc.DescribeKey(ctx, &kms.DescribeKeyInput{KeyId: aws.String(keyID)})+ require.NoError(t, err)+ assert.Equal(t, keyID, aws.ToString(r.KeyMetadata.KeyId))+ })++ t.Run("ListKeys", func(t *testing.T) {+ r, err := svc.ListKeys(ctx, &kms.ListKeysInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Keys)+ })++ var ciphertext []byte++ t.Run("Encrypt", func(t *testing.T) {+ r, err := svc.Encrypt(ctx, &kms.EncryptInput{+ KeyId: aws.String(keyID),+ Plaintext: []byte("hello-go-test"),+ })+ require.NoError(t, err)+ ciphertext = r.CiphertextBlob+ assert.NotEmpty(t, ciphertext)+ })++ t.Run("Decrypt", func(t *testing.T) {+ if len(ciphertext) == 0 {+ t.Skip("No ciphertext from Encrypt")+ }+ r, err := svc.Decrypt(ctx, &kms.DecryptInput{+ CiphertextBlob: ciphertext,+ KeyId: aws.String(keyID),+ })+ require.NoError(t, err)+ assert.Equal(t, "hello-go-test", string(r.Plaintext))+ })++ t.Run("GenerateDataKey", func(t *testing.T) {+ r, err := svc.GenerateDataKey(ctx, &kms.GenerateDataKeyInput{+ KeyId: aws.String(keyID),+ KeySpec: kmstypes.DataKeySpecAes256,+ })+ require.NoError(t, err)+ assert.Len(t, r.Plaintext, 32)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/lambda_test.go b/compatibility-tests/sdk-test-go/tests/lambda_test.gonew file mode 100644index 0000000000..2046c1eff8--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/lambda_test.go@@ -0,0 +1,65 @@+package tests++import (+ "context"+ "encoding/json"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/lambda"+ lambdatypes "github.com/aws/aws-sdk-go-v2/service/lambda/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestLambda(t *testing.T) {+ ctx := context.Background()+ svc := testutil.LambdaClient()+ funcName := "go-test-func"+ roleARN := "arn:aws:iam::000000000000:role/test-role"++ t.Cleanup(func() {+ svc.DeleteFunction(ctx, &lambda.DeleteFunctionInput{FunctionName: aws.String(funcName)})+ })++ t.Run("CreateFunction", func(t *testing.T) {+ _, err := svc.CreateFunction(ctx, &lambda.CreateFunctionInput{+ FunctionName: aws.String(funcName),+ Runtime: lambdatypes.RuntimeNodejs18x,+ Role: aws.String(roleARN),+ Handler: aws.String("index.handler"),+ Code: &lambdatypes.FunctionCode{ZipFile: testutil.MinimalZip()},+ })+ require.NoError(t, err)+ })++ t.Run("GetFunction", func(t *testing.T) {+ r, err := svc.GetFunction(ctx, &lambda.GetFunctionInput{FunctionName: aws.String(funcName)})+ require.NoError(t, err)+ assert.Equal(t, funcName, aws.ToString(r.Configuration.FunctionName))+ })++ t.Run("ListFunctions", func(t *testing.T) {+ r, err := svc.ListFunctions(ctx, &lambda.ListFunctionsInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Functions)+ })++ t.Run("Invoke", func(t *testing.T) {+ payload, _ := json.Marshal(map[string]string{"name": "GoTest"})+ r, err := svc.Invoke(ctx, &lambda.InvokeInput{+ FunctionName: aws.String(funcName),+ Payload: payload,+ })+ require.NoError(t, err)+ assert.Equal(t, int32(200), r.StatusCode)+ assert.Nil(t, r.FunctionError)+ })++ t.Run("DeleteFunction", func(t *testing.T) {+ _, err := svc.DeleteFunction(ctx, &lambda.DeleteFunctionInput{FunctionName: aws.String(funcName)})+ require.NoError(t, err)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/s3_cors_test.go b/compatibility-tests/sdk-test-go/tests/s3_cors_test.gonew file mode 100644index 0000000000..0966964e71--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/s3_cors_test.go@@ -0,0 +1,245 @@+package tests++import (+ "context"+ "fmt"+ "net/http"+ "strings"+ "testing"+ "time"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/s3"+ s3types "github.com/aws/aws-sdk-go-v2/service/s3/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestS3CORS(t *testing.T) {+ ctx := context.Background()+ svc := testutil.S3Client()+ baseURL := testutil.Endpoint()+ bucket := fmt.Sprintf("go-cors-test-%d", time.Now().UnixMilli())+ objectKey := "cors-test.txt"++ // raw sends a raw HTTP request and returns the status code and response headers.+ raw := func(method, path string, headers map[string]string) (int, http.Header, error) {+ rawURL := baseURL + "/" + bucket + path+ req, err := http.NewRequest(method, rawURL, nil)+ if err != nil {+ return 0, nil, err+ }+ for k, v := range headers {+ req.Header.Set(k, v)+ }+ client := &http.Client{+ CheckRedirect: func(req *http.Request, via []*http.Request) error {+ return http.ErrUseLastResponse+ },+ }+ resp, err := client.Do(req)+ if err != nil {+ return 0, nil, err+ }+ defer resp.Body.Close()+ return resp.StatusCode, resp.Header, nil+ }++ varyHasOrigin := func(vary string) bool {+ for _, tok := range strings.Split(vary, ",") {+ if strings.EqualFold(strings.TrimSpace(tok), "origin") {+ return true+ }+ }+ return false+ }++ t.Cleanup(func() {+ svc.DeleteBucketCors(ctx, &s3.DeleteBucketCorsInput{Bucket: aws.String(bucket)})+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(objectKey)})+ svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucket)})+ })++ // Setup+ t.Run("Setup", func(t *testing.T) {+ _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)++ _, err = svc.PutObject(ctx, &s3.PutObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(objectKey),+ Body: strings.NewReader("hello cors"),+ ContentType: aws.String("text/plain"),+ })+ require.NoError(t, err)+ })++ t.Run("PreflightWithoutConfig_Returns403", func(t *testing.T) {+ status, _, err := raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "http://localhost:3000",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 403, status)+ })++ t.Run("WildcardCORS", func(t *testing.T) {+ maxAge := int32(3000)+ _, err := svc.PutBucketCors(ctx, &s3.PutBucketCorsInput{+ Bucket: aws.String(bucket),+ CORSConfiguration: &s3types.CORSConfiguration{+ CORSRules: []s3types.CORSRule{+ {+ AllowedOrigins: []string{"*"},+ AllowedMethods: []string{"GET", "PUT", "POST", "DELETE", "HEAD"},+ AllowedHeaders: []string{"*"},+ ExposeHeaders: []string{"ETag"},+ MaxAgeSeconds: &maxAge,+ },+ },+ },+ })+ require.NoError(t, err)++ // Preflight+ status, hdrs, err := raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "http://localhost:3000",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 200, status)+ assert.Equal(t, "*", hdrs.Get("Access-Control-Allow-Origin"))+ assert.Equal(t, "3000", hdrs.Get("Access-Control-Max-Age"))+ assert.Contains(t, strings.ToUpper(hdrs.Get("Access-Control-Allow-Methods")), "GET")++ // Actual GET with Origin+ status, hdrs, err = raw("GET", "/"+objectKey, map[string]string{"Origin": "http://localhost:3000"})+ require.NoError(t, err)+ assert.Equal(t, "*", hdrs.Get("Access-Control-Allow-Origin"))+ assert.True(t, varyHasOrigin(hdrs.Get("Vary")))+ assert.Contains(t, hdrs.Get("Access-Control-Expose-Headers"), "ETag")++ // GET without Origin - no CORS headers+ _, hdrs, err = raw("GET", "/"+objectKey, nil)+ require.NoError(t, err)+ assert.Empty(t, hdrs.Get("Access-Control-Allow-Origin"))++ // OPTIONS without Origin - no CORS headers+ _, hdrs, err = raw("OPTIONS", "/"+objectKey, nil)+ require.NoError(t, err)+ assert.Empty(t, hdrs.Get("Access-Control-Allow-Origin"))+ })++ t.Run("SpecificOriginCORS", func(t *testing.T) {+ maxAge := int32(600)+ _, err := svc.PutBucketCors(ctx, &s3.PutBucketCorsInput{+ Bucket: aws.String(bucket),+ CORSConfiguration: &s3types.CORSConfiguration{+ CORSRules: []s3types.CORSRule{+ {+ AllowedOrigins: []string{"https://example.com"},+ AllowedMethods: []string{"GET", "PUT"},+ AllowedHeaders: []string{"Content-Type", "Authorization"},+ ExposeHeaders: []string{"ETag", "x-amz-request-id"},+ MaxAgeSeconds: &maxAge,+ },+ },+ },+ })+ require.NoError(t, err)++ // Matching origin+ status, hdrs, err := raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "https://example.com",+ "Access-Control-Request-Method": "GET",+ "Access-Control-Request-Headers": "Content-Type",+ })+ require.NoError(t, err)+ assert.Equal(t, 200, status)+ assert.Equal(t, "https://example.com", hdrs.Get("Access-Control-Allow-Origin"))+ assert.Equal(t, "600", hdrs.Get("Access-Control-Max-Age"))++ // Non-matching origin+ status, _, err = raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "https://attacker.evil.com",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 403, status)++ // Non-matching method+ status, _, err = raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "https://example.com",+ "Access-Control-Request-Method": "DELETE",+ })+ require.NoError(t, err)+ assert.Equal(t, 403, status)++ // Actual GET matching+ _, hdrs, err = raw("GET", "/"+objectKey, map[string]string{"Origin": "https://example.com"})+ require.NoError(t, err)+ assert.Equal(t, "https://example.com", hdrs.Get("Access-Control-Allow-Origin"))++ // Actual GET non-matching+ _, hdrs, err = raw("GET", "/"+objectKey, map[string]string{"Origin": "https://not-allowed.com"})+ require.NoError(t, err)+ assert.Empty(t, hdrs.Get("Access-Control-Allow-Origin"))+ })++ t.Run("DeleteBucketCors_PreflightReturns403", func(t *testing.T) {+ _, err := svc.DeleteBucketCors(ctx, &s3.DeleteBucketCorsInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)++ status, _, err := raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "http://localhost:3000",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 403, status)+ })++ t.Run("SubdomainWildcardCORS", func(t *testing.T) {+ maxAge := int32(120)+ _, err := svc.PutBucketCors(ctx, &s3.PutBucketCorsInput{+ Bucket: aws.String(bucket),+ CORSConfiguration: &s3types.CORSConfiguration{+ CORSRules: []s3types.CORSRule{+ {+ AllowedOrigins: []string{"http://*.example.com"},+ AllowedMethods: []string{"GET"},+ AllowedHeaders: []string{"*"},+ MaxAgeSeconds: &maxAge,+ },+ },+ },+ })+ require.NoError(t, err)++ // Matching subdomain+ status, hdrs, err := raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "http://app.example.com",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 200, status)+ assert.Equal(t, "http://app.example.com", hdrs.Get("Access-Control-Allow-Origin"))++ // Wrong scheme (https instead of http)+ status, _, err = raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "https://app.example.com",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 403, status)++ // Different domain+ status, _, err = raw("OPTIONS", "/"+objectKey, map[string]string{+ "Origin": "http://app.other.com",+ "Access-Control-Request-Method": "GET",+ })+ require.NoError(t, err)+ assert.Equal(t, 403, status)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/s3_notifications_test.go b/compatibility-tests/sdk-test-go/tests/s3_notifications_test.gonew file mode 100644index 0000000000..f2c75a75c1--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/s3_notifications_test.go@@ -0,0 +1,116 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/s3"+ s3types "github.com/aws/aws-sdk-go-v2/service/s3/types"+ "github.com/aws/aws-sdk-go-v2/service/sns"+ "github.com/aws/aws-sdk-go-v2/service/sqs"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestS3Notifications(t *testing.T) {+ ctx := context.Background()+ s3Svc := testutil.S3Client()+ sqsSvc := testutil.SQSClient()+ snsSvc := testutil.SNSClient()++ queueName := "s3-notif-filter-queue"+ topicName := "s3-notif-filter-topic"+ bucketName := "s3-notif-filter-bucket"+ queueArn := "arn:aws:sqs:us-east-1:000000000000:" + queueName+ var topicArn string+ var queueURL string++ t.Cleanup(func() {+ s3Svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucketName)})+ if queueURL != "" {+ sqsSvc.DeleteQueue(ctx, &sqs.DeleteQueueInput{QueueUrl: aws.String(queueURL)})+ }+ if topicArn != "" {+ snsSvc.DeleteTopic(ctx, &sns.DeleteTopicInput{TopicArn: aws.String(topicArn)})+ }+ })++ t.Run("Setup", func(t *testing.T) {+ // Create SQS queue+ qr, err := sqsSvc.CreateQueue(ctx, &sqs.CreateQueueInput{QueueName: aws.String(queueName)})+ require.NoError(t, err)+ queueURL = aws.ToString(qr.QueueUrl)++ // Create SNS topic+ tr, err := snsSvc.CreateTopic(ctx, &sns.CreateTopicInput{Name: aws.String(topicName)})+ require.NoError(t, err)+ topicArn = aws.ToString(tr.TopicArn)++ // Create S3 bucket+ _, err = s3Svc.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucketName)})+ require.NoError(t, err)+ })++ t.Run("PutBucketNotificationConfiguration", func(t *testing.T) {+ _, err := s3Svc.PutBucketNotificationConfiguration(ctx, &s3.PutBucketNotificationConfigurationInput{+ Bucket: aws.String(bucketName),+ NotificationConfiguration: &s3types.NotificationConfiguration{+ QueueConfigurations: []s3types.QueueConfiguration{+ {+ Id: aws.String("sqs-filtered"),+ QueueArn: aws.String(queueArn),+ Events: []s3types.Event{s3types.EventS3ObjectCreated},+ Filter: &s3types.NotificationConfigurationFilter{+ Key: &s3types.S3KeyFilter{+ FilterRules: []s3types.FilterRule{+ {Name: s3types.FilterRuleNamePrefix, Value: aws.String("incoming/")},+ {Name: s3types.FilterRuleNameSuffix, Value: aws.String(".csv")},+ },+ },+ },+ },+ },+ TopicConfigurations: []s3types.TopicConfiguration{+ {+ Id: aws.String("sns-filtered"),+ TopicArn: aws.String(topicArn),+ Events: []s3types.Event{s3types.EventS3ObjectRemoved},+ Filter: &s3types.NotificationConfigurationFilter{+ Key: &s3types.S3KeyFilter{+ FilterRules: []s3types.FilterRule{+ {Name: s3types.FilterRuleNamePrefix, Value: aws.String("")},+ {Name: s3types.FilterRuleNameSuffix, Value: aws.String(".txt")},+ },+ },+ },+ },+ },+ },+ })+ require.NoError(t, err)+ })++ t.Run("GetBucketNotificationConfiguration", func(t *testing.T) {+ r, err := s3Svc.GetBucketNotificationConfiguration(ctx, &s3.GetBucketNotificationConfigurationInput{+ Bucket: aws.String(bucketName),+ })+ require.NoError(t, err)++ // Assert queue config+ require.NotEmpty(t, r.QueueConfigurations)+ assert.Equal(t, queueArn, aws.ToString(r.QueueConfigurations[0].QueueArn))+ require.NotNil(t, r.QueueConfigurations[0].Filter)+ require.NotNil(t, r.QueueConfigurations[0].Filter.Key)+ assert.Len(t, r.QueueConfigurations[0].Filter.Key.FilterRules, 2)++ // Assert topic config+ require.NotEmpty(t, r.TopicConfigurations)+ assert.Equal(t, topicArn, aws.ToString(r.TopicConfigurations[0].TopicArn))+ require.NotNil(t, r.TopicConfigurations[0].Filter)+ require.NotNil(t, r.TopicConfigurations[0].Filter.Key)+ assert.Len(t, r.TopicConfigurations[0].Filter.Key.FilterRules, 2)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/s3_test.go b/compatibility-tests/sdk-test-go/tests/s3_test.gonew file mode 100644index 0000000000..a33d943bff--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/s3_test.go@@ -0,0 +1,299 @@+package tests++import (+ "bytes"+ "context"+ "net/url"+ "strings"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/s3"+ s3types "github.com/aws/aws-sdk-go-v2/service/s3/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestS3(t *testing.T) {+ ctx := context.Background()+ svc := testutil.S3Client()+ bucket := "go-test-bucket"+ key := "test-object.json"+ content := `{"source":"go-test"}`++ // Cleanup at end+ t.Cleanup(func() {+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(key)})+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String("copy-" + key)})+ svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucket)})+ })++ t.Run("CreateBucket", func(t *testing.T) {+ _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)+ })++ t.Run("ListBuckets", func(t *testing.T) {+ r, err := svc.ListBuckets(ctx, &s3.ListBucketsInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Buckets)+ })++ t.Run("PutObject", func(t *testing.T) {+ _, err := svc.PutObject(ctx, &s3.PutObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(key),+ Body: strings.NewReader(content),+ ContentType: aws.String("application/json"),+ })+ require.NoError(t, err)+ })++ t.Run("GetObject", func(t *testing.T) {+ out, err := svc.GetObject(ctx, &s3.GetObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(key),+ })+ require.NoError(t, err)+ defer out.Body.Close()++ var buf bytes.Buffer+ buf.ReadFrom(out.Body)+ assert.Equal(t, content, buf.String())+ })++ t.Run("HeadObject", func(t *testing.T) {+ head, err := svc.HeadObject(ctx, &s3.HeadObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(key),+ })+ require.NoError(t, err)+ assert.NotNil(t, head.LastModified)+ assert.Zero(t, head.LastModified.Nanosecond(), "LastModified should have second precision")+ })++ t.Run("ListObjectsV2", func(t *testing.T) {+ r, err := svc.ListObjectsV2(ctx, &s3.ListObjectsV2Input{Bucket: aws.String(bucket)})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Contents)+ })++ t.Run("CopyObject", func(t *testing.T) {+ _, err := svc.CopyObject(ctx, &s3.CopyObjectInput{+ Bucket: aws.String(bucket),+ CopySource: aws.String(bucket + "/" + key),+ Key: aws.String("copy-" + key),+ })+ require.NoError(t, err)+ })++ t.Run("DeleteObject", func(t *testing.T) {+ _, err := svc.DeleteObject(ctx, &s3.DeleteObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(key),+ })+ require.NoError(t, err)+ })++ t.Run("DeleteBucket", func(t *testing.T) {+ // First delete the copy+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String("copy-" + key),+ })++ _, err := svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)+ })+}++func TestS3LocationConstraint(t *testing.T) {+ ctx := context.Background()+ svc := testutil.S3Client()+ euBucket := "go-test-bucket-eu"++ t.Cleanup(func() {+ svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(euBucket)})+ })++ t.Run("CreateBucketWithLocationConstraint", func(t *testing.T) {+ _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{+ Bucket: aws.String(euBucket),+ CreateBucketConfiguration: &s3types.CreateBucketConfiguration{+ LocationConstraint: s3types.BucketLocationConstraintEuCentral1,+ },+ })+ require.NoError(t, err)+ })++ t.Run("GetBucketLocation", func(t *testing.T) {+ loc, err := svc.GetBucketLocation(ctx, &s3.GetBucketLocationInput{Bucket: aws.String(euBucket)})+ require.NoError(t, err)+ assert.Equal(t, "eu-central-1", string(loc.LocationConstraint))+ })+}++// TestS3NonASCIIKey tests CopyObject with non-ASCII (multibyte) keys.+// Regression test for issue #93.+func TestS3NonASCIIKey(t *testing.T) {+ ctx := context.Background()+ svc := testutil.S3Client()+ bucket := "go-test-non-ascii"+ srcKey := "src/テスト画像.png"+ dstKey := "dst/テスト画像.png"++ t.Cleanup(func() {+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(srcKey)})+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(dstKey)})+ svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucket)})+ })++ // Setup+ _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)++ _, err = svc.PutObject(ctx, &s3.PutObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(srcKey),+ Body: strings.NewReader("non-ascii content"),+ })+ require.NoError(t, err)++ // Copy with non-ASCII key+ _, err = svc.CopyObject(ctx, &s3.CopyObjectInput{+ Bucket: aws.String(bucket),+ CopySource: aws.String(bucket + "/" + url.PathEscape(srcKey)),+ Key: aws.String(dstKey),+ })+ require.NoError(t, err, "CopyObject with non-ASCII key should succeed")++ // Verify the copy exists+ _, err = svc.HeadObject(ctx, &s3.HeadObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(dstKey),+ })+ require.NoError(t, err, "copied object should exist")+}++// TestS3MultipartCopyNonASCIIKey exercises UploadPartCopy with a URL-encoded+// non-ASCII source key to cover the multipart copy code path.+func TestS3MultipartCopyNonASCIIKey(t *testing.T) {+ ctx := context.Background()+ svc := testutil.S3Client()+ bucket := "go-test-multipart-copy-non-ascii"+ srcKey := "src/テスト画像.bin"+ dstKey := "dst/テスト画像.bin"+ content := bytes.Repeat([]byte("a"), 6*1024*1024)+ var uploadID string++ t.Cleanup(func() {+ if uploadID != "" {+ svc.AbortMultipartUpload(ctx, &s3.AbortMultipartUploadInput{+ Bucket: aws.String(bucket),+ Key: aws.String(dstKey),+ UploadId: aws.String(uploadID),+ })+ }+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(srcKey)})+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(dstKey)})+ svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucket)})+ })++ _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)++ _, err = svc.PutObject(ctx, &s3.PutObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(srcKey),+ Body: bytes.NewReader(content),+ })+ require.NoError(t, err)++ createOut, err := svc.CreateMultipartUpload(ctx, &s3.CreateMultipartUploadInput{+ Bucket: aws.String(bucket),+ Key: aws.String(dstKey),+ })+ require.NoError(t, err)+ uploadID = aws.ToString(createOut.UploadId)+ require.NotEmpty(t, uploadID)++ partOut, err := svc.UploadPartCopy(ctx, &s3.UploadPartCopyInput{+ Bucket: aws.String(bucket),+ Key: aws.String(dstKey),+ UploadId: aws.String(uploadID),+ PartNumber: aws.Int32(1),+ CopySource: aws.String(bucket + "/" + url.PathEscape(srcKey)),+ })+ require.NoError(t, err, "UploadPartCopy with non-ASCII key should succeed")+ require.NotNil(t, partOut.CopyPartResult)+ require.NotNil(t, partOut.CopyPartResult.ETag)++ _, err = svc.CompleteMultipartUpload(ctx, &s3.CompleteMultipartUploadInput{+ Bucket: aws.String(bucket),+ Key: aws.String(dstKey),+ UploadId: aws.String(uploadID),+ MultipartUpload: &s3types.CompletedMultipartUpload{+ Parts: []s3types.CompletedPart{+ {+ ETag: partOut.CopyPartResult.ETag,+ PartNumber: aws.Int32(1),+ },+ },+ },+ })+ require.NoError(t, err)+ uploadID = ""++ getOut, err := svc.GetObject(ctx, &s3.GetObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(dstKey),+ })+ require.NoError(t, err)+ defer getOut.Body.Close()++ var copied bytes.Buffer+ _, err = copied.ReadFrom(getOut.Body)+ require.NoError(t, err)+ assert.Equal(t, content, copied.Bytes())+}++// TestS3LargeObject tests uploading a 25 MB object.+// Validates upload size limit handling.+func TestS3LargeObject(t *testing.T) {+ ctx := context.Background()+ svc := testutil.S3Client()+ bucket := "go-test-large-upload"+ key := "large-object-25mb.bin"+ size := int64(25 * 1024 * 1024) // 25 MB++ t.Cleanup(func() {+ svc.DeleteObject(ctx, &s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(key)})+ svc.DeleteBucket(ctx, &s3.DeleteBucketInput{Bucket: aws.String(bucket)})+ })++ // Setup+ _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{Bucket: aws.String(bucket)})+ require.NoError(t, err)++ // Create 25 MB payload+ payload := make([]byte, size)++ _, err = svc.PutObject(ctx, &s3.PutObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(key),+ Body: bytes.NewReader(payload),+ ContentType: aws.String("application/octet-stream"),+ ContentLength: aws.Int64(size),+ })+ require.NoError(t, err, "PutObject 25 MB should succeed")++ // Verify content-length via HeadObject+ head, err := svc.HeadObject(ctx, &s3.HeadObjectInput{+ Bucket: aws.String(bucket),+ Key: aws.String(key),+ })+ require.NoError(t, err)+ assert.Equal(t, size, aws.ToInt64(head.ContentLength), "content-length should be 25 MB")+}diff --git a/compatibility-tests/sdk-test-go/tests/secretsmanager_test.go b/compatibility-tests/sdk-test-go/tests/secretsmanager_test.gonew file mode 100644index 0000000000..9e426c0672--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/secretsmanager_test.go@@ -0,0 +1,79 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/secretsmanager"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestSecretsManager(t *testing.T) {+ ctx := context.Background()+ svc := testutil.SecretsManagerClient()+ secretName := "go-test/creds"+ secretVal := `{"username":"admin","password":"s3cret"}`+ var secretARN string++ t.Cleanup(func() {+ if secretARN != "" {+ svc.DeleteSecret(ctx, &secretsmanager.DeleteSecretInput{+ SecretId: aws.String(secretARN),+ ForceDeleteWithoutRecovery: aws.Bool(true),+ })+ }+ })++ t.Run("CreateSecret", func(t *testing.T) {+ r, err := svc.CreateSecret(ctx, &secretsmanager.CreateSecretInput{+ Name: aws.String(secretName),+ SecretString: aws.String(secretVal),+ })+ require.NoError(t, err)+ secretARN = aws.ToString(r.ARN)+ assert.NotEmpty(t, secretARN)+ })++ t.Run("GetSecretValue", func(t *testing.T) {+ r, err := svc.GetSecretValue(ctx, &secretsmanager.GetSecretValueInput{+ SecretId: aws.String(secretARN),+ })+ require.NoError(t, err)+ assert.Equal(t, secretVal, aws.ToString(r.SecretString))+ })++ t.Run("DescribeSecret", func(t *testing.T) {+ _, err := svc.DescribeSecret(ctx, &secretsmanager.DescribeSecretInput{+ SecretId: aws.String(secretARN),+ })+ require.NoError(t, err)+ })++ t.Run("ListSecrets", func(t *testing.T) {+ r, err := svc.ListSecrets(ctx, &secretsmanager.ListSecretsInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.SecretList)+ })++ t.Run("PutSecretValue", func(t *testing.T) {+ newVal := `{"username":"admin","password":"n3wsecret"}`+ _, err := svc.PutSecretValue(ctx, &secretsmanager.PutSecretValueInput{+ SecretId: aws.String(secretARN),+ SecretString: aws.String(newVal),+ })+ require.NoError(t, err)+ })++ t.Run("DeleteSecret", func(t *testing.T) {+ _, err := svc.DeleteSecret(ctx, &secretsmanager.DeleteSecretInput{+ SecretId: aws.String(secretARN),+ ForceDeleteWithoutRecovery: aws.Bool(true),+ })+ require.NoError(t, err)+ secretARN = "" // Prevent double cleanup+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/sns_test.go b/compatibility-tests/sdk-test-go/tests/sns_test.gonew file mode 100644index 0000000000..b983fbb349--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/sns_test.go@@ -0,0 +1,122 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/sns"+ "github.com/aws/aws-sdk-go-v2/service/sqs"+ sqstypes "github.com/aws/aws-sdk-go-v2/service/sqs/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestSNS(t *testing.T) {+ ctx := context.Background()+ svc := testutil.SNSClient()+ sqsSvc := testutil.SQSClient()+ topicName := "go-test-topic"+ queueName := "go-sns-target"+ var topicARN string+ var queueURL string+ var subARN string++ t.Cleanup(func() {+ if subARN != "" {+ svc.Unsubscribe(ctx, &sns.UnsubscribeInput{SubscriptionArn: aws.String(subARN)})+ }+ if topicARN != "" {+ svc.DeleteTopic(ctx, &sns.DeleteTopicInput{TopicArn: aws.String(topicARN)})+ }+ if queueURL != "" {+ sqsSvc.DeleteQueue(ctx, &sqs.DeleteQueueInput{QueueUrl: aws.String(queueURL)})+ }+ })++ t.Run("CreateTopic", func(t *testing.T) {+ r, err := svc.CreateTopic(ctx, &sns.CreateTopicInput{Name: aws.String(topicName)})+ require.NoError(t, err)+ topicARN = aws.ToString(r.TopicArn)+ assert.NotEmpty(t, topicARN)+ })++ t.Run("ListTopics", func(t *testing.T) {+ r, err := svc.ListTopics(ctx, &sns.ListTopicsInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Topics)+ })++ t.Run("GetTopicAttributes", func(t *testing.T) {+ r, err := svc.GetTopicAttributes(ctx, &sns.GetTopicAttributesInput{TopicArn: aws.String(topicARN)})+ require.NoError(t, err)+ assert.Equal(t, topicARN, r.Attributes["TopicArn"])+ })++ t.Run("Subscribe", func(t *testing.T) {+ // Create target SQS queue+ qr, err := sqsSvc.CreateQueue(ctx, &sqs.CreateQueueInput{QueueName: aws.String(queueName)})+ require.NoError(t, err)+ queueURL = aws.ToString(qr.QueueUrl)++ // Get queue ARN+ attr, err := sqsSvc.GetQueueAttributes(ctx, &sqs.GetQueueAttributesInput{+ QueueUrl: aws.String(queueURL),+ AttributeNames: []sqstypes.QueueAttributeName{sqstypes.QueueAttributeNameAll},+ })+ require.NoError(t, err)+ queueARN := attr.Attributes["QueueArn"]++ r, err := svc.Subscribe(ctx, &sns.SubscribeInput{+ TopicArn: aws.String(topicARN),+ Protocol: aws.String("sqs"),+ Endpoint: aws.String(queueARN),+ })+ require.NoError(t, err)+ subARN = aws.ToString(r.SubscriptionArn)+ assert.NotEmpty(t, subARN)+ })++ t.Run("ListSubscriptions", func(t *testing.T) {+ r, err := svc.ListSubscriptions(ctx, &sns.ListSubscriptionsInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Subscriptions)+ })++ t.Run("Publish", func(t *testing.T) {+ r, err := svc.Publish(ctx, &sns.PublishInput{+ TopicArn: aws.String(topicARN),+ Message: aws.String(`{"event":"go-test"}`),+ Subject: aws.String("GoTest"),+ })+ require.NoError(t, err)+ assert.NotEmpty(t, aws.ToString(r.MessageId))+ })++ t.Run("GetSubscriptionAttributes", func(t *testing.T) {+ if subARN == "" {+ t.Skip("No subscription created")+ }+ _, err := svc.GetSubscriptionAttributes(ctx, &sns.GetSubscriptionAttributesInput{+ SubscriptionArn: aws.String(subARN),+ })+ require.NoError(t, err)+ })++ t.Run("Unsubscribe", func(t *testing.T) {+ if subARN == "" {+ t.Skip("No subscription created")+ }+ _, err := svc.Unsubscribe(ctx, &sns.UnsubscribeInput{SubscriptionArn: aws.String(subARN)})+ require.NoError(t, err)+ subARN = "" // Prevent double cleanup+ })++ t.Run("DeleteTopic", func(t *testing.T) {+ _, err := svc.DeleteTopic(ctx, &sns.DeleteTopicInput{TopicArn: aws.String(topicARN)})+ require.NoError(t, err)+ topicARN = "" // Prevent double cleanup+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/sqs_test.go b/compatibility-tests/sdk-test-go/tests/sqs_test.gonew file mode 100644index 0000000000..b33c401821--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/sqs_test.go@@ -0,0 +1,119 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/sqs"+ sqstypes "github.com/aws/aws-sdk-go-v2/service/sqs/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestSQS(t *testing.T) {+ ctx := context.Background()+ svc := testutil.SQSClient()+ qName := "go-test-queue"+ var qURL string++ // Cleanup at end+ t.Cleanup(func() {+ if qURL != "" {+ svc.DeleteQueue(ctx, &sqs.DeleteQueueInput{QueueUrl: aws.String(qURL)})+ }+ })++ t.Run("CreateQueue", func(t *testing.T) {+ r, err := svc.CreateQueue(ctx, &sqs.CreateQueueInput{QueueName: aws.String(qName)})+ require.NoError(t, err)+ qURL = aws.ToString(r.QueueUrl)+ assert.NotEmpty(t, qURL)+ })++ t.Run("ListQueues", func(t *testing.T) {+ r, err := svc.ListQueues(ctx, &sqs.ListQueuesInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.QueueUrls)+ })++ t.Run("GetQueueUrl", func(t *testing.T) {+ r, err := svc.GetQueueUrl(ctx, &sqs.GetQueueUrlInput{QueueName: aws.String(qName)})+ require.NoError(t, err)+ assert.Equal(t, qURL, aws.ToString(r.QueueUrl))+ })++ t.Run("GetQueueAttributes", func(t *testing.T) {+ r, err := svc.GetQueueAttributes(ctx, &sqs.GetQueueAttributesInput{+ QueueUrl: aws.String(qURL),+ AttributeNames: []sqstypes.QueueAttributeName{sqstypes.QueueAttributeNameAll},+ })+ require.NoError(t, err)+ assert.NotEmpty(t, r.Attributes["QueueArn"])+ })++ t.Run("SendMessage", func(t *testing.T) {+ r, err := svc.SendMessage(ctx, &sqs.SendMessageInput{+ QueueUrl: aws.String(qURL),+ MessageBody: aws.String(`{"source":"go-test"}`),+ })+ require.NoError(t, err)+ assert.NotEmpty(t, aws.ToString(r.MessageId))+ })++ t.Run("SendMessageBatch", func(t *testing.T) {+ r, err := svc.SendMessageBatch(ctx, &sqs.SendMessageBatchInput{+ QueueUrl: aws.String(qURL),+ Entries: []sqstypes.SendMessageBatchRequestEntry{+ {Id: aws.String("m1"), MessageBody: aws.String("batch-1")},+ {Id: aws.String("m2"), MessageBody: aws.String("batch-2")},+ },+ })+ require.NoError(t, err)+ assert.Len(t, r.Successful, 2)+ })++ var receiptHandle *string+ t.Run("ReceiveMessage", func(t *testing.T) {+ r, err := svc.ReceiveMessage(ctx, &sqs.ReceiveMessageInput{+ QueueUrl: aws.String(qURL),+ MaxNumberOfMessages: 10,+ WaitTimeSeconds: 1,+ })+ require.NoError(t, err)+ assert.NotEmpty(t, r.Messages)+ if len(r.Messages) > 0 {+ receiptHandle = r.Messages[0].ReceiptHandle+ }+ })++ t.Run("DeleteMessage", func(t *testing.T) {+ require.NotNil(t, receiptHandle, "need a message to delete")+ _, err := svc.DeleteMessage(ctx, &sqs.DeleteMessageInput{+ QueueUrl: aws.String(qURL),+ ReceiptHandle: receiptHandle,+ })+ require.NoError(t, err)+ })++ t.Run("SetQueueAttributes", func(t *testing.T) {+ _, err := svc.SetQueueAttributes(ctx, &sqs.SetQueueAttributesInput{+ QueueUrl: aws.String(qURL),+ Attributes: map[string]string{"VisibilityTimeout": "60"},+ })+ require.NoError(t, err)+ })++ t.Run("PurgeQueue", func(t *testing.T) {+ _, err := svc.PurgeQueue(ctx, &sqs.PurgeQueueInput{QueueUrl: aws.String(qURL)})+ require.NoError(t, err)+ })++ t.Run("DeleteQueue", func(t *testing.T) {+ _, err := svc.DeleteQueue(ctx, &sqs.DeleteQueueInput{QueueUrl: aws.String(qURL)})+ require.NoError(t, err)+ qURL = "" // Prevent double cleanup+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/ssm_test.go b/compatibility-tests/sdk-test-go/tests/ssm_test.gonew file mode 100644index 0000000000..23a164382a--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/ssm_test.go@@ -0,0 +1,67 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/ssm"+ ssmtypes "github.com/aws/aws-sdk-go-v2/service/ssm/types"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestSSM(t *testing.T) {+ ctx := context.Background()+ svc := testutil.SSMClient()+ name := "/go-test/param"+ value := "go-test-value"++ // Cleanup at end+ t.Cleanup(func() {+ svc.DeleteParameter(ctx, &ssm.DeleteParameterInput{Name: aws.String(name)})+ })++ t.Run("PutParameter", func(t *testing.T) {+ _, err := svc.PutParameter(ctx, &ssm.PutParameterInput{+ Name: aws.String(name),+ Value: aws.String(value),+ Type: ssmtypes.ParameterTypeString,+ Overwrite: aws.Bool(true),+ })+ require.NoError(t, err)+ })++ t.Run("GetParameter", func(t *testing.T) {+ r, err := svc.GetParameter(ctx, &ssm.GetParameterInput{Name: aws.String(name)})+ require.NoError(t, err)+ assert.Equal(t, value, aws.ToString(r.Parameter.Value))+ })++ t.Run("GetParameters", func(t *testing.T) {+ r, err := svc.GetParameters(ctx, &ssm.GetParametersInput{Names: []string{name}})+ require.NoError(t, err)+ assert.Len(t, r.Parameters, 1)+ })++ t.Run("DescribeParameters", func(t *testing.T) {+ r, err := svc.DescribeParameters(ctx, &ssm.DescribeParametersInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, r.Parameters)+ })++ t.Run("GetParametersByPath", func(t *testing.T) {+ r, err := svc.GetParametersByPath(ctx, &ssm.GetParametersByPathInput{+ Path: aws.String("/go-test"),+ })+ require.NoError(t, err)+ assert.NotEmpty(t, r.Parameters)+ })++ t.Run("DeleteParameter", func(t *testing.T) {+ _, err := svc.DeleteParameter(ctx, &ssm.DeleteParameterInput{Name: aws.String(name)})+ require.NoError(t, err)+ })+}diff --git a/compatibility-tests/sdk-test-go/tests/sts_test.go b/compatibility-tests/sdk-test-go/tests/sts_test.gonew file mode 100644index 0000000000..9e4cc5859d--- /dev/null+++ b/compatibility-tests/sdk-test-go/tests/sts_test.go@@ -0,0 +1,26 @@+package tests++import (+ "context"+ "testing"++ "floci-sdk-test-go/internal/testutil"++ "github.com/aws/aws-sdk-go-v2/aws"+ "github.com/aws/aws-sdk-go-v2/service/sts"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+)++func TestSTS(t *testing.T) {+ ctx := context.Background()+ svc := testutil.STSClient()++ t.Run("GetCallerIdentity", func(t *testing.T) {+ r, err := svc.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{})+ require.NoError(t, err)+ assert.NotEmpty(t, aws.ToString(r.Account))+ assert.NotEmpty(t, aws.ToString(r.Arn))+ assert.NotEmpty(t, aws.ToString(r.UserId))+ })+}diff --git a/compatibility-tests/sdk-test-java/Dockerfile b/compatibility-tests/sdk-test-java/Dockerfilenew file mode 100644index 0000000000..14a62f9df0--- /dev/null+++ b/compatibility-tests/sdk-test-java/Dockerfile@@ -0,0 +1,14 @@+FROM eclipse-temurin:17-jdk+WORKDIR /app++RUN apt-get update && apt-get install -y maven && rm -rf /var/lib/apt/lists/*++COPY pom.xml .+RUN mvn dependency:go-offline -q++COPY src/ src/++ENV FLOCI_ENDPOINT=http://floci:4566++RUN mkdir -p /results+ENTRYPOINT ["bash", "-c", "status=0; mvn test -q -Dorg.slf4j.simpleLogger.defaultLogLevel=warn || status=$?; if [ -d target/surefire-reports ]; then ls -la target/surefire-reports/; cp target/surefire-reports/TEST-*.xml /results/ 2>/dev/null || true; else echo 'No surefire-reports directory found'; fi; exit $status"]diff --git a/compatibility-tests/sdk-test-java/README.md b/compatibility-tests/sdk-test-java/README.mdnew file mode 100644index 0000000000..943b2b70a5--- /dev/null+++ b/compatibility-tests/sdk-test-java/README.md@@ -0,0 +1,66 @@+# sdk-test-java++Compatibility tests for [Floci](https://github.com/hectorvent/floci) using the **AWS SDK for Java v2 (2.31.8)**.++Runs 313 tests across 16 test classes against a live Floci instance — no mocks.++## Services Covered++| Test class | Description |+| -------------------------------- | -------------------------------------------------------- |+| `SsmTest` | Parameter Store — put, get, path, tags |+| `SqsTest` | Queues, send/receive/delete, DLQ, visibility |+| `SnsTest` | Topics, subscriptions, publish, SQS delivery |+| `S3Test` | Buckets, objects, tagging, copy, multipart, batch delete |+| `DynamoDbTest` | Tables, CRUD, batch, TTL, tags, streams |+| `DynamoDbScanConditionTests` | Scan filter and condition expressions |+| `LambdaTest` | Create/invoke/update/delete functions |+| `IamTest` | Users, roles, policies, access keys |+| `StsTest` | GetCallerIdentity, AssumeRole, GetSessionToken |+| `SecretsManagerTest` | Create/get/put/list/delete secrets, versioning, tags |+| `KmsTest` | Keys, aliases, encrypt/decrypt, data keys, sign/verify |+| `CloudWatchTest` | PutMetricData, ListMetrics, GetMetricStatistics, alarms |+| `CloudFormationVirtualHostTests` | Virtual host style S3 access via CloudFormation |+| `ApigwSfnJsonataCrudlTests` | API Gateway + Step Functions JSONata CRUDL integration |+| `Ec2Tests` | EC2 instances, VPCs, security groups, subnets |+| `EcsTests` | ECS clusters, task definitions, services |++## Adding a New Test++Create a standard JUnit 5 test class in `src/test/java/com/floci/test/`. Tests run against a live Floci instance using real AWS SDK clients.++## Requirements++- Java 17++- Maven++## Running++```bash+# All tests+mvn test -q++# Specific test class+mvn test -Dtest=S3Test++# Via just (from compatibility-tests/)+just test-java+```++## 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-java .+docker run --rm --network host floci-sdk-java++# Custom endpoint (macOS/Windows)+docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-java+```diff --git a/compatibility-tests/sdk-test-java/pom.xml b/compatibility-tests/sdk-test-java/pom.xmlnew file mode 100644index 0000000000..d2be29bc3b--- /dev/null+++ b/compatibility-tests/sdk-test-java/pom.xml@@ -0,0 +1,228 @@+<?xml version="1.0" encoding="UTF-8"?>+<project xmlns="http://maven.apache.org/POM/4.0.0"+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">+ <modelVersion>4.0.0</modelVersion>++ <groupId>com.floci</groupId>+ <artifactId>sdk-test-java</artifactId>+ <version>1.0-SNAPSHOT</version>+ <packaging>jar</packaging>++ <name>Floci SDK Test</name>+ <description>Test AWS SDK v2 against Floci emulator</description>++ <properties>+ <maven.compiler.source>17</maven.compiler.source>+ <maven.compiler.target>17</maven.compiler.target>+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>+ <aws.sdk.version>2.31.8</aws.sdk.version>+ <awsjavasdk.version>2.31.8</awsjavasdk.version>+ </properties>++ <dependencyManagement>+ <dependencies>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>bom</artifactId>+ <version>${aws.sdk.version}</version>+ <type>pom</type>+ <scope>import</scope>+ </dependency>+ <!-- Force consistent Netty version across AWS SDK and Lettuce -->+ <dependency>+ <groupId>io.netty</groupId>+ <artifactId>netty-bom</artifactId>+ <version>4.1.118.Final</version>+ <type>pom</type>+ <scope>import</scope>+ </dependency>+ <dependency>+ <groupId>com.fasterxml.jackson.core</groupId>+ <artifactId>jackson-databind</artifactId>+ <version>2.18.2</version>+ </dependency>+ </dependencies>+ </dependencyManagement>++ <dependencies>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>sqs</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>s3</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>ssm</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>sns</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>dynamodb</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>lambda</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>apigateway</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>apigatewayv2</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>kms</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>cognitoidentityprovider</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>sfn</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>iam</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>ec2</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>sts</artifactId>+ </dependency>+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>elasticache</artifactId>+ </dependency>+ <dependency>+ <groupId>io.lettuce</groupId>+ <artifactId>lettuce-core</artifactId>+ <version>6.3.2.RELEASE</version>+ </dependency>+ <!-- RDS management client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>rds</artifactId>+ </dependency>+ <!-- EventBridge client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>eventbridge</artifactId>+ </dependency>+ <!-- Kinesis client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>kinesis</artifactId>+ </dependency>+ <!-- CloudWatch Logs client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>cloudwatchlogs</artifactId>+ </dependency>+ <!-- CloudWatch Metrics client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>cloudwatch</artifactId>+ </dependency>+ <!-- Secrets Manager client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>secretsmanager</artifactId>+ </dependency>+ <!-- SES client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>ses</artifactId>+ </dependency>+ <!-- OpenSearch Service management client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>opensearch</artifactId>+ </dependency>+ <!-- ECS client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>ecs</artifactId>+ </dependency>+ <!-- CloudFormation client -->+ <dependency>+ <groupId>software.amazon.awssdk</groupId>+ <artifactId>cloudformation</artifactId>+ </dependency>+ <!-- JDBC drivers for RDS data-plane tests -->+ <dependency>+ <groupId>org.postgresql</groupId>+ <artifactId>postgresql</artifactId>+ <version>42.7.3</version>+ </dependency>+ <dependency>+ <groupId>com.mysql</groupId>+ <artifactId>mysql-connector-j</artifactId>+ <version>8.3.0</version>+ </dependency>++ <dependency>+ <groupId>org.mariadb.jdbc</groupId>+ <artifactId>mariadb-java-client</artifactId>+ <version>3.3.2</version>+ </dependency>+ <dependency>+ <groupId>com.fasterxml.jackson.core</groupId>+ <artifactId>jackson-databind</artifactId>+ <version>2.18.2</version>+ </dependency>+ <!-- JUnit 5 -->+ <dependency>+ <groupId>org.junit.jupiter</groupId>+ <artifactId>junit-jupiter</artifactId>+ <version>5.10.2</version>+ <scope>test</scope>+ </dependency>+ <!-- AssertJ for fluent assertions -->+ <dependency>+ <groupId>org.assertj</groupId>+ <artifactId>assertj-core</artifactId>+ <version>3.25.3</version>+ <scope>test</scope>+ </dependency>+ </dependencies>++ <build>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <version>3.2.5</version>+ <configuration>+ <includes>+ <include>**/*Test.java</include>+ </includes>+ <environmentVariables>+ <FLOCI_ENDPOINT>${env.FLOCI_ENDPOINT}</FLOCI_ENDPOINT>+ </environmentVariables>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-compiler-plugin</artifactId>+ <version>3.12.1</version>+ <configuration>+ <source>17</source>+ <target>17</target>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java b/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.javanew file mode 100644index 0000000000..356ff1d8f8--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java@@ -0,0 +1,291 @@+package com.floci.test;++import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;+import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;+import software.amazon.awssdk.regions.Region;+import software.amazon.awssdk.services.cloudformation.CloudFormationClient;+import software.amazon.awssdk.services.cloudwatch.CloudWatchClient;+import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient;+import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityProviderClient;+import software.amazon.awssdk.services.dynamodb.DynamoDbClient;+import software.amazon.awssdk.services.eventbridge.EventBridgeClient;+import software.amazon.awssdk.services.iam.IamClient;+import software.amazon.awssdk.services.kinesis.KinesisClient;+import software.amazon.awssdk.services.kms.KmsClient;+import software.amazon.awssdk.services.lambda.LambdaClient;+import software.amazon.awssdk.services.opensearch.OpenSearchClient;+import software.amazon.awssdk.services.rds.RdsClient;+import software.amazon.awssdk.services.s3.S3Client;+import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient;+import software.amazon.awssdk.services.ses.SesClient;+import software.amazon.awssdk.services.sfn.SfnClient;+import software.amazon.awssdk.services.sns.SnsClient;+import software.amazon.awssdk.services.sqs.SqsClient;+import software.amazon.awssdk.services.ssm.SsmClient;+import software.amazon.awssdk.services.sts.StsClient;+import software.amazon.awssdk.services.apigateway.ApiGatewayClient;+import software.amazon.awssdk.services.apigatewayv2.ApiGatewayV2Client;+import software.amazon.awssdk.services.elasticache.ElastiCacheClient;+import software.amazon.awssdk.services.ec2.Ec2Client;+import software.amazon.awssdk.services.ecs.EcsClient;++import java.net.URI;+import java.util.UUID;++/**+ * Shared test utilities and AWS client factories.+ */+public final class TestFixtures {++ private static final URI ENDPOINT = URI.create(+ System.getenv("FLOCI_ENDPOINT") != null+ ? System.getenv("FLOCI_ENDPOINT")+ : "http://localhost:4566");++ private static final Region REGION = Region.US_EAST_1;++ private static final StaticCredentialsProvider CREDENTIALS =+ StaticCredentialsProvider.create(AwsBasicCredentials.create("test", "test"));++ private TestFixtures() {}++ /**+ * Returns true when running against real AWS (no endpoint override).+ */+ public static boolean isRealAws() {+ return "aws".equalsIgnoreCase(System.getenv("FLOCI_TARGET"));+ }++ /**+ * Generate a unique name for test resources.+ */+ public static String uniqueName() {+ return "junit-" + UUID.randomUUID().toString().substring(0, 8);+ }++ /**+ * Generate a unique name with a prefix.+ */+ public static String uniqueName(String prefix) {+ return prefix + "-" + UUID.randomUUID().toString().substring(0, 8);+ }++ /**+ * Get the Floci endpoint URI.+ */+ public static URI endpoint() {+ return ENDPOINT;+ }++ /**+ * Get the proxy host for direct TCP connections (JDBC, Redis).+ */+ public static String proxyHost() {+ return ENDPOINT.getHost();+ }++ // ============================================+ // AWS Client Factories+ // ============================================++ public static SsmClient ssmClient() {+ return SsmClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static SqsClient sqsClient() {+ return SqsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static SnsClient snsClient() {+ return SnsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static S3Client s3Client() {+ return S3Client.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .forcePathStyle(true)+ .build();+ }++ public static DynamoDbClient dynamoDbClient() {+ return DynamoDbClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static LambdaClient lambdaClient() {+ return LambdaClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static IamClient iamClient() {+ return IamClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static StsClient stsClient() {+ return StsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static KmsClient kmsClient() {+ return KmsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static SecretsManagerClient secretsManagerClient() {+ return SecretsManagerClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static KinesisClient kinesisClient() {+ return KinesisClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static CloudWatchClient cloudWatchClient() {+ return CloudWatchClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static CloudWatchLogsClient cloudWatchLogsClient() {+ return CloudWatchLogsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static CognitoIdentityProviderClient cognitoClient() {+ return CognitoIdentityProviderClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static CloudFormationClient cloudFormationClient() {+ return CloudFormationClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static EventBridgeClient eventBridgeClient() {+ return EventBridgeClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static SfnClient sfnClient() {+ return SfnClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static SesClient sesClient() {+ return SesClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static RdsClient rdsClient() {+ return RdsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static ElastiCacheClient elastiCacheClient() {+ return ElastiCacheClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static ApiGatewayClient apiGatewayClient() {+ return ApiGatewayClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static ApiGatewayV2Client apiGatewayV2Client() {+ return ApiGatewayV2Client.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static OpenSearchClient openSearchClient() {+ return OpenSearchClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static Ec2Client ec2Client() {+ return Ec2Client.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }++ public static EcsClient ecsClient() {+ return EcsClient.builder()+ .endpointOverride(ENDPOINT)+ .region(REGION)+ .credentialsProvider(CREDENTIALS)+ .build();+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/ApigwSfnJsonataCrudlTests.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/ApigwSfnJsonataCrudlTests.javanew file mode 100644index 0000000000..011214e877--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/ApigwSfnJsonataCrudlTests.java@@ -0,0 +1,462 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration;+import software.amazon.awssdk.core.client.config.SdkAdvancedClientOption;+import software.amazon.awssdk.regions.Region;+import software.amazon.awssdk.services.apigateway.ApiGatewayClient;+import software.amazon.awssdk.services.apigateway.model.*;+import software.amazon.awssdk.services.dynamodb.DynamoDbClient;+import software.amazon.awssdk.services.dynamodb.model.*;+import software.amazon.awssdk.services.sfn.SfnClient;+import software.amazon.awssdk.services.sfn.model.*;++import java.net.URI;+import java.net.http.HttpClient;+import java.net.http.HttpRequest;+import java.net.http.HttpResponse;+import java.time.Duration;+import java.util.List;+import java.util.Map;++import static org.assertj.core.api.Assertions.*;++/**+ * End-to-end compatibility tests: API Gateway → Step Functions (JSONata) → DynamoDB.+ *+ * <p>Exercises all five CRUDL operations via HTTP through a deployed API Gateway stage,+ * backed by Express Step Functions state machines using JSONata and optimised DynamoDB+ * integrations.+ *+ * <p>Run against real AWS:+ * <pre>+ * FLOCI_TARGET=aws \+ * SFN_ROLE_ARN=arn:aws:iam::123456789012:role/sfn-role \+ * APIGW_ROLE_ARN=arn:aws:iam::123456789012:role/apigw-sfn-role \+ * mvn compile exec:java -Dexec.args="apigw-sfn-jsonata-crudl"+ * </pre>+ */+@DisplayName("API Gateway → SFN JSONata → DynamoDB CRUDL")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class ApigwSfnJsonataCrudlTests {++ private static final String TABLE_BASE = "apigw-sfn-crudl";+ private static final String STAGE = "v1";++ private static DynamoDbClient ddb;+ private static SfnClient sfn;+ private static ApiGatewayClient apigw;+ private static HttpClient http;++ private static String tableName;+ private static String createArn;+ private static String readArn;+ private static String updateArn;+ private static String deleteArn;+ private static String listArn;+ private static String apiId;+ private static String baseUrl;++ private static boolean isRealAws;+ private static String sfnRoleArn;+ private static String apigwRoleArn;+ private static Region region;++ @BeforeAll+ static void setup() throws Exception {+ isRealAws = TestFixtures.isRealAws();+ region = Region.US_EAST_1;++ sfnRoleArn = isRealAws+ ? System.getenv("SFN_ROLE_ARN")+ : "arn:aws:iam::000000000000:role/sfn-role";+ apigwRoleArn = isRealAws+ ? System.getenv("APIGW_ROLE_ARN")+ : "arn:aws:iam::000000000000:role/apigw-role";++ if (isRealAws && (sfnRoleArn == null || apigwRoleArn == null)) {+ Assumptions.abort("SFN_ROLE_ARN or APIGW_ROLE_ARN not set");+ }++ tableName = TABLE_BASE + "-" + System.currentTimeMillis();++ if (isRealAws) {+ ddb = DynamoDbClient.builder().region(region).build();+ sfn = SfnClient.builder().region(region).build();+ apigw = ApiGatewayClient.builder().region(region).build();+ } else {+ URI endpoint = TestFixtures.endpoint();+ ddb = DynamoDbClient.builder()+ .endpointOverride(endpoint)+ .region(region)+ .credentialsProvider(software.amazon.awssdk.auth.credentials.StaticCredentialsProvider.create(+ software.amazon.awssdk.auth.credentials.AwsBasicCredentials.create("test", "test")))+ .build();+ sfn = SfnClient.builder()+ .endpointOverride(endpoint)+ .region(region)+ .credentialsProvider(software.amazon.awssdk.auth.credentials.StaticCredentialsProvider.create(+ software.amazon.awssdk.auth.credentials.AwsBasicCredentials.create("test", "test")))+ .overrideConfiguration(ClientOverrideConfiguration.builder()+ .putAdvancedOption(SdkAdvancedClientOption.DISABLE_HOST_PREFIX_INJECTION, true)+ .build())+ .build();+ apigw = ApiGatewayClient.builder()+ .endpointOverride(endpoint)+ .region(region)+ .credentialsProvider(software.amazon.awssdk.auth.credentials.StaticCredentialsProvider.create(+ software.amazon.awssdk.auth.credentials.AwsBasicCredentials.create("test", "test")))+ .build();+ }++ http = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(15)).build();++ // Create DynamoDB table+ createTable(ddb, tableName);+ if (isRealAws) Thread.sleep(2000);++ // Create state machines+ createArn = createSm(sfn, sfnRoleArn, tableName, "create", smCreate(tableName));+ readArn = createSm(sfn, sfnRoleArn, tableName, "read", smRead(tableName));+ updateArn = createSm(sfn, sfnRoleArn, tableName, "update", smUpdate(tableName));+ deleteArn = createSm(sfn, sfnRoleArn, tableName, "delete", smDelete(tableName));+ listArn = createSm(sfn, sfnRoleArn, tableName, "list", smList(tableName));++ if (createArn == null || readArn == null || updateArn == null || deleteArn == null || listArn == null) {+ Assumptions.abort("Failed to create state machines");+ }++ if (isRealAws) Thread.sleep(2000);++ // Build API Gateway+ apiId = buildApi(apigw, region.id(), apigwRoleArn, createArn, readArn, updateArn, deleteArn, listArn);+ String deployId = apigw.createDeployment(b -> b.restApiId(apiId)).id();+ apigw.createStage(b -> b.restApiId(apiId).stageName(STAGE).deploymentId(deployId));++ if (isRealAws) Thread.sleep(3000);++ baseUrl = isRealAws+ ? "https://" + apiId + ".execute-api." + region.id() + ".amazonaws.com/" + STAGE+ : TestFixtures.endpoint() + "/execute-api/" + apiId + "/" + STAGE;+ }++ @AfterAll+ static void cleanup() {+ if (createArn != null) {+ try { sfn.deleteStateMachine(b -> b.stateMachineArn(createArn)); } catch (Exception ignored) {}+ }+ if (readArn != null) {+ try { sfn.deleteStateMachine(b -> b.stateMachineArn(readArn)); } catch (Exception ignored) {}+ }+ if (updateArn != null) {+ try { sfn.deleteStateMachine(b -> b.stateMachineArn(updateArn)); } catch (Exception ignored) {}+ }+ if (deleteArn != null) {+ try { sfn.deleteStateMachine(b -> b.stateMachineArn(deleteArn)); } catch (Exception ignored) {}+ }+ if (listArn != null) {+ try { sfn.deleteStateMachine(b -> b.stateMachineArn(listArn)); } catch (Exception ignored) {}+ }+ if (apiId != null && apigw != null) {+ try { apigw.deleteRestApi(b -> b.restApiId(apiId)); } catch (Exception ignored) {}+ }+ if (tableName != null && ddb != null) {+ try { ddb.deleteTable(b -> b.tableName(tableName)); } catch (Exception ignored) {}+ }+ if (ddb != null) ddb.close();+ if (sfn != null) sfn.close();+ if (apigw != null) apigw.close();+ }++ @Test+ @Order(1)+ @DisplayName("Create - POST /items")+ void create() throws Exception {+ HttpResponse<String> resp = post(http, baseUrl + "/items",+ "{\"id\":\"item-1\",\"name\":\"Widget\",\"value\":\"blue\"}");++ assertThat(resp.statusCode()).isEqualTo(200);+ assertThat(resp.body()).contains("item-1");+ }++ @Test+ @Order(2)+ @DisplayName("Read - GET /items/item-1")+ void read() throws Exception {+ HttpResponse<String> resp = get(http, baseUrl + "/items/item-1");++ assertThat(resp.statusCode()).isEqualTo(200);+ assertThat(resp.body()).contains("Widget");+ assertThat(resp.body()).contains("blue");+ }++ @Test+ @Order(3)+ @DisplayName("Update - PUT /items/item-1")+ void update() throws Exception {+ HttpResponse<String> updateResp = put(http, baseUrl + "/items/item-1",+ "{\"name\":\"Widget Pro\",\"value\":\"green\"}");+ HttpResponse<String> verifyResp = get(http, baseUrl + "/items/item-1");++ assertThat(updateResp.statusCode()).isEqualTo(200);+ assertThat(verifyResp.body()).contains("Widget Pro");+ assertThat(verifyResp.body()).contains("green");+ }++ @Test+ @Order(4)+ @DisplayName("List - GET /items")+ void list() throws Exception {+ HttpResponse<String> resp = get(http, baseUrl + "/items");++ assertThat(resp.statusCode()).isEqualTo(200);+ assertThat(resp.body()).contains("item-1");+ }++ @Test+ @Order(5)+ @DisplayName("Delete - DELETE /items/item-1")+ void delete() throws Exception {+ HttpResponse<String> resp = delete(http, baseUrl + "/items/item-1");++ assertThat(resp.statusCode()).isEqualTo(200);+ }++ @Test+ @Order(6)+ @DisplayName("Read after delete - GET /items/item-1")+ void readAfterDelete() throws Exception {+ HttpResponse<String> resp = get(http, baseUrl + "/items/item-1");++ assertThat(resp.statusCode()).isEqualTo(200);+ assertThat(resp.body()).contains("false");+ assertThat(resp.body()).doesNotContain("Widget");+ }++ // State machine definitions++ private static String smCreate(String table) {+ return """+ {+ "QueryLanguage": "JSONata",+ "StartAt": "PutItem",+ "States": {+ "PutItem": {+ "Type": "Task",+ "Resource": "arn:aws:states:::dynamodb:putItem",+ "Arguments": {+ "TableName": "TABLE",+ "Item": {+ "pk": {"S": "{% $states.input.id %}"},+ "sk": {"S": "item"},+ "name": {"S": "{% $states.input.name %}"},+ "value": {"S": "{% $states.input.value %}"}+ }+ },+ "Output": {"id": "{% $states.input.id %}", "created": true},+ "End": true+ }+ }+ }""".replace("TABLE", table);+ }++ private static String smRead(String table) {+ return """+ {+ "QueryLanguage": "JSONata",+ "StartAt": "GetItem",+ "States": {+ "GetItem": {+ "Type": "Task",+ "Resource": "arn:aws:states:::dynamodb:getItem",+ "Arguments": {+ "TableName": "TABLE",+ "Key": {+ "pk": {"S": "{% $states.input.id %}"},+ "sk": {"S": "item"}+ }+ },+ "Output": "{% $exists($states.result.Item) ? {\\n \\"found\\": true,\\n \\"id\\": $states.result.Item.pk.S,\\n \\"name\\": $states.result.Item.name.S,\\n \\"value\\": $states.result.Item.value.S\\n} : {\\"found\\": false} %}",+ "End": true+ }+ }+ }""".replace("TABLE", table);+ }++ private static String smUpdate(String table) {+ return """+ {+ "QueryLanguage": "JSONata",+ "StartAt": "UpdateItem",+ "States": {+ "UpdateItem": {+ "Type": "Task",+ "Resource": "arn:aws:states:::dynamodb:updateItem",+ "Arguments": {+ "TableName": "TABLE",+ "Key": {+ "pk": {"S": "{% $states.input.id %}"},+ "sk": {"S": "item"}+ },+ "UpdateExpression": "SET #n = :name, #v = :value",+ "ExpressionAttributeNames": {"#n": "name", "#v": "value"},+ "ExpressionAttributeValues": {+ ":name": {"S": "{% $states.input.name %}"},+ ":value": {"S": "{% $states.input.value %}"}+ }+ },+ "Output": {"id": "{% $states.input.id %}", "updated": true},+ "End": true+ }+ }+ }""".replace("TABLE", table);+ }++ private static String smDelete(String table) {+ return """+ {+ "QueryLanguage": "JSONata",+ "StartAt": "DeleteItem",+ "States": {+ "DeleteItem": {+ "Type": "Task",+ "Resource": "arn:aws:states:::dynamodb:deleteItem",+ "Arguments": {+ "TableName": "TABLE",+ "Key": {+ "pk": {"S": "{% $states.input.id %}"},+ "sk": {"S": "item"}+ }+ },+ "Output": {"id": "{% $states.input.id %}", "deleted": true},+ "End": true+ }+ }+ }""".replace("TABLE", table);+ }++ private static String smList(String table) {+ return """+ {+ "QueryLanguage": "JSONata",+ "StartAt": "Scan",+ "States": {+ "Scan": {+ "Type": "Task",+ "Resource": "arn:aws:states:::aws-sdk:dynamodb:scan",+ "Arguments": {+ "TableName": "TABLE"+ },+ "Output": {+ "count": "{% $states.result.Count %}",+ "items": "{% [$states.result.Items.{\\"id\\": pk.S, \\"name\\": name.S, \\"value\\": value.S}] %}"+ },+ "End": true+ }+ }+ }""".replace("TABLE", table);+ }++ // Setup helpers++ private static void createTable(DynamoDbClient ddb, String tableName) {+ try {+ ddb.createTable(b -> b+ .tableName(tableName)+ .keySchema(+ KeySchemaElement.builder().attributeName("pk").keyType(KeyType.HASH).build(),+ KeySchemaElement.builder().attributeName("sk").keyType(KeyType.RANGE).build())+ .attributeDefinitions(+ AttributeDefinition.builder().attributeName("pk")+ .attributeType(ScalarAttributeType.S).build(),+ AttributeDefinition.builder().attributeName("sk")+ .attributeType(ScalarAttributeType.S).build())+ .billingMode(BillingMode.PAY_PER_REQUEST));+ } catch (ResourceInUseException ignored) {}+ }++ private static String createSm(SfnClient sfn, String roleArn, String tableName, String op, String definition) {+ try {+ String name = TABLE_BASE + "-" + op + "-" + tableName.substring(tableName.lastIndexOf('-') + 1);+ return sfn.createStateMachine(b -> b+ .name(name)+ .definition(definition)+ .type(StateMachineType.EXPRESS)+ .roleArn(roleArn)).stateMachineArn();+ } catch (Exception e) {+ return null;+ }+ }++ private static String buildApi(ApiGatewayClient apigw, String region, String roleArn,+ String createArn, String readArn, String updateArn,+ String deleteArn, String listArn) {+ String apiId = apigw.createRestApi(b -> b.name(TABLE_BASE + "-" + System.currentTimeMillis())).id();+ String rootId = apigw.getResources(b -> b.restApiId(apiId)).items()+ .stream().filter(r -> "/".equals(r.path())).findFirst()+ .map(Resource::id).orElseThrow();++ String itemsId = apigw.createResource(b -> b.restApiId(apiId).parentId(rootId).pathPart("items")).id();+ String itemId = apigw.createResource(b -> b.restApiId(apiId).parentId(itemsId).pathPart("{id}")).id();++ String sfnUri = "arn:aws:apigateway:" + region + ":states:action/StartSyncExecution";++ wireMethod(apigw, apiId, itemsId, "POST", sfnUri, roleArn, createArn,+ "{\"input\": \"$util.escapeJavaScript($input.json('$'))\",\"stateMachineArn\": \"" + createArn + "\"}");+ wireMethod(apigw, apiId, itemsId, "GET", sfnUri, roleArn, listArn,+ "{\"input\": \"{}\",\"stateMachineArn\": \"" + listArn + "\"}");+ wireMethod(apigw, apiId, itemId, "GET", sfnUri, roleArn, readArn,+ "{\"input\": \"{\\\"id\\\": \\\"$input.params('id')\\\"}\",\"stateMachineArn\": \"" + readArn + "\"}");+ wireMethod(apigw, apiId, itemId, "PUT", sfnUri, roleArn, updateArn,+ "#set($b = $input.path('$'))\n{\"input\": \"{\\\"id\\\": \\\"$input.params('id')\\\","+ + "\\\"name\\\": \\\"$b.name\\\",\\\"value\\\": \\\"$b.value\\\"}\","+ + "\"stateMachineArn\": \"" + updateArn + "\"}");+ wireMethod(apigw, apiId, itemId, "DELETE", sfnUri, roleArn, deleteArn,+ "{\"input\": \"{\\\"id\\\": \\\"$input.params('id')\\\"}\",\"stateMachineArn\": \"" + deleteArn + "\"}");++ return apiId;+ }++ private static void wireMethod(ApiGatewayClient apigw, String apiId, String resourceId,+ String httpMethod, String uri, String roleArn,+ String smArn, String reqTemplate) {+ apigw.putMethod(b -> b.restApiId(apiId).resourceId(resourceId)+ .httpMethod(httpMethod).authorizationType("NONE"));+ apigw.putIntegration(b -> b.restApiId(apiId).resourceId(resourceId)+ .httpMethod(httpMethod).type(IntegrationType.AWS)+ .integrationHttpMethod("POST").uri(uri).credentials(roleArn)+ .requestTemplates(Map.of("application/json", reqTemplate)));+ apigw.putMethodResponse(b -> b.restApiId(apiId).resourceId(resourceId)+ .httpMethod(httpMethod).statusCode("200"));+ apigw.putIntegrationResponse(b -> b.restApiId(apiId).resourceId(resourceId)+ .httpMethod(httpMethod).statusCode("200")+ .responseTemplates(Map.of("application/json", "$input.path('$.output')")));+ }++ // HTTP helpers++ private static HttpResponse<String> get(HttpClient http, String url) throws Exception {+ return http.send(HttpRequest.newBuilder().uri(URI.create(url)).GET()+ .timeout(Duration.ofSeconds(20)).build(), HttpResponse.BodyHandlers.ofString());+ }++ private static HttpResponse<String> post(HttpClient http, String url, String body) throws Exception {+ return http.send(HttpRequest.newBuilder().uri(URI.create(url))+ .POST(HttpRequest.BodyPublishers.ofString(body))+ .header("Content-Type", "application/json")+ .timeout(Duration.ofSeconds(20)).build(), HttpResponse.BodyHandlers.ofString());+ }++ private static HttpResponse<String> put(HttpClient http, String url, String body) throws Exception {+ return http.send(HttpRequest.newBuilder().uri(URI.create(url))+ .PUT(HttpRequest.BodyPublishers.ofString(body))+ .header("Content-Type", "application/json")+ .timeout(Duration.ofSeconds(20)).build(), HttpResponse.BodyHandlers.ofString());+ }++ private static HttpResponse<String> delete(HttpClient http, String url) throws Exception {+ return http.send(HttpRequest.newBuilder().uri(URI.create(url))+ .DELETE().timeout(Duration.ofSeconds(20)).build(),+ HttpResponse.BodyHandlers.ofString());+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CloudFormationVirtualHostTests.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CloudFormationVirtualHostTests.javanew file mode 100644index 0000000000..d26bdb3bee--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CloudFormationVirtualHostTests.java@@ -0,0 +1,53 @@+package com.floci.test;++import org.junit.jupiter.api.AfterAll;+import org.junit.jupiter.api.BeforeAll;+import org.junit.jupiter.api.DisplayName;+import org.junit.jupiter.api.Test;+import software.amazon.awssdk.services.cloudformation.CloudFormationClient;+import software.amazon.awssdk.services.cloudformation.model.ListStacksResponse;++import java.net.URI;++import static org.assertj.core.api.Assertions.*;++/**+ * Ensures that requests to non-S3 service hostnames (e.g. cloudformation.amazonaws.com)+ * are not incorrectly hijacked by the S3 virtual host filter.+ */+@DisplayName("CloudFormation Virtual Host")+class CloudFormationVirtualHostTests {++ private static CloudFormationClient cfn;++ @BeforeAll+ static void setup() {+ // We override the endpoint to simulate a virtual host style request for CloudFormation+ URI endpoint = TestFixtures.endpoint();+ URI cfnEndpoint = URI.create("http://cloudformation.us-east-1.amazonaws.com:" + endpoint.getPort());+ if (endpoint.getHost().equals("localhost")) {+ cfnEndpoint = URI.create("http://cloudformation.localhost:" + endpoint.getPort());+ }++ cfn = CloudFormationClient.builder()+ .endpointOverride(cfnEndpoint)+ .region(software.amazon.awssdk.regions.Region.US_EAST_1)+ .credentialsProvider(software.amazon.awssdk.auth.credentials.StaticCredentialsProvider.create(+ software.amazon.awssdk.auth.credentials.AwsBasicCredentials.create("test", "test")))+ .build();+ }++ @AfterAll+ static void cleanup() {+ if (cfn != null) {+ cfn.close();+ }+ }++ @Test+ @DisplayName("ListStacks - virtual host request succeeds")+ void listStacksVirtualHost() {+ ListStacksResponse resp = cfn.listStacks();+ assertThat(resp.sdkHttpResponse().isSuccessful()).isTrue();+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CloudWatchTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CloudWatchTest.javanew file mode 100644index 0000000000..d051ba8ebe--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/CloudWatchTest.java@@ -0,0 +1,143 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.cloudwatch.CloudWatchClient;+import software.amazon.awssdk.services.cloudwatch.model.*;++import java.time.Instant;+import java.time.temporal.ChronoUnit;++import static org.assertj.core.api.Assertions.*;++@DisplayName("CloudWatch Metrics")+class CloudWatchTest {++ private static CloudWatchClient cloudWatchClient;++ @BeforeAll+ static void setUp() {+ cloudWatchClient = TestFixtures.cloudWatchClient();+ }++ @AfterAll+ static void tearDown() {+ if (cloudWatchClient != null) {+ cloudWatchClient.close();+ }+ }++ @Test+ @DisplayName("PutMetricData with simple value")+ void testPutMetricDataSimpleValue() {+ String namespace = "JavaTestSimple";++ PutMetricDataRequest request = PutMetricDataRequest.builder()+ .namespace(namespace)+ .metricData(datum -> datum+ .metricName("RequestCount")+ .value(42.0)+ .unit(StandardUnit.COUNT)+ )+ .build();++ assertThatNoException().isThrownBy(() ->+ cloudWatchClient.putMetricData(request)+ );+ }++ @Test+ @DisplayName("ListMetrics returns metrics")+ void testListMetrics() {+ String namespace = "JavaTestList";++ // Setup+ cloudWatchClient.putMetricData(request -> request+ .namespace(namespace)+ .metricData(datum -> datum+ .metricName("TestMetric")+ .value(1.0)+ .unit(StandardUnit.COUNT)+ )+ );++ ListMetricsResponse response = cloudWatchClient.listMetrics(request -> request+ .namespace(namespace)+ );++ assertThat(response.metrics()).isNotEmpty();+ }++ @Test+ @DisplayName("GetMetricStatistics returns aggregated data")+ void testGetMetricStatistics() {+ String namespace = "JavaTestStats";++ // Setup+ cloudWatchClient.putMetricData(request -> request+ .namespace(namespace)+ .metricData(datum -> datum+ .metricName("StatsMetric")+ .value(100.0)+ .unit(StandardUnit.COUNT)+ )+ );++ Instant now = Instant.now();+ GetMetricStatisticsResponse response = cloudWatchClient.getMetricStatistics(request -> request+ .namespace(namespace)+ .metricName("StatsMetric")+ .startTime(now.minus(1, ChronoUnit.HOURS))+ .endTime(now.plus(1, ChronoUnit.MINUTES))+ .period(3600)+ .statistics(Statistic.SUM)+ );++ assertThat(response.datapoints()).isNotEmpty();+ }++ @Test+ @DisplayName("PutMetricData with StatisticValues")+ void testPutMetricDataWithStatisticValues() {+ String namespace = "JavaTestStatisticValues";+ Instant now = Instant.now();++ // Put metric data with pre-calculated statistics+ cloudWatchClient.putMetricData(request -> request+ .namespace(namespace)+ .metricData(datum -> datum+ .metricName("AggregatedMetric")+ .statisticValues(stats -> stats+ .sampleCount(5.0)+ .sum(150.0)+ .minimum(20.0)+ .maximum(40.0)+ )+ .unit(StandardUnit.COUNT)+ )+ );++ // Query back the statistics+ GetMetricStatisticsResponse response = cloudWatchClient.getMetricStatistics(request -> request+ .namespace(namespace)+ .metricName("AggregatedMetric")+ .startTime(now.minus(1, ChronoUnit.HOURS))+ .endTime(now.plus(1, ChronoUnit.MINUTES))+ .period(3600)+ .statistics(+ Statistic.SUM,+ Statistic.AVERAGE,+ Statistic.MINIMUM,+ Statistic.MAXIMUM,+ Statistic.SAMPLE_COUNT+ )+ );++ assertThat(response.datapoints()).isNotEmpty();+ Datapoint dp = response.datapoints().get(0);+ assertThat(dp.sum()).isEqualTo(150.0);+ assertThat(dp.sampleCount()).isEqualTo(5.0);+ assertThat(dp.minimum()).isEqualTo(20.0);+ assertThat(dp.maximum()).isEqualTo(40.0);+ assertThat(dp.average()).isEqualTo(30.0); // sum / sampleCount+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/DynamoDbScanConditionTests.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/DynamoDbScanConditionTests.javanew file mode 100644index 0000000000..2380226bd3--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/DynamoDbScanConditionTests.java@@ -0,0 +1,136 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.dynamodb.DynamoDbClient;+import software.amazon.awssdk.services.dynamodb.model.*;++import java.util.Map;++import static org.assertj.core.api.Assertions.*;++@DisplayName("DynamoDB Scan Condition Filters")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class DynamoDbScanConditionTests {++ private static DynamoDbClient ddb;+ private static final String TABLE_NAME = "scan-condition-test";++ @BeforeAll+ static void setup() {+ ddb = TestFixtures.dynamoDbClient();++ ddb.createTable(CreateTableRequest.builder()+ .tableName(TABLE_NAME)+ .keySchema(KeySchemaElement.builder().attributeName("pk").keyType(KeyType.HASH).build())+ .attributeDefinitions(AttributeDefinition.builder().attributeName("pk").attributeType(ScalarAttributeType.S).build())+ .billingMode(BillingMode.PAY_PER_REQUEST)+ .build());++ for (int i = 1; i <= 5; i++) {+ ddb.putItem(PutItemRequest.builder().tableName(TABLE_NAME).item(Map.of(+ "pk", AttributeValue.fromS("item-" + i),+ "score", AttributeValue.fromN(String.valueOf(i * 10)),+ "name", AttributeValue.fromS("name-" + i)+ )).build());+ }+ }++ @AfterAll+ static void cleanup() {+ if (ddb != null) {+ try {+ ddb.deleteTable(DeleteTableRequest.builder().tableName(TABLE_NAME).build());+ } catch (Exception ignored) {}+ ddb.close();+ }+ }++ @Test+ @Order(1)+ @DisplayName("Scan with EQ filter")+ void scanFilterEq() {+ ScanResponse resp = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME)+ .scanFilter(Map.of("score", Condition.builder()+ .comparisonOperator(ComparisonOperator.EQ)+ .attributeValueList(AttributeValue.fromN("30"))+ .build()))+ .build());++ assertThat(resp.count()).isEqualTo(1);+ }++ @Test+ @Order(2)+ @DisplayName("Scan with GT filter")+ void scanFilterGt() {+ ScanResponse resp = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME)+ .scanFilter(Map.of("score", Condition.builder()+ .comparisonOperator(ComparisonOperator.GT)+ .attributeValueList(AttributeValue.fromN("30"))+ .build()))+ .build());++ assertThat(resp.count()).isEqualTo(2);+ }++ @Test+ @Order(3)+ @DisplayName("Scan with LE filter")+ void scanFilterLe() {+ ScanResponse resp = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME)+ .scanFilter(Map.of("score", Condition.builder()+ .comparisonOperator(ComparisonOperator.LE)+ .attributeValueList(AttributeValue.fromN("30"))+ .build()))+ .build());++ assertThat(resp.count()).isEqualTo(3);+ }++ @Test+ @Order(4)+ @DisplayName("Scan with BEGINS_WITH filter")+ void scanFilterBeginsWith() {+ ScanResponse resp = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME)+ .scanFilter(Map.of("name", Condition.builder()+ .comparisonOperator(ComparisonOperator.BEGINS_WITH)+ .attributeValueList(AttributeValue.fromS("name-"))+ .build()))+ .build());++ assertThat(resp.count()).isEqualTo(5);+ }++ @Test+ @Order(5)+ @DisplayName("Scan with BETWEEN filter")+ void scanFilterBetween() {+ ScanResponse resp = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME)+ .scanFilter(Map.of("score", Condition.builder()+ .comparisonOperator(ComparisonOperator.BETWEEN)+ .attributeValueList(AttributeValue.fromN("20"), AttributeValue.fromN("40"))+ .build()))+ .build());++ assertThat(resp.count()).isEqualTo(3);+ }++ @Test+ @Order(6)+ @DisplayName("Scan with multiple conditions (AND)")+ void scanFilterMultipleConditions() {+ ScanResponse resp = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME)+ .scanFilter(Map.of(+ "score", Condition.builder()+ .comparisonOperator(ComparisonOperator.GE)+ .attributeValueList(AttributeValue.fromN("30"))+ .build(),+ "name", Condition.builder()+ .comparisonOperator(ComparisonOperator.EQ)+ .attributeValueList(AttributeValue.fromS("name-3"))+ .build()))+ .build());++ assertThat(resp.count()).isEqualTo(1);+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/DynamoDbTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/DynamoDbTest.javanew file mode 100644index 0000000000..fcf01edb61--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/DynamoDbTest.java@@ -0,0 +1,346 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.dynamodb.DynamoDbClient;+import software.amazon.awssdk.services.dynamodb.model.AttributeDefinition;+import software.amazon.awssdk.services.dynamodb.model.AttributeValue;+import software.amazon.awssdk.services.dynamodb.model.BatchGetItemRequest;+import software.amazon.awssdk.services.dynamodb.model.BatchGetItemResponse;+import software.amazon.awssdk.services.dynamodb.model.BatchWriteItemRequest;+import software.amazon.awssdk.services.dynamodb.model.CreateTableRequest;+import software.amazon.awssdk.services.dynamodb.model.CreateTableResponse;+import software.amazon.awssdk.services.dynamodb.model.DeleteItemRequest;+import software.amazon.awssdk.services.dynamodb.model.DeleteRequest;+import software.amazon.awssdk.services.dynamodb.model.DeleteTableRequest;+import software.amazon.awssdk.services.dynamodb.model.DescribeTableRequest;+import software.amazon.awssdk.services.dynamodb.model.DescribeTableResponse;+import software.amazon.awssdk.services.dynamodb.model.DescribeTimeToLiveRequest;+import software.amazon.awssdk.services.dynamodb.model.DescribeTimeToLiveResponse;+import software.amazon.awssdk.services.dynamodb.model.GetItemRequest;+import software.amazon.awssdk.services.dynamodb.model.GetItemResponse;+import software.amazon.awssdk.services.dynamodb.model.KeySchemaElement;+import software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes;+import software.amazon.awssdk.services.dynamodb.model.KeyType;+import software.amazon.awssdk.services.dynamodb.model.ListTablesResponse;+import software.amazon.awssdk.services.dynamodb.model.ListTagsOfResourceRequest;+import software.amazon.awssdk.services.dynamodb.model.ListTagsOfResourceResponse;+import software.amazon.awssdk.services.dynamodb.model.ProvisionedThroughput;+import software.amazon.awssdk.services.dynamodb.model.PutItemRequest;+import software.amazon.awssdk.services.dynamodb.model.PutRequest;+import software.amazon.awssdk.services.dynamodb.model.QueryRequest;+import software.amazon.awssdk.services.dynamodb.model.QueryResponse;+import software.amazon.awssdk.services.dynamodb.model.ReturnValue;+import software.amazon.awssdk.services.dynamodb.model.ScalarAttributeType;+import software.amazon.awssdk.services.dynamodb.model.ScanRequest;+import software.amazon.awssdk.services.dynamodb.model.ScanResponse;+import software.amazon.awssdk.services.dynamodb.model.TableStatus;+import software.amazon.awssdk.services.dynamodb.model.TagResourceRequest;+import software.amazon.awssdk.services.dynamodb.model.TimeToLiveStatus;+import software.amazon.awssdk.services.dynamodb.model.UntagResourceRequest;+import software.amazon.awssdk.services.dynamodb.model.UpdateItemRequest;+import software.amazon.awssdk.services.dynamodb.model.UpdateItemResponse;+import software.amazon.awssdk.services.dynamodb.model.UpdateTableRequest;+import software.amazon.awssdk.services.dynamodb.model.UpdateTableResponse;+import software.amazon.awssdk.services.dynamodb.model.WriteRequest;++import java.util.List;+import java.util.Map;++import static org.assertj.core.api.Assertions.*;++@DisplayName("DynamoDB")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class DynamoDbTest {++ private static DynamoDbClient ddb;+ private static final String TABLE_NAME = "sdk-test-table";+ private static String tableArn;++ @BeforeAll+ static void setup() {+ ddb = TestFixtures.dynamoDbClient();+ }++ @AfterAll+ static void cleanup() {+ if (ddb != null) {+ try {+ ddb.deleteTable(DeleteTableRequest.builder().tableName(TABLE_NAME).build());+ } catch (Exception ignored) {}+ ddb.close();+ }+ }++ @Test+ @Order(1)+ void createTable() {+ CreateTableResponse response = ddb.createTable(CreateTableRequest.builder()+ .tableName(TABLE_NAME)+ .keySchema(+ KeySchemaElement.builder().attributeName("pk").keyType(KeyType.HASH).build(),+ KeySchemaElement.builder().attributeName("sk").keyType(KeyType.RANGE).build()+ )+ .attributeDefinitions(+ AttributeDefinition.builder().attributeName("pk").attributeType(ScalarAttributeType.S).build(),+ AttributeDefinition.builder().attributeName("sk").attributeType(ScalarAttributeType.S).build()+ )+ .provisionedThroughput(ProvisionedThroughput.builder()+ .readCapacityUnits(5L).writeCapacityUnits(5L).build())+ .build());++ tableArn = response.tableDescription().tableArn();+ assertThat(response.tableDescription().tableStatus()).isEqualTo(TableStatus.ACTIVE);+ }++ @Test+ @Order(2)+ void describeTable() {+ DescribeTableResponse response = ddb.describeTable(+ DescribeTableRequest.builder().tableName(TABLE_NAME).build());++ assertThat(response.table().tableName()).isEqualTo(TABLE_NAME);+ }++ @Test+ @Order(3)+ void listTables() {+ ListTablesResponse response = ddb.listTables();++ assertThat(response.tableNames()).contains(TABLE_NAME);+ }++ @Test+ @Order(4)+ void putItem() {+ for (int i = 1; i <= 3; i++) {+ ddb.putItem(PutItemRequest.builder()+ .tableName(TABLE_NAME)+ .item(Map.of(+ "pk", AttributeValue.builder().s("user-1").build(),+ "sk", AttributeValue.builder().s("item-" + i).build(),+ "data", AttributeValue.builder().s("value-" + i).build()+ ))+ .build());+ }+ ddb.putItem(PutItemRequest.builder()+ .tableName(TABLE_NAME)+ .item(Map.of(+ "pk", AttributeValue.builder().s("user-2").build(),+ "sk", AttributeValue.builder().s("item-1").build(),+ "data", AttributeValue.builder().s("other-value").build()+ ))+ .build());+ }++ @Test+ @Order(5)+ void getItem() {+ GetItemResponse response = ddb.getItem(GetItemRequest.builder()+ .tableName(TABLE_NAME)+ .key(Map.of(+ "pk", AttributeValue.builder().s("user-1").build(),+ "sk", AttributeValue.builder().s("item-2").build()+ ))+ .build());++ assertThat(response.hasItem()).isTrue();+ assertThat(response.item().get("data").s()).isEqualTo("value-2");+ }++ @Test+ @Order(6)+ void updateItem() {+ UpdateItemResponse response = ddb.updateItem(UpdateItemRequest.builder()+ .tableName(TABLE_NAME)+ .key(Map.of(+ "pk", AttributeValue.builder().s("user-1").build(),+ "sk", AttributeValue.builder().s("item-1").build()+ ))+ .updateExpression("SET #d = :newVal")+ .expressionAttributeNames(Map.of("#d", "data"))+ .expressionAttributeValues(Map.of(+ ":newVal", AttributeValue.builder().s("updated-value").build()+ ))+ .returnValues(ReturnValue.ALL_NEW)+ .build());++ assertThat(response.attributes().get("data").s()).isEqualTo("updated-value");+ }++ @Test+ @Order(7)+ void query() {+ QueryResponse response = ddb.query(QueryRequest.builder()+ .tableName(TABLE_NAME)+ .keyConditionExpression("pk = :pk")+ .expressionAttributeValues(Map.of(+ ":pk", AttributeValue.builder().s("user-1").build()+ ))+ .build());++ assertThat(response.count()).isEqualTo(3);+ }++ @Test+ @Order(8)+ void scan() {+ ScanResponse response = ddb.scan(ScanRequest.builder()+ .tableName(TABLE_NAME).build());++ assertThat(response.count()).isEqualTo(4);+ }++ @Test+ @Order(9)+ void batchWriteItem() {+ ddb.batchWriteItem(BatchWriteItemRequest.builder()+ .requestItems(Map.of(TABLE_NAME, List.of(+ WriteRequest.builder().putRequest(PutRequest.builder()+ .item(Map.of(+ "pk", AttributeValue.builder().s("user-3").build(),+ "sk", AttributeValue.builder().s("item-1").build(),+ "data", AttributeValue.builder().s("batch-value-1").build()+ )).build()).build(),+ WriteRequest.builder().putRequest(PutRequest.builder()+ .item(Map.of(+ "pk", AttributeValue.builder().s("user-3").build(),+ "sk", AttributeValue.builder().s("item-2").build(),+ "data", AttributeValue.builder().s("batch-value-2").build()+ )).build()).build()+ )))+ .build());++ ScanResponse scanResponse = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME).build());+ assertThat(scanResponse.count()).isEqualTo(6);+ }++ @Test+ @Order(10)+ void batchGetItem() {+ BatchGetItemResponse response = ddb.batchGetItem(BatchGetItemRequest.builder()+ .requestItems(Map.of(TABLE_NAME, KeysAndAttributes.builder()+ .keys(List.of(+ Map.of(+ "pk", AttributeValue.builder().s("user-1").build(),+ "sk", AttributeValue.builder().s("item-1").build()+ ),+ Map.of(+ "pk", AttributeValue.builder().s("user-3").build(),+ "sk", AttributeValue.builder().s("item-2").build()+ )+ ))+ .build()))+ .build());++ assertThat(response.responses().get(TABLE_NAME)).hasSize(2);+ }++ @Test+ @Order(11)+ void updateTable() {+ UpdateTableResponse response = ddb.updateTable(UpdateTableRequest.builder()+ .tableName(TABLE_NAME)+ .provisionedThroughput(ProvisionedThroughput.builder()+ .readCapacityUnits(10L).writeCapacityUnits(10L).build())+ .build());++ assertThat(response.tableDescription().provisionedThroughput().readCapacityUnits())+ .isEqualTo(10L);+ }++ @Test+ @Order(12)+ void describeTimeToLive() {+ DescribeTimeToLiveResponse response = ddb.describeTimeToLive(+ DescribeTimeToLiveRequest.builder().tableName(TABLE_NAME).build());++ assertThat(response.timeToLiveDescription().timeToLiveStatus())+ .isEqualTo(TimeToLiveStatus.DISABLED);+ }++ @Test+ @Order(13)+ void tagResource() {+ Assumptions.assumeTrue(tableArn != null);++ ddb.tagResource(TagResourceRequest.builder()+ .resourceArn(tableArn)+ .tags(+ software.amazon.awssdk.services.dynamodb.model.Tag.builder().key("env").value("test").build(),+ software.amazon.awssdk.services.dynamodb.model.Tag.builder().key("team").value("backend").build()+ )+ .build());+ }++ @Test+ @Order(14)+ void listTagsOfResource() {+ Assumptions.assumeTrue(tableArn != null);++ ListTagsOfResourceResponse response = ddb.listTagsOfResource(+ ListTagsOfResourceRequest.builder().resourceArn(tableArn).build());++ assertThat(response.tags())+ .anyMatch(t -> "env".equals(t.key()) && "test".equals(t.value()))+ .anyMatch(t -> "team".equals(t.key()) && "backend".equals(t.value()));+ }++ @Test+ @Order(15)+ void untagResource() {+ Assumptions.assumeTrue(tableArn != null);++ ddb.untagResource(UntagResourceRequest.builder()+ .resourceArn(tableArn).tagKeys("team").build());++ ListTagsOfResourceResponse response = ddb.listTagsOfResource(+ ListTagsOfResourceRequest.builder().resourceArn(tableArn).build());++ assertThat(response.tags())+ .anyMatch(t -> "env".equals(t.key()) && "test".equals(t.value()))+ .noneMatch(t -> "team".equals(t.key()));+ }++ @Test+ @Order(16)+ void batchWriteItemDelete() {+ ddb.batchWriteItem(BatchWriteItemRequest.builder()+ .requestItems(Map.of(TABLE_NAME, List.of(+ WriteRequest.builder().deleteRequest(DeleteRequest.builder()+ .key(Map.of(+ "pk", AttributeValue.builder().s("user-3").build(),+ "sk", AttributeValue.builder().s("item-1").build()+ )).build()).build(),+ WriteRequest.builder().deleteRequest(DeleteRequest.builder()+ .key(Map.of(+ "pk", AttributeValue.builder().s("user-3").build(),+ "sk", AttributeValue.builder().s("item-2").build()+ )).build()).build()+ )))+ .build());++ ScanResponse scanResponse = ddb.scan(ScanRequest.builder().tableName(TABLE_NAME).build());+ assertThat(scanResponse.count()).isEqualTo(4);+ }++ @Test+ @Order(17)+ void deleteItem() {+ ddb.deleteItem(DeleteItemRequest.builder()+ .tableName(TABLE_NAME)+ .key(Map.of(+ "pk", AttributeValue.builder().s("user-2").build(),+ "sk", AttributeValue.builder().s("item-1").build()+ ))+ .build());+ }++ @Test+ @Order(18)+ void deleteTable() {+ ddb.deleteTable(DeleteTableRequest.builder().tableName(TABLE_NAME).build());++ ListTablesResponse response = ddb.listTables();+ assertThat(response.tableNames()).doesNotContain(TABLE_NAME);+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/Ec2Tests.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/Ec2Tests.javanew file mode 100644index 0000000000..f2ea33e57f--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/Ec2Tests.java@@ -0,0 +1,621 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.ec2.Ec2Client;+import software.amazon.awssdk.services.ec2.model.*;++import java.util.List;++import static org.assertj.core.api.Assertions.*;++@DisplayName("EC2 Elastic Compute Cloud")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class Ec2Tests {++ private static Ec2Client ec2;+ private static String vpcId;+ private static String subnetId;+ private static String sgId;+ private static String keyName;+ private static String igwId;+ private static String rtId;+ private static String rtbAssocId;+ private static String allocationId;+ private static String instanceId;++ @BeforeAll+ static void setup() {+ ec2 = TestFixtures.ec2Client();+ keyName = "sdk-test-key";+ }++ @AfterAll+ static void cleanup() {+ if (ec2 != null) {+ try {+ if (instanceId != null) {+ ec2.terminateInstances(TerminateInstancesRequest.builder().instanceIds(instanceId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (allocationId != null) {+ ec2.releaseAddress(ReleaseAddressRequest.builder().allocationId(allocationId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (rtbAssocId != null) {+ ec2.disassociateRouteTable(DisassociateRouteTableRequest.builder().associationId(rtbAssocId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (igwId != null && vpcId != null) {+ ec2.detachInternetGateway(DetachInternetGatewayRequest.builder().internetGatewayId(igwId).vpcId(vpcId).build());+ ec2.deleteInternetGateway(DeleteInternetGatewayRequest.builder().internetGatewayId(igwId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (rtId != null) {+ ec2.deleteRouteTable(DeleteRouteTableRequest.builder().routeTableId(rtId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (subnetId != null) {+ ec2.deleteSubnet(DeleteSubnetRequest.builder().subnetId(subnetId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (sgId != null) {+ ec2.deleteSecurityGroup(DeleteSecurityGroupRequest.builder().groupId(sgId).build());+ }+ } catch (Exception ignored) {}+ try {+ if (keyName != null) {+ ec2.deleteKeyPair(DeleteKeyPairRequest.builder().keyName(keyName).build());+ }+ } catch (Exception ignored) {}+ try {+ if (vpcId != null) {+ ec2.deleteVpc(DeleteVpcRequest.builder().vpcId(vpcId).build());+ }+ } catch (Exception ignored) {}+ ec2.close();+ }+ }++ @Test+ @Order(1)+ @DisplayName("DescribeVpcs - default VPC exists")+ void describeVpcsDefaultExists() {+ DescribeVpcsResponse resp = ec2.describeVpcs();+ boolean hasDefault = resp.vpcs().stream().anyMatch(Vpc::isDefault);+ assertThat(hasDefault).isTrue();+ }++ @Test+ @Order(2)+ @DisplayName("DescribeSubnets - at least 3 default subnets")+ void describeSubnetsDefaultCount() {+ DescribeSubnetsResponse resp = ec2.describeSubnets();+ long defaultCount = resp.subnets().stream().filter(Subnet::defaultForAz).count();+ assertThat(defaultCount).isGreaterThanOrEqualTo(3);+ }++ @Test+ @Order(3)+ @DisplayName("DescribeSecurityGroups - default SG exists")+ void describeSecurityGroupsDefault() {+ DescribeSecurityGroupsResponse resp = ec2.describeSecurityGroups();+ boolean hasDefault = resp.securityGroups().stream()+ .anyMatch(sg -> "default".equals(sg.groupName()));+ assertThat(hasDefault).isTrue();+ }++ @Test+ @Order(4)+ @DisplayName("DescribeAvailabilityZones - 3 zones")+ void describeAvailabilityZones() {+ DescribeAvailabilityZonesResponse resp = ec2.describeAvailabilityZones();+ assertThat(resp.availabilityZones()).hasSize(3);+ }++ @Test+ @Order(5)+ @DisplayName("DescribeRegions - non-empty list")+ void describeRegions() {+ DescribeRegionsResponse resp = ec2.describeRegions();+ assertThat(resp.regions()).isNotEmpty();+ }++ @Test+ @Order(6)+ @DisplayName("DescribeImages - static AMI list")+ void describeImages() {+ DescribeImagesResponse resp = ec2.describeImages();+ assertThat(resp.images()).isNotEmpty();+ assertThat(resp.images()).allMatch(img -> img.imageId().startsWith("ami-"));+ }++ @Test+ @Order(7)+ @DisplayName("DescribeInstanceTypes - non-empty list")+ void describeInstanceTypes() {+ DescribeInstanceTypesResponse resp = ec2.describeInstanceTypes(+ DescribeInstanceTypesRequest.builder().build());+ assertThat(resp.instanceTypes()).isNotEmpty();+ }++ @Test+ @Order(8)+ @DisplayName("CreateVpc - create VPC with CIDR")+ void createVpc() {+ CreateVpcResponse resp = ec2.createVpc(CreateVpcRequest.builder()+ .cidrBlock("10.0.0.0/16").build());+ vpcId = resp.vpc().vpcId();++ assertThat(vpcId).isNotNull().startsWith("vpc-");+ assertThat(resp.vpc().cidrBlock()).isEqualTo("10.0.0.0/16");+ assertThat(resp.vpc().state()).isEqualTo(VpcState.AVAILABLE);+ }++ @Test+ @Order(9)+ @DisplayName("DescribeVpcs - by ID")+ void describeVpcsById() {+ DescribeVpcsResponse resp = ec2.describeVpcs(DescribeVpcsRequest.builder()+ .vpcIds(vpcId).build());++ assertThat(resp.vpcs()).hasSize(1);+ assertThat(resp.vpcs().get(0).vpcId()).isEqualTo(vpcId);+ }++ @Test+ @Order(10)+ @DisplayName("DescribeVpcs - non-existent ID returns error")+ void describeVpcsNotFound() {+ assertThatThrownBy(() -> ec2.describeVpcs(DescribeVpcsRequest.builder()+ .vpcIds("vpc-doesnotexist").build()))+ .isInstanceOf(Ec2Exception.class)+ .satisfies(e -> {+ Ec2Exception ec2Ex = (Ec2Exception) e;+ assertThat(ec2Ex.awsErrorDetails().errorCode()).isEqualTo("InvalidVpcID.NotFound");+ });+ }++ @Test+ @Order(11)+ @DisplayName("CreateSubnet - create subnet in VPC")+ void createSubnet() {+ CreateSubnetResponse resp = ec2.createSubnet(CreateSubnetRequest.builder()+ .vpcId(vpcId)+ .cidrBlock("10.0.1.0/24")+ .availabilityZone("us-east-1a")+ .build());+ subnetId = resp.subnet().subnetId();++ assertThat(subnetId).isNotNull().startsWith("subnet-");+ assertThat(resp.subnet().vpcId()).isEqualTo(vpcId);+ assertThat(resp.subnet().cidrBlock()).isEqualTo("10.0.1.0/24");+ }++ @Test+ @Order(12)+ @DisplayName("DescribeSubnets - by ID")+ void describeSubnetsById() {+ DescribeSubnetsResponse resp = ec2.describeSubnets(DescribeSubnetsRequest.builder()+ .subnetIds(subnetId).build());++ assertThat(resp.subnets()).hasSize(1);+ assertThat(resp.subnets().get(0).subnetId()).isEqualTo(subnetId);+ }++ @Test+ @Order(13)+ @DisplayName("CreateSecurityGroup - create SG in VPC")+ void createSecurityGroup() {+ CreateSecurityGroupResponse resp = ec2.createSecurityGroup(+ CreateSecurityGroupRequest.builder()+ .groupName("sdk-test-sg")+ .description("SDK test security group")+ .vpcId(vpcId)+ .build());+ sgId = resp.groupId();++ assertThat(sgId).isNotNull().startsWith("sg-");+ }++ @Test+ @Order(14)+ @DisplayName("AuthorizeSecurityGroupIngress - add SSH rule")+ void authorizeSecurityGroupIngress() {+ ec2.authorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest.builder()+ .groupId(sgId)+ .ipPermissions(IpPermission.builder()+ .ipProtocol("tcp")+ .fromPort(22)+ .toPort(22)+ .ipRanges(IpRange.builder().cidrIp("0.0.0.0/0").build())+ .build())+ .build());+ }++ @Test+ @Order(15)+ @DisplayName("DescribeSecurityGroups - ingress rule present")+ void describeSecurityGroupsIngressRule() {+ DescribeSecurityGroupsResponse resp = ec2.describeSecurityGroups(+ DescribeSecurityGroupsRequest.builder().groupIds(sgId).build());++ boolean hasSshRule = resp.securityGroups().get(0).ipPermissions().stream()+ .anyMatch(p -> p.fromPort() != null && p.fromPort() == 22);+ assertThat(hasSshRule).isTrue();+ }++ @Test+ @Order(16)+ @DisplayName("CreateKeyPair - create SSH key pair")+ void createKeyPair() {+ CreateKeyPairResponse resp = ec2.createKeyPair(CreateKeyPairRequest.builder()+ .keyName(keyName).build());++ assertThat(resp.keyName()).isEqualTo(keyName);+ assertThat(resp.keyPairId()).isNotNull();+ assertThat(resp.keyMaterial()).isNotNull().isNotEmpty();+ }++ @Test+ @Order(17)+ @DisplayName("DescribeKeyPairs - key pair exists")+ void describeKeyPairs() {+ DescribeKeyPairsResponse resp = ec2.describeKeyPairs(DescribeKeyPairsRequest.builder()+ .keyNames(keyName).build());++ assertThat(resp.keyPairs()).hasSize(1);+ assertThat(resp.keyPairs().get(0).keyName()).isEqualTo(keyName);+ }++ @Test+ @Order(18)+ @DisplayName("CreateKeyPair - duplicate returns error")+ void createKeyPairDuplicate() {+ assertThatThrownBy(() -> ec2.createKeyPair(CreateKeyPairRequest.builder()+ .keyName(keyName).build()))+ .isInstanceOf(Ec2Exception.class)+ .satisfies(e -> {+ Ec2Exception ec2Ex = (Ec2Exception) e;+ assertThat(ec2Ex.awsErrorDetails().errorCode()).isEqualTo("InvalidKeyPair.Duplicate");+ });+ }++ @Test+ @Order(19)+ @DisplayName("CreateInternetGateway - create IGW")+ void createInternetGateway() {+ CreateInternetGatewayResponse resp = ec2.createInternetGateway(+ CreateInternetGatewayRequest.builder().build());+ igwId = resp.internetGateway().internetGatewayId();++ assertThat(igwId).isNotNull().startsWith("igw-");+ }++ @Test+ @Order(20)+ @DisplayName("AttachInternetGateway - attach to VPC")+ void attachInternetGateway() {+ ec2.attachInternetGateway(AttachInternetGatewayRequest.builder()+ .internetGatewayId(igwId)+ .vpcId(vpcId)+ .build());+ }++ @Test+ @Order(21)+ @DisplayName("DescribeInternetGateways - attachment reflected")+ void describeInternetGatewaysAttached() {+ DescribeInternetGatewaysResponse resp = ec2.describeInternetGateways(+ DescribeInternetGatewaysRequest.builder()+ .internetGatewayIds(igwId).build());++ boolean attached = resp.internetGateways().get(0).attachments().stream()+ .anyMatch(a -> vpcId.equals(a.vpcId()));+ assertThat(attached).isTrue();+ }++ @Test+ @Order(22)+ @DisplayName("CreateRouteTable - create route table")+ void createRouteTable() {+ CreateRouteTableResponse resp = ec2.createRouteTable(CreateRouteTableRequest.builder()+ .vpcId(vpcId).build());+ rtId = resp.routeTable().routeTableId();++ assertThat(rtId).isNotNull().startsWith("rtb-");+ assertThat(resp.routeTable().vpcId()).isEqualTo(vpcId);+ }++ @Test+ @Order(23)+ @DisplayName("CreateRoute - add default route to IGW")+ void createRoute() {+ ec2.createRoute(CreateRouteRequest.builder()+ .routeTableId(rtId)+ .destinationCidrBlock("0.0.0.0/0")+ .gatewayId(igwId)+ .build());+ }++ @Test+ @Order(24)+ @DisplayName("AssociateRouteTable - associate with subnet")+ void associateRouteTable() {+ AssociateRouteTableResponse resp = ec2.associateRouteTable(+ AssociateRouteTableRequest.builder()+ .routeTableId(rtId)+ .subnetId(subnetId)+ .build());+ rtbAssocId = resp.associationId();++ assertThat(rtbAssocId).isNotNull().startsWith("rtbassoc-");+ }++ @Test+ @Order(25)+ @DisplayName("AllocateAddress - allocate EIP")+ void allocateAddress() {+ AllocateAddressResponse resp = ec2.allocateAddress(AllocateAddressRequest.builder()+ .domain(DomainType.VPC).build());+ allocationId = resp.allocationId();++ assertThat(allocationId).isNotNull().startsWith("eipalloc-");+ assertThat(resp.publicIp()).isNotNull();+ }++ @Test+ @Order(26)+ @DisplayName("DescribeAddresses - EIP exists")+ void describeAddresses() {+ DescribeAddressesResponse resp = ec2.describeAddresses(+ DescribeAddressesRequest.builder()+ .allocationIds(allocationId).build());++ assertThat(resp.addresses()).hasSize(1);+ assertThat(resp.addresses().get(0).allocationId()).isEqualTo(allocationId);+ }++ @Test+ @Order(27)+ @DisplayName("RunInstances - launch EC2 instance")+ void runInstances() {+ RunInstancesResponse resp = ec2.runInstances(RunInstancesRequest.builder()+ .imageId("ami-0abcdef1234567890")+ .instanceType(InstanceType.T2_MICRO)+ .minCount(1)+ .maxCount(1)+ .keyName(keyName)+ .subnetId(subnetId)+ .securityGroupIds(List.of(sgId))+ .build());+ instanceId = resp.instances().get(0).instanceId();+ Instance launched = resp.instances().get(0);++ assertThat(instanceId).isNotNull().startsWith("i-");+ assertThat(launched.state().name()).isEqualTo(InstanceStateName.RUNNING);+ assertThat(launched.instanceType()).isEqualTo(InstanceType.T2_MICRO);+ assertThat(launched.keyName()).isEqualTo(keyName);+ }++ @Test+ @Order(28)+ @DisplayName("DescribeInstances - by ID")+ void describeInstancesById() {+ DescribeInstancesResponse resp = ec2.describeInstances(+ DescribeInstancesRequest.builder().instanceIds(instanceId).build());+ Instance found = resp.reservations().get(0).instances().get(0);++ assertThat(found.instanceId()).isEqualTo(instanceId);+ assertThat(found.state().name()).isEqualTo(InstanceStateName.RUNNING);+ }++ @Test+ @Order(29)+ @DisplayName("DescribeInstances - filter by state")+ void describeInstancesFilterByState() {+ DescribeInstancesResponse resp = ec2.describeInstances(+ DescribeInstancesRequest.builder()+ .filters(Filter.builder()+ .name("instance-state-name")+ .values("running")+ .build())+ .build());++ boolean found = resp.reservations().stream()+ .flatMap(r -> r.instances().stream())+ .anyMatch(i -> instanceId.equals(i.instanceId()));+ assertThat(found).isTrue();+ }++ @Test+ @Order(30)+ @DisplayName("DescribeInstanceStatus - instance status available")+ void describeInstanceStatus() {+ DescribeInstanceStatusResponse resp = ec2.describeInstanceStatus(+ DescribeInstanceStatusRequest.builder().instanceIds(instanceId).build());++ assertThat(resp.instanceStatuses()).isNotEmpty();+ assertThat(resp.instanceStatuses().get(0).instanceId()).isEqualTo(instanceId);+ }++ @Test+ @Order(31)+ @DisplayName("AssociateAddress - associate EIP to instance")+ void associateAddress() {+ AssociateAddressResponse resp = ec2.associateAddress(+ AssociateAddressRequest.builder()+ .allocationId(allocationId)+ .instanceId(instanceId)+ .build());+ String assocId = resp.associationId();++ assertThat(assocId).isNotNull().startsWith("eipassoc-");+ }++ @Test+ @Order(32)+ @DisplayName("DisassociateAddress - disassociate EIP")+ void disassociateAddress() {+ // Get the association ID first+ DescribeAddressesResponse addrResp = ec2.describeAddresses(+ DescribeAddressesRequest.builder().allocationIds(allocationId).build());+ String assocId = addrResp.addresses().get(0).associationId();++ if (assocId != null) {+ ec2.disassociateAddress(DisassociateAddressRequest.builder()+ .associationId(assocId).build());+ }+ }++ @Test+ @Order(33)+ @DisplayName("StopInstances - stop instance")+ void stopInstances() {+ StopInstancesResponse resp = ec2.stopInstances(StopInstancesRequest.builder()+ .instanceIds(instanceId).build());++ assertThat(resp.stoppingInstances().get(0).currentState().name())+ .isEqualTo(InstanceStateName.STOPPED);+ }++ @Test+ @Order(34)+ @DisplayName("StartInstances - start instance")+ void startInstances() {+ StartInstancesResponse resp = ec2.startInstances(StartInstancesRequest.builder()+ .instanceIds(instanceId).build());++ assertThat(resp.startingInstances().get(0).currentState().name())+ .isEqualTo(InstanceStateName.RUNNING);+ }++ @Test+ @Order(35)+ @DisplayName("RebootInstances - reboot instance")+ void rebootInstances() {+ ec2.rebootInstances(RebootInstancesRequest.builder()+ .instanceIds(instanceId).build());+ }++ @Test+ @Order(36)+ @DisplayName("DescribeInstances - non-existent ID returns error")+ void describeInstancesNotFound() {+ assertThatThrownBy(() -> ec2.describeInstances(DescribeInstancesRequest.builder()+ .instanceIds("i-0000000000000dead").build()))+ .isInstanceOf(Ec2Exception.class)+ .satisfies(e -> {+ Ec2Exception ec2Ex = (Ec2Exception) e;+ assertThat(ec2Ex.awsErrorDetails().errorCode()).isEqualTo("InvalidInstanceID.NotFound");+ });+ }++ @Test+ @Order(37)+ @DisplayName("CreateTags - add tags to instance")+ void createTags() {+ ec2.createTags(CreateTagsRequest.builder()+ .resources(instanceId)+ .tags(software.amazon.awssdk.services.ec2.model.Tag.builder().key("Name").value("sdk-test-instance").build())+ .build());+ }++ @Test+ @Order(38)+ @DisplayName("DescribeInstances - tags reflected on instance")+ void describeInstancesTagsReflected() {+ DescribeInstancesResponse resp = ec2.describeInstances(+ DescribeInstancesRequest.builder().instanceIds(instanceId).build());++ boolean hasTag = resp.reservations().get(0).instances().get(0).tags().stream()+ .anyMatch(t -> "Name".equals(t.key()) && "sdk-test-instance".equals(t.value()));+ assertThat(hasTag).isTrue();+ }++ @Test+ @Order(39)+ @DisplayName("TerminateInstances - terminate instance")+ void terminateInstances() {+ TerminateInstancesResponse resp = ec2.terminateInstances(+ TerminateInstancesRequest.builder().instanceIds(instanceId).build());++ assertThat(resp.terminatingInstances().get(0).currentState().name())+ .isEqualTo(InstanceStateName.TERMINATED);+ }++ @Test+ @Order(40)+ @DisplayName("ReleaseAddress - release EIP")+ void releaseAddress() {+ ec2.releaseAddress(ReleaseAddressRequest.builder()+ .allocationId(allocationId).build());+ allocationId = null;+ }++ @Test+ @Order(41)+ @DisplayName("DisassociateRouteTable - disassociate route table")+ void disassociateRouteTable() {+ ec2.disassociateRouteTable(DisassociateRouteTableRequest.builder()+ .associationId(rtbAssocId).build());+ rtbAssocId = null;+ }++ @Test+ @Order(42)+ @DisplayName("DetachAndDeleteInternetGateway - cleanup IGW")+ void detachAndDeleteInternetGateway() {+ ec2.detachInternetGateway(DetachInternetGatewayRequest.builder()+ .internetGatewayId(igwId).vpcId(vpcId).build());+ ec2.deleteInternetGateway(DeleteInternetGatewayRequest.builder()+ .internetGatewayId(igwId).build());+ igwId = null;+ }++ @Test+ @Order(43)+ @DisplayName("DeleteRouteTable - delete route table")+ void deleteRouteTable() {+ ec2.deleteRouteTable(DeleteRouteTableRequest.builder()+ .routeTableId(rtId).build());+ rtId = null;+ }++ @Test+ @Order(44)+ @DisplayName("DeleteSubnet - delete subnet")+ void deleteSubnet() {+ ec2.deleteSubnet(DeleteSubnetRequest.builder().subnetId(subnetId).build());+ subnetId = null;+ }++ @Test+ @Order(45)+ @DisplayName("DeleteSecurityGroup - delete security group")+ void deleteSecurityGroup() {+ ec2.deleteSecurityGroup(DeleteSecurityGroupRequest.builder()+ .groupId(sgId).build());+ sgId = null;+ }++ @Test+ @Order(46)+ @DisplayName("DeleteKeyPair - delete key pair")+ void deleteKeyPair() {+ ec2.deleteKeyPair(DeleteKeyPairRequest.builder().keyName(keyName).build());+ }++ @Test+ @Order(47)+ @DisplayName("DeleteVpc - delete VPC")+ void deleteVpc() {+ ec2.deleteVpc(DeleteVpcRequest.builder().vpcId(vpcId).build());+ vpcId = null;+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/EcsTests.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/EcsTests.javanew file mode 100644index 0000000000..61422fe136--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/EcsTests.java@@ -0,0 +1,1026 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.ecs.EcsClient;+import software.amazon.awssdk.services.ecs.model.*;++import java.util.List;++import static org.assertj.core.api.Assertions.*;++@DisplayName("ECS Elastic Container Service")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class EcsTests {++ private static EcsClient ecs;+ private static String suffix;+ private static String clusterName;+ private static String family;+ private static String serviceName;+ private static Cluster cluster;+ private static TaskDefinition taskDef;+ private static TaskDefinition taskDefRev2;+ private static Service service;+ private static Task task;++ @BeforeAll+ static void setup() {+ ecs = TestFixtures.ecsClient();+ suffix = String.valueOf(System.currentTimeMillis() % 100000);+ clusterName = "sdk-test-cluster-" + suffix;+ family = "sdk-test-task-" + suffix;+ serviceName = "sdk-test-svc-" + suffix;+ }++ @AfterAll+ static void cleanup() {+ if (ecs != null) {+ // Stop any running tasks+ try {+ List<String> running = ecs.listTasks(ListTasksRequest.builder()+ .cluster(clusterName)+ .desiredStatus(DesiredStatus.RUNNING)+ .build()).taskArns();+ for (String taskArn : running) {+ ecs.stopTask(StopTaskRequest.builder()+ .cluster(clusterName)+ .task(taskArn)+ .build());+ }+ } catch (Exception ignored) {}++ try {+ if (serviceName != null) {+ ecs.deleteService(DeleteServiceRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .build());+ }+ } catch (Exception ignored) {}++ try {+ if (clusterName != null) {+ ecs.deleteCluster(DeleteClusterRequest.builder().cluster(clusterName).build());+ }+ } catch (Exception ignored) {}++ ecs.close();+ }+ }++ @Test+ @Order(1)+ @DisplayName("CreateCluster - create ECS cluster")+ void createCluster() {+ cluster = ecs.createCluster(CreateClusterRequest.builder()+ .clusterName(clusterName)+ .build()).cluster();++ assertThat(cluster).isNotNull();+ assertThat(cluster.clusterName()).isEqualTo(clusterName);+ assertThat(cluster.clusterArn()).isNotNull().contains(clusterName);+ assertThat(cluster.status()).isEqualTo("ACTIVE");+ }++ @Test+ @Order(2)+ @DisplayName("DescribeClusters - by name")+ void describeClustersByName() {+ List<Cluster> clusters = ecs.describeClusters(DescribeClustersRequest.builder()+ .clusters(clusterName)+ .build()).clusters();++ assertThat(clusters).hasSize(1);+ assertThat(clusters.get(0).clusterName()).isEqualTo(clusterName);+ }++ @Test+ @Order(3)+ @DisplayName("DescribeClusters - by ARN")+ void describeClustersById() {+ List<Cluster> clusters = ecs.describeClusters(DescribeClustersRequest.builder()+ .clusters(cluster.clusterArn())+ .build()).clusters();++ assertThat(clusters).hasSize(1);+ assertThat(clusters.get(0).clusterName()).isEqualTo(clusterName);+ }++ @Test+ @Order(4)+ @DisplayName("ListClusters - cluster in list")+ void listClusters() {+ List<String> arns = ecs.listClusters(ListClustersRequest.builder().build()).clusterArns();+ assertThat(arns).contains(cluster.clusterArn());+ }++ @Test+ @Order(5)+ @DisplayName("UpdateCluster - update cluster settings")+ void updateCluster() {+ Cluster updated = ecs.updateCluster(UpdateClusterRequest.builder()+ .cluster(clusterName)+ .settings(ClusterSetting.builder()+ .name(ClusterSettingName.CONTAINER_INSIGHTS)+ .value("enabled")+ .build())+ .build()).cluster();++ assertThat(updated).isNotNull();+ assertThat(updated.clusterName()).isEqualTo(clusterName);+ }++ @Test+ @Order(6)+ @DisplayName("UpdateClusterSettings - update settings")+ void updateClusterSettings() {+ Cluster updated = ecs.updateClusterSettings(UpdateClusterSettingsRequest.builder()+ .cluster(clusterName)+ .settings(ClusterSetting.builder()+ .name(ClusterSettingName.CONTAINER_INSIGHTS)+ .value("disabled")+ .build())+ .build()).cluster();++ assertThat(updated).isNotNull();+ assertThat(updated.clusterName()).isEqualTo(clusterName);+ }++ @Test+ @Order(7)+ @DisplayName("PutClusterCapacityProviders - add capacity providers")+ void putClusterCapacityProviders() {+ Cluster updated = ecs.putClusterCapacityProviders(PutClusterCapacityProvidersRequest.builder()+ .cluster(clusterName)+ .capacityProviders("FARGATE", "FARGATE_SPOT")+ .defaultCapacityProviderStrategy(+ CapacityProviderStrategyItem.builder()+ .capacityProvider("FARGATE")+ .weight(1)+ .build())+ .build()).cluster();++ assertThat(updated).isNotNull();+ assertThat(updated.hasCapacityProviders()).isTrue();+ assertThat(updated.capacityProviders()).contains("FARGATE");+ }++ @Test+ @Order(8)+ @DisplayName("RegisterTaskDefinition - create task definition")+ void registerTaskDefinition() {+ taskDef = ecs.registerTaskDefinition(RegisterTaskDefinitionRequest.builder()+ .family(family)+ .networkMode(NetworkMode.BRIDGE)+ .cpu("256")+ .memory("512")+ .containerDefinitions(+ ContainerDefinition.builder()+ .name("web")+ .image("nginx:alpine")+ .cpu(256)+ .memory(512)+ .essential(true)+ .portMappings(PortMapping.builder()+ .containerPort(80)+ .hostPort(0)+ .protocol(TransportProtocol.TCP)+ .build())+ .environment(KeyValuePair.builder()+ .name("ENV")+ .value("test")+ .build())+ .build())+ .build()).taskDefinition();++ assertThat(taskDef).isNotNull();+ assertThat(taskDef.family()).isEqualTo(family);+ assertThat(taskDef.revision()).isEqualTo(1);+ assertThat(taskDef.statusAsString()).isEqualTo("ACTIVE");+ assertThat(taskDef.taskDefinitionArn()).isNotNull().contains(family + ":1");+ assertThat(taskDef.containerDefinitions()).hasSize(1);+ assertThat(taskDef.containerDefinitions().get(0).name()).isEqualTo("web");+ }++ @Test+ @Order(9)+ @DisplayName("RegisterTaskDefinition - revision 2")+ void registerTaskDefinitionRevision2() {+ taskDefRev2 = ecs.registerTaskDefinition(RegisterTaskDefinitionRequest.builder()+ .family(family)+ .containerDefinitions(ContainerDefinition.builder()+ .name("app")+ .image("alpine:latest")+ .essential(true)+ .build())+ .build()).taskDefinition();++ assertThat(taskDefRev2.revision()).isEqualTo(2);+ assertThat(taskDefRev2.taskDefinitionArn()).contains(family + ":2");+ }++ @Test+ @Order(10)+ @DisplayName("DescribeTaskDefinition - by family:revision")+ void describeTaskDefinitionByFamilyRevision() {+ TaskDefinition described = ecs.describeTaskDefinition(DescribeTaskDefinitionRequest.builder()+ .taskDefinition(family + ":1")+ .build()).taskDefinition();++ assertThat(described.revision()).isEqualTo(1);+ assertThat(described.family()).isEqualTo(family);+ }++ @Test+ @Order(11)+ @DisplayName("DescribeTaskDefinition - by family (latest)")+ void describeTaskDefinitionByFamily() {+ TaskDefinition latest = ecs.describeTaskDefinition(DescribeTaskDefinitionRequest.builder()+ .taskDefinition(family)+ .build()).taskDefinition();++ assertThat(latest.revision()).isEqualTo(2);+ }++ @Test+ @Order(12)+ @DisplayName("DescribeTaskDefinition - by ARN")+ void describeTaskDefinitionByArn() {+ TaskDefinition byArn = ecs.describeTaskDefinition(DescribeTaskDefinitionRequest.builder()+ .taskDefinition(taskDef.taskDefinitionArn())+ .build()).taskDefinition();++ assertThat(byArn.taskDefinitionArn()).isEqualTo(taskDef.taskDefinitionArn());+ }++ @Test+ @Order(13)+ @DisplayName("ListTaskDefinitions - list all revisions")+ void listTaskDefinitions() {+ List<String> arns = ecs.listTaskDefinitions(ListTaskDefinitionsRequest.builder()+ .familyPrefix(family)+ .build()).taskDefinitionArns();++ assertThat(arns).hasSize(2);+ assertThat(arns).allMatch(a -> a.contains(family));+ }++ @Test+ @Order(14)+ @DisplayName("ListTaskDefinitionFamilies - list families")+ void listTaskDefinitionFamilies() {+ List<String> families = ecs.listTaskDefinitionFamilies(+ ListTaskDefinitionFamiliesRequest.builder()+ .familyPrefix(family)+ .build()).families();++ assertThat(families).hasSize(1);+ assertThat(families).contains(family);+ }++ @Test+ @Order(15)+ @DisplayName("TagResource - tag cluster")+ void tagResource() {+ ecs.tagResource(TagResourceRequest.builder()+ .resourceArn(cluster.clusterArn())+ .tags(software.amazon.awssdk.services.ecs.model.Tag.builder().key("env").value("test").build(),+ software.amazon.awssdk.services.ecs.model.Tag.builder().key("team").value("sdk").build())+ .build());+ }++ @Test+ @Order(16)+ @DisplayName("ListTagsForResource - verify tags")+ void listTagsForResource() {+ List<software.amazon.awssdk.services.ecs.model.Tag> tags = ecs.listTagsForResource(ListTagsForResourceRequest.builder()+ .resourceArn(cluster.clusterArn())+ .build()).tags();++ assertThat(tags).anyMatch(t -> "env".equals(t.key()) && "test".equals(t.value()));+ assertThat(tags).anyMatch(t -> "team".equals(t.key()) && "sdk".equals(t.value()));+ }++ @Test+ @Order(17)+ @DisplayName("UntagResource - remove tag")+ void untagResource() {+ ecs.untagResource(UntagResourceRequest.builder()+ .resourceArn(cluster.clusterArn())+ .tagKeys("team")+ .build());++ List<software.amazon.awssdk.services.ecs.model.Tag> tags = ecs.listTagsForResource(ListTagsForResourceRequest.builder()+ .resourceArn(cluster.clusterArn())+ .build()).tags();++ assertThat(tags).noneMatch(t -> "team".equals(t.key()));+ assertThat(tags).anyMatch(t -> "env".equals(t.key()));+ }++ @Test+ @Order(18)+ @DisplayName("PutAccountSetting - set account setting")+ void putAccountSetting() {+ Setting setting = ecs.putAccountSetting(PutAccountSettingRequest.builder()+ .name(SettingName.CONTAINER_INSIGHTS)+ .value("enabled")+ .build()).setting();++ assertThat(setting).isNotNull();+ assertThat(setting.value()).isEqualTo("enabled");+ }++ @Test+ @Order(19)+ @DisplayName("PutAccountSettingDefault - set default setting")+ void putAccountSettingDefault() {+ Setting setting = ecs.putAccountSettingDefault(PutAccountSettingDefaultRequest.builder()+ .name(SettingName.TASK_LONG_ARN_FORMAT)+ .value("enabled")+ .build()).setting();++ assertThat(setting).isNotNull();+ assertThat(setting.value()).isEqualTo("enabled");+ }++ @Test+ @Order(20)+ @DisplayName("ListAccountSettings - list settings")+ void listAccountSettings() {+ List<Setting> settings = ecs.listAccountSettings(ListAccountSettingsRequest.builder()+ .build()).settings();++ assertThat(settings.size()).isGreaterThanOrEqualTo(2);+ }++ @Test+ @Order(21)+ @DisplayName("DeleteAccountSetting - delete setting")+ void deleteAccountSetting() {+ ecs.deleteAccountSetting(DeleteAccountSettingRequest.builder()+ .name(SettingName.TASK_LONG_ARN_FORMAT)+ .build());+ }++ @Test+ @Order(22)+ @DisplayName("DescribeCapacityProviders - built-in providers")+ void describeCapacityProviders() {+ List<CapacityProvider> providers = ecs.describeCapacityProviders(+ DescribeCapacityProvidersRequest.builder()+ .capacityProviders("FARGATE", "FARGATE_SPOT")+ .build()).capacityProviders();++ assertThat(providers).hasSize(2);+ assertThat(providers).anyMatch(p -> "FARGATE".equals(p.name()));+ assertThat(providers).anyMatch(p -> "FARGATE_SPOT".equals(p.name()));+ }++ @Test+ @Order(23)+ @DisplayName("CreateCapacityProvider - create custom provider")+ void createCapacityProvider() {+ String cpName = "cp-" + suffix;+ CapacityProvider capacityProvider = ecs.createCapacityProvider(CreateCapacityProviderRequest.builder()+ .name(cpName)+ .autoScalingGroupProvider(AutoScalingGroupProvider.builder()+ .autoScalingGroupArn("arn:aws:autoscaling:us-east-1:000000000000:autoScalingGroup:123:autoScalingGroupName/test-asg")+ .build())+ .build()).capacityProvider();++ assertThat(capacityProvider).isNotNull();+ assertThat(capacityProvider.name()).isEqualTo(cpName);+ assertThat(capacityProvider.statusAsString()).isEqualTo("ACTIVE");++ // Update and delete+ CapacityProvider updated = ecs.updateCapacityProvider(UpdateCapacityProviderRequest.builder()+ .name(cpName)+ .autoScalingGroupProvider(AutoScalingGroupProviderUpdate.builder()+ .build())+ .build()).capacityProvider();++ assertThat(updated).isNotNull();+ assertThat(updated.name()).isEqualTo(cpName);++ CapacityProvider deleted = ecs.deleteCapacityProvider(DeleteCapacityProviderRequest.builder()+ .capacityProvider(cpName)+ .build()).capacityProvider();++ assertThat(deleted).isNotNull();+ assertThat(deleted.name()).isEqualTo(cpName);+ }++ @Test+ @Order(24)+ @DisplayName("RegisterContainerInstance - register instance")+ void registerContainerInstance() {+ ContainerInstance containerInstance = ecs.registerContainerInstance(RegisterContainerInstanceRequest.builder()+ .cluster(clusterName)+ .build()).containerInstance();++ assertThat(containerInstance).isNotNull();+ assertThat(containerInstance.containerInstanceArn()).isNotNull();+ assertThat(containerInstance.status()).isEqualTo("ACTIVE");+ assertThat(containerInstance.agentConnected()).isTrue();++ String instanceArn = containerInstance.containerInstanceArn();++ // List and describe+ List<String> arns = ecs.listContainerInstances(ListContainerInstancesRequest.builder()+ .cluster(clusterName)+ .build()).containerInstanceArns();+ assertThat(arns).contains(instanceArn);++ List<ContainerInstance> instances = ecs.describeContainerInstances(+ DescribeContainerInstancesRequest.builder()+ .cluster(clusterName)+ .containerInstances(instanceArn)+ .build()).containerInstances();++ assertThat(instances).hasSize(1);+ assertThat(instances.get(0).containerInstanceArn()).isEqualTo(instanceArn);++ // Update agent+ ContainerInstance updated = ecs.updateContainerAgent(UpdateContainerAgentRequest.builder()+ .cluster(clusterName)+ .containerInstance(instanceArn)+ .build()).containerInstance();++ assertThat(updated).isNotNull();+ assertThat(updated.containerInstanceArn()).isEqualTo(instanceArn);++ // Update state+ List<ContainerInstance> updatedState = ecs.updateContainerInstancesState(+ UpdateContainerInstancesStateRequest.builder()+ .cluster(clusterName)+ .containerInstances(instanceArn)+ .status(ContainerInstanceStatus.DRAINING)+ .build()).containerInstances();++ assertThat(updatedState).isNotEmpty();+ assertThat(updatedState.get(0).status()).isEqualTo("DRAINING");++ // Set back to ACTIVE for StartTask+ ecs.updateContainerInstancesState(UpdateContainerInstancesStateRequest.builder()+ .cluster(clusterName)+ .containerInstances(instanceArn)+ .status(ContainerInstanceStatus.ACTIVE)+ .build());++ // StartTask+ List<Task> started = ecs.startTask(StartTaskRequest.builder()+ .cluster(clusterName)+ .containerInstances(instanceArn)+ .taskDefinition(family + ":1")+ .build()).tasks();++ assertThat(started).hasSize(1);+ assertThat(started.get(0).taskArn()).isNotNull();+ assertThat(started.get(0).containerInstanceArn()).isEqualTo(instanceArn);++ // Stop the task+ if (!started.isEmpty()) {+ ecs.stopTask(StopTaskRequest.builder()+ .cluster(clusterName)+ .task(started.get(0).taskArn())+ .build());+ }++ // Deregister+ ContainerInstance deregistered = ecs.deregisterContainerInstance(+ DeregisterContainerInstanceRequest.builder()+ .cluster(clusterName)+ .containerInstance(instanceArn)+ .force(true)+ .build()).containerInstance();++ assertThat(deregistered).isNotNull();+ assertThat(deregistered.status()).isEqualTo("INACTIVE");+ }++ @Test+ @Order(25)+ @DisplayName("PutAttributes - set attributes")+ void putAttributes() {+ String targetId = cluster.clusterArn();+ List<Attribute> stored = ecs.putAttributes(PutAttributesRequest.builder()+ .cluster(clusterName)+ .attributes(+ Attribute.builder().name("com.example.attr").value("val1")+ .targetType(TargetType.CONTAINER_INSTANCE).targetId(targetId).build())+ .build()).attributes();++ assertThat(stored).isNotEmpty();++ // List attributes+ List<Attribute> attrs = ecs.listAttributes(ListAttributesRequest.builder()+ .cluster(clusterName)+ .targetType(TargetType.CONTAINER_INSTANCE)+ .build()).attributes();++ assertThat(attrs).anyMatch(a -> "com.example.attr".equals(a.name()));++ // Delete attributes+ List<Attribute> deleted = ecs.deleteAttributes(DeleteAttributesRequest.builder()+ .cluster(clusterName)+ .attributes(Attribute.builder().name("com.example.attr")+ .targetType(TargetType.CONTAINER_INSTANCE).targetId(targetId).build())+ .build()).attributes();++ assertThat(deleted).isNotEmpty();+ }++ @Test+ @Order(26)+ @DisplayName("DiscoverPollEndpoint - get poll endpoint")+ void discoverPollEndpoint() {+ DiscoverPollEndpointResponse pollResp = ecs.discoverPollEndpoint(+ DiscoverPollEndpointRequest.builder()+ .cluster(clusterName)+ .build());++ assertThat(pollResp.endpoint()).isNotNull().isNotEmpty();+ }++ @Test+ @Order(27)+ @DisplayName("SubmitTaskStateChange - submit state change")+ void submitTaskStateChange() {+ String ack = ecs.submitTaskStateChange(SubmitTaskStateChangeRequest.builder()+ .cluster(clusterName)+ .status("RUNNING")+ .build()).acknowledgment();++ assertThat(ack).isNotNull().isNotEmpty();+ }++ @Test+ @Order(28)+ @DisplayName("SubmitContainerStateChange - submit container state")+ void submitContainerStateChange() {+ String ack = ecs.submitContainerStateChange(SubmitContainerStateChangeRequest.builder()+ .cluster(clusterName)+ .status("RUNNING")+ .build()).acknowledgment();++ assertThat(ack).isNotNull().isNotEmpty();+ }++ @Test+ @Order(29)+ @DisplayName("SubmitAttachmentStateChanges - submit attachment state")+ void submitAttachmentStateChanges() {+ String ack = ecs.submitAttachmentStateChanges(SubmitAttachmentStateChangesRequest.builder()+ .cluster(clusterName)+ .attachments(AttachmentStateChange.builder()+ .attachmentArn("arn:aws:ecs:us-east-1:000000000000:attachment/test")+ .status("ATTACHED")+ .build())+ .build()).acknowledgment();++ assertThat(ack).isNotNull().isNotEmpty();+ }++ @Test+ @Order(30)+ @DisplayName("RunTask - run task in cluster")+ void runTask() {+ List<Task> tasks = ecs.runTask(RunTaskRequest.builder()+ .cluster(clusterName)+ .taskDefinition(family + ":1")+ .count(1)+ .launchType(LaunchType.FARGATE)+ .startedBy("sdk-test")+ .build()).tasks();++ assertThat(tasks).hasSize(1);+ task = tasks.get(0);+ assertThat(task.taskArn()).isNotNull();+ assertThat(task.clusterArn()).isEqualTo(cluster.clusterArn());+ assertThat(task.taskDefinitionArn()).isEqualTo(taskDef.taskDefinitionArn());+ assertThat(task.lastStatus()).isEqualTo("RUNNING");+ }++ @Test+ @Order(31)+ @DisplayName("DescribeTasks - describe running task")+ void describeTasks() {+ List<Task> described = ecs.describeTasks(DescribeTasksRequest.builder()+ .cluster(clusterName)+ .tasks(task.taskArn())+ .build()).tasks();++ assertThat(described).hasSize(1);+ assertThat(described.get(0).taskArn()).isEqualTo(task.taskArn());+ assertThat(described.get(0).lastStatus()).isEqualTo("RUNNING");+ assertThat(described.get(0).startedBy()).isEqualTo("sdk-test");+ }++ @Test+ @Order(32)+ @DisplayName("ListTasks - list tasks in cluster")+ void listTasks() {+ List<String> taskArns = ecs.listTasks(ListTasksRequest.builder()+ .cluster(clusterName)+ .build()).taskArns();++ assertThat(taskArns).contains(task.taskArn());+ }++ @Test+ @Order(33)+ @DisplayName("ListTasks - filter by running status")+ void listTasksRunning() {+ List<String> taskArns = ecs.listTasks(ListTasksRequest.builder()+ .cluster(clusterName)+ .desiredStatus(DesiredStatus.RUNNING)+ .build()).taskArns();++ assertThat(taskArns).contains(task.taskArn());+ }++ @Test+ @Order(34)+ @DisplayName("DescribeClusters - runningTasksCount updated")+ void describeClustersRunningCount() {+ Cluster updated = ecs.describeClusters(DescribeClustersRequest.builder()+ .clusters(clusterName)+ .build()).clusters().get(0);++ assertThat(updated.runningTasksCount()).isEqualTo(1);+ }++ @Test+ @Order(35)+ @DisplayName("UpdateTaskProtection - enable protection")+ void updateTaskProtection() {+ List<ProtectedTask> protectedTasks = ecs.updateTaskProtection(+ UpdateTaskProtectionRequest.builder()+ .cluster(clusterName)+ .tasks(task.taskArn())+ .protectionEnabled(true)+ .expiresInMinutes(60)+ .build()).protectedTasks();++ assertThat(protectedTasks).hasSize(1);+ assertThat(protectedTasks.get(0).protectionEnabled()).isTrue();+ assertThat(protectedTasks.get(0).expirationDate()).isNotNull();+ }++ @Test+ @Order(36)+ @DisplayName("GetTaskProtection - verify protection")+ void getTaskProtection() {+ List<ProtectedTask> protectedTasks = ecs.getTaskProtection(GetTaskProtectionRequest.builder()+ .cluster(clusterName)+ .tasks(task.taskArn())+ .build()).protectedTasks();++ assertThat(protectedTasks).hasSize(1);+ assertThat(protectedTasks.get(0).protectionEnabled()).isTrue();++ // Disable protection+ ecs.updateTaskProtection(UpdateTaskProtectionRequest.builder()+ .cluster(clusterName)+ .tasks(task.taskArn())+ .protectionEnabled(false)+ .build());+ }++ @Test+ @Order(37)+ @DisplayName("StopTask - stop running task")+ void stopTask() {+ Task stopped = ecs.stopTask(StopTaskRequest.builder()+ .cluster(clusterName)+ .task(task.taskArn())+ .reason("sdk-test-stop")+ .build()).task();++ assertThat(stopped.lastStatus()).isEqualTo("STOPPED");+ assertThat(stopped.stoppedReason()).isEqualTo("sdk-test-stop");+ assertThat(stopped.stoppedAt()).isNotNull();+ }++ @Test+ @Order(38)+ @DisplayName("DescribeTasks - verify task stopped")+ void describeTasksStopped() {+ Task stoppedTask = ecs.describeTasks(DescribeTasksRequest.builder()+ .cluster(clusterName)+ .tasks(task.taskArn())+ .build()).tasks().get(0);++ assertThat(stoppedTask.lastStatus()).isEqualTo("STOPPED");+ }++ @Test+ @Order(39)+ @DisplayName("ListTasks - filter by stopped status")+ void listTasksStopped() {+ List<String> taskArns = ecs.listTasks(ListTasksRequest.builder()+ .cluster(clusterName)+ .desiredStatus(DesiredStatus.STOPPED)+ .build()).taskArns();++ assertThat(taskArns).contains(task.taskArn());+ }++ @Test+ @Order(40)+ @DisplayName("CreateService - create ECS service")+ void createService() {+ service = ecs.createService(CreateServiceRequest.builder()+ .cluster(clusterName)+ .serviceName(serviceName)+ .taskDefinition(family + ":1")+ .desiredCount(1)+ .launchType(LaunchType.FARGATE)+ .build()).service();++ assertThat(service).isNotNull();+ assertThat(service.serviceName()).isEqualTo(serviceName);+ assertThat(service.serviceArn()).isNotNull().contains(serviceName);+ assertThat(service.desiredCount()).isEqualTo(1);+ assertThat(service.status()).isEqualTo("ACTIVE");+ }++ @Test+ @Order(41)+ @DisplayName("CreateService - duplicate fails")+ void createServiceDuplicate() {+ assertThatThrownBy(() -> ecs.createService(CreateServiceRequest.builder()+ .cluster(clusterName)+ .serviceName(serviceName)+ .taskDefinition(family + ":1")+ .desiredCount(1)+ .build()))+ .isInstanceOf(InvalidParameterException.class);+ }++ @Test+ @Order(42)+ @DisplayName("DescribeServices - describe service")+ void describeServices() {+ List<Service> services = ecs.describeServices(DescribeServicesRequest.builder()+ .cluster(clusterName)+ .services(serviceName)+ .build()).services();++ assertThat(services).hasSize(1);+ assertThat(services.get(0).serviceName()).isEqualTo(serviceName);+ assertThat(services.get(0).desiredCount()).isEqualTo(1);+ }++ @Test+ @Order(43)+ @DisplayName("ListServices - list services")+ void listServices() {+ List<String> serviceArns = ecs.listServices(ListServicesRequest.builder()+ .cluster(clusterName)+ .build()).serviceArns();++ assertThat(serviceArns).contains(service.serviceArn());+ }++ @Test+ @Order(44)+ @DisplayName("Service reconciler - reaches desiredCount")+ void serviceReconciler() throws InterruptedException {+ boolean reconciled = false;+ for (int i = 0; i < 10; i++) {+ Thread.sleep(1000);+ Service svc = ecs.describeServices(DescribeServicesRequest.builder()+ .cluster(clusterName)+ .services(serviceName)+ .build()).services().get(0);+ if (svc.runningCount() >= 1) {+ reconciled = true;+ break;+ }+ }+ assertThat(reconciled).isTrue();+ }++ @Test+ @Order(45)+ @DisplayName("ListServiceDeployments - list deployments")+ void listServiceDeployments() {+ List<ServiceDeploymentBrief> briefs = ecs.listServiceDeployments(+ ListServiceDeploymentsRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .build()).serviceDeployments();++ assertThat(briefs).isNotEmpty();++ if (!briefs.isEmpty()) {+ String deploymentArn = briefs.get(0).serviceDeploymentArn();+ List<ServiceDeployment> deployments = ecs.describeServiceDeployments(+ DescribeServiceDeploymentsRequest.builder()+ .serviceDeploymentArns(deploymentArn)+ .build()).serviceDeployments();++ assertThat(deployments).hasSize(1);+ assertThat(deployments.get(0).serviceArn()).isEqualTo(service.serviceArn());+ }+ }++ @Test+ @Order(46)+ @DisplayName("UpdateService - update desiredCount to 0")+ void updateServiceDesiredCount() {+ Service updated = ecs.updateService(UpdateServiceRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .desiredCount(0)+ .build()).service();++ assertThat(updated.desiredCount()).isEqualTo(0);+ }++ @Test+ @Order(47)+ @DisplayName("UpdateService - update taskDefinition")+ void updateServiceTaskDefinition() {+ Service updated = ecs.updateService(UpdateServiceRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .taskDefinition(family + ":2")+ .build()).service();++ assertThat(updated.taskDefinition()).isNotNull().contains(family + ":2");+ }++ @Test+ @Order(48)+ @DisplayName("CreateTaskSet - create task set")+ void createTaskSet() {+ software.amazon.awssdk.services.ecs.model.TaskSet ts =+ ecs.createTaskSet(CreateTaskSetRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .taskDefinition(family + ":1")+ .launchType(LaunchType.FARGATE)+ .scale(Scale.builder().value(50.0).unit(ScaleUnit.PERCENT).build())+ .build()).taskSet();++ assertThat(ts).isNotNull();+ assertThat(ts.taskSetArn()).isNotNull();+ assertThat(ts.status()).isEqualTo("ACTIVE");++ String taskSetArn = ts.taskSetArn();++ // Describe task sets+ List<software.amazon.awssdk.services.ecs.model.TaskSet> sets =+ ecs.describeTaskSets(DescribeTaskSetsRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .taskSets(taskSetArn)+ .build()).taskSets();++ assertThat(sets).hasSize(1);+ assertThat(sets.get(0).taskSetArn()).isEqualTo(taskSetArn);++ // Update task set+ software.amazon.awssdk.services.ecs.model.TaskSet updated =+ ecs.updateTaskSet(UpdateTaskSetRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .taskSet(taskSetArn)+ .scale(Scale.builder().value(100.0).unit(ScaleUnit.PERCENT).build())+ .build()).taskSet();++ assertThat(updated).isNotNull();+ assertThat(updated.scale().value()).isEqualTo(100.0);++ // Update primary task set+ software.amazon.awssdk.services.ecs.model.TaskSet primary =+ ecs.updateServicePrimaryTaskSet(UpdateServicePrimaryTaskSetRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .primaryTaskSet(taskSetArn)+ .build()).taskSet();++ assertThat(primary).isNotNull();+ assertThat(primary.status()).isEqualTo("PRIMARY");++ // Delete task set+ software.amazon.awssdk.services.ecs.model.TaskSet deleted =+ ecs.deleteTaskSet(DeleteTaskSetRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .taskSet(taskSetArn)+ .build()).taskSet();++ assertThat(deleted).isNotNull();+ }++ @Test+ @Order(49)+ @DisplayName("DeleteService - delete service")+ void deleteService() {+ Service deleted = ecs.deleteService(DeleteServiceRequest.builder()+ .cluster(clusterName)+ .service(serviceName)+ .build()).service();++ assertThat(deleted.status()).isEqualTo("INACTIVE");+ }++ @Test+ @Order(50)+ @DisplayName("ListServices - service no longer in list")+ void listServicesAfterDelete() {+ List<String> serviceArns = ecs.listServices(ListServicesRequest.builder()+ .cluster(clusterName)+ .build()).serviceArns();++ assertThat(serviceArns).doesNotContain(service.serviceArn());+ }++ @Test+ @Order(51)+ @DisplayName("DeregisterTaskDefinition - deregister revision 1")+ void deregisterTaskDefinition() {+ TaskDefinition deregistered = ecs.deregisterTaskDefinition(+ DeregisterTaskDefinitionRequest.builder()+ .taskDefinition(family + ":1")+ .build()).taskDefinition();++ assertThat(deregistered.statusAsString()).isEqualTo("INACTIVE");+ }++ @Test+ @Order(52)+ @DisplayName("ListTaskDefinitions - filter by ACTIVE")+ void listTaskDefinitionsActive() {+ List<String> activeArns = ecs.listTaskDefinitions(ListTaskDefinitionsRequest.builder()+ .familyPrefix(family)+ .status(TaskDefinitionStatus.ACTIVE)+ .build()).taskDefinitionArns();++ assertThat(activeArns).hasSize(1);+ assertThat(activeArns.get(0)).contains(family + ":2");+ }++ @Test+ @Order(53)+ @DisplayName("DeleteTaskDefinitions - delete INACTIVE")+ void deleteTaskDefinitions() {+ List<TaskDefinition> deletedDefs = ecs.deleteTaskDefinitions(+ DeleteTaskDefinitionsRequest.builder()+ .taskDefinitions(family + ":1")+ .build()).taskDefinitions();++ assertThat(deletedDefs).hasSize(1);+ assertThat(deletedDefs.get(0).taskDefinitionArn()).contains(family + ":1");+ }++ @Test+ @Order(54)+ @DisplayName("DeleteCluster - fails with running tasks")+ void deleteClusterFailsWithTasks() {+ ecs.runTask(RunTaskRequest.builder()+ .cluster(clusterName)+ .taskDefinition(family + ":2")+ .count(1)+ .build());++ assertThatThrownBy(() -> ecs.deleteCluster(DeleteClusterRequest.builder()+ .cluster(clusterName).build()))+ .isInstanceOf(ClusterContainsTasksException.class);+ }++ @Test+ @Order(55)+ @DisplayName("DeleteCluster - delete after stopping tasks")+ void deleteCluster() {+ List<String> running = ecs.listTasks(ListTasksRequest.builder()+ .cluster(clusterName)+ .desiredStatus(DesiredStatus.RUNNING)+ .build()).taskArns();++ for (String taskArn : running) {+ ecs.stopTask(StopTaskRequest.builder()+ .cluster(clusterName)+ .task(taskArn)+ .build());+ }++ Cluster deleted = ecs.deleteCluster(DeleteClusterRequest.builder()+ .cluster(clusterName)+ .build()).cluster();++ assertThat(deleted.status()).isEqualTo("INACTIVE");+ }++ @Test+ @Order(56)+ @DisplayName("ListClusters - cluster no longer in list")+ void listClustersAfterDelete() {+ List<String> arns = ecs.listClusters(ListClustersRequest.builder().build()).clusterArns();+ assertThat(arns).doesNotContain(cluster.clusterArn());+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/IamTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/IamTest.javanew file mode 100644index 0000000000..2088f70fad--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/IamTest.java@@ -0,0 +1,455 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.iam.IamClient;+import software.amazon.awssdk.services.iam.model.AddRoleToInstanceProfileRequest;+import software.amazon.awssdk.services.iam.model.AddUserToGroupRequest;+import software.amazon.awssdk.services.iam.model.AttachRolePolicyRequest;+import software.amazon.awssdk.services.iam.model.AttachUserPolicyRequest;+import software.amazon.awssdk.services.iam.model.CreateAccessKeyRequest;+import software.amazon.awssdk.services.iam.model.CreateAccessKeyResponse;+import software.amazon.awssdk.services.iam.model.CreateGroupRequest;+import software.amazon.awssdk.services.iam.model.CreateGroupResponse;+import software.amazon.awssdk.services.iam.model.CreateInstanceProfileRequest;+import software.amazon.awssdk.services.iam.model.CreateInstanceProfileResponse;+import software.amazon.awssdk.services.iam.model.CreatePolicyRequest;+import software.amazon.awssdk.services.iam.model.CreatePolicyResponse;+import software.amazon.awssdk.services.iam.model.CreateRoleRequest;+import software.amazon.awssdk.services.iam.model.CreateRoleResponse;+import software.amazon.awssdk.services.iam.model.CreateUserRequest;+import software.amazon.awssdk.services.iam.model.CreateUserResponse;+import software.amazon.awssdk.services.iam.model.DeleteAccessKeyRequest;+import software.amazon.awssdk.services.iam.model.DeleteGroupRequest;+import software.amazon.awssdk.services.iam.model.DeleteInstanceProfileRequest;+import software.amazon.awssdk.services.iam.model.DeletePolicyRequest;+import software.amazon.awssdk.services.iam.model.DeleteRoleRequest;+import software.amazon.awssdk.services.iam.model.DeleteRolePolicyRequest;+import software.amazon.awssdk.services.iam.model.DeleteUserRequest;+import software.amazon.awssdk.services.iam.model.DetachRolePolicyRequest;+import software.amazon.awssdk.services.iam.model.DetachUserPolicyRequest;+import software.amazon.awssdk.services.iam.model.GetGroupRequest;+import software.amazon.awssdk.services.iam.model.GetGroupResponse;+import software.amazon.awssdk.services.iam.model.GetInstanceProfileRequest;+import software.amazon.awssdk.services.iam.model.GetInstanceProfileResponse;+import software.amazon.awssdk.services.iam.model.GetPolicyRequest;+import software.amazon.awssdk.services.iam.model.GetPolicyResponse;+import software.amazon.awssdk.services.iam.model.GetRoleRequest;+import software.amazon.awssdk.services.iam.model.GetRoleResponse;+import software.amazon.awssdk.services.iam.model.GetRolePolicyRequest;+import software.amazon.awssdk.services.iam.model.GetRolePolicyResponse;+import software.amazon.awssdk.services.iam.model.GetUserRequest;+import software.amazon.awssdk.services.iam.model.GetUserResponse;+import software.amazon.awssdk.services.iam.model.ListAccessKeysRequest;+import software.amazon.awssdk.services.iam.model.ListAccessKeysResponse;+import software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesRequest;+import software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesResponse;+import software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesRequest;+import software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesResponse;+import software.amazon.awssdk.services.iam.model.ListGroupsForUserRequest;+import software.amazon.awssdk.services.iam.model.ListGroupsForUserResponse;+import software.amazon.awssdk.services.iam.model.ListInstanceProfilesResponse;+import software.amazon.awssdk.services.iam.model.ListRolePoliciesRequest;+import software.amazon.awssdk.services.iam.model.ListRolePoliciesResponse;+import software.amazon.awssdk.services.iam.model.ListRolesResponse;+import software.amazon.awssdk.services.iam.model.ListUserTagsRequest;+import software.amazon.awssdk.services.iam.model.ListUserTagsResponse;+import software.amazon.awssdk.services.iam.model.ListUsersResponse;+import software.amazon.awssdk.services.iam.model.NoSuchEntityException;+import software.amazon.awssdk.services.iam.model.PutRolePolicyRequest;+import software.amazon.awssdk.services.iam.model.RemoveRoleFromInstanceProfileRequest;+import software.amazon.awssdk.services.iam.model.RemoveUserFromGroupRequest;+import software.amazon.awssdk.services.iam.model.StatusType;+import software.amazon.awssdk.services.iam.model.TagUserRequest;+import software.amazon.awssdk.services.iam.model.UntagUserRequest;+import software.amazon.awssdk.services.iam.model.UpdateAccessKeyRequest;++import static org.assertj.core.api.Assertions.*;++@DisplayName("IAM Identity and Access Management")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class IamTest {++ private static IamClient iam;+ private static final String USER_NAME = "sdk-test-user";+ private static final String GROUP_NAME = "sdk-test-group";+ private static final String ROLE_NAME = "sdk-test-role";+ private static final String POLICY_NAME = "sdk-test-policy";+ private static final String INSTANCE_PROFILE_NAME = "sdk-test-profile";+ private static final String TRUST_POLICY = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\","+ + "\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}";+ private static final String POLICY_DOCUMENT = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\","+ + "\"Action\":\"s3:GetObject\",\"Resource\":\"*\"}]}";+ private static String policyArn;+ private static String accessKeyId;++ @BeforeAll+ static void setup() {+ iam = TestFixtures.iamClient();+ }++ @AfterAll+ static void cleanup() {+ if (iam != null) {+ try {+ iam.removeRoleFromInstanceProfile(RemoveRoleFromInstanceProfileRequest.builder()+ .instanceProfileName(INSTANCE_PROFILE_NAME).roleName(ROLE_NAME).build());+ } catch (Exception ignored) {}+ try {+ iam.deleteInstanceProfile(DeleteInstanceProfileRequest.builder()+ .instanceProfileName(INSTANCE_PROFILE_NAME).build());+ } catch (Exception ignored) {}+ try {+ iam.deleteRolePolicy(DeleteRolePolicyRequest.builder()+ .roleName(ROLE_NAME).policyName("inline-exec").build());+ } catch (Exception ignored) {}+ if (policyArn != null) {+ try {+ iam.detachRolePolicy(DetachRolePolicyRequest.builder()+ .roleName(ROLE_NAME).policyArn(policyArn).build());+ } catch (Exception ignored) {}+ try {+ iam.detachUserPolicy(DetachUserPolicyRequest.builder()+ .userName(USER_NAME).policyArn(policyArn).build());+ } catch (Exception ignored) {}+ }+ try {+ iam.deleteRole(DeleteRoleRequest.builder().roleName(ROLE_NAME).build());+ } catch (Exception ignored) {}+ if (policyArn != null) {+ try {+ iam.deletePolicy(DeletePolicyRequest.builder().policyArn(policyArn).build());+ } catch (Exception ignored) {}+ }+ try {+ iam.removeUserFromGroup(RemoveUserFromGroupRequest.builder()+ .groupName(GROUP_NAME).userName(USER_NAME).build());+ } catch (Exception ignored) {}+ try {+ iam.deleteGroup(DeleteGroupRequest.builder().groupName(GROUP_NAME).build());+ } catch (Exception ignored) {}+ try {+ iam.deleteUser(DeleteUserRequest.builder().userName(USER_NAME).build());+ } catch (Exception ignored) {}+ iam.close();+ }+ }++ // ── Users ──────────────────────────────────────────────────────────++ @Test+ @Order(1)+ void createUser() {+ CreateUserResponse response = iam.createUser(CreateUserRequest.builder()+ .userName(USER_NAME).path("/").build());++ assertThat(response.user().userName()).isEqualTo(USER_NAME);+ assertThat(response.user().userId()).isNotNull();+ assertThat(response.user().arn()).contains(USER_NAME);+ }++ @Test+ @Order(2)+ void getUser() {+ GetUserResponse response = iam.getUser(GetUserRequest.builder()+ .userName(USER_NAME).build());++ assertThat(response.user().userName()).isEqualTo(USER_NAME);+ }++ @Test+ @Order(3)+ void listUsers() {+ ListUsersResponse response = iam.listUsers();++ assertThat(response.users())+ .anyMatch(u -> USER_NAME.equals(u.userName()));+ }++ @Test+ @Order(4)+ void tagUser() {+ iam.tagUser(TagUserRequest.builder()+ .userName(USER_NAME)+ .tags(software.amazon.awssdk.services.iam.model.Tag.builder().key("env").value("sdk-test").build())+ .build());+ }++ @Test+ @Order(5)+ void listUserTags() {+ ListUserTagsResponse response = iam.listUserTags(+ ListUserTagsRequest.builder().userName(USER_NAME).build());++ assertThat(response.tags())+ .anyMatch(t -> "env".equals(t.key()));+ }++ @Test+ @Order(6)+ void untagUser() {+ iam.untagUser(UntagUserRequest.builder()+ .userName(USER_NAME).tagKeys("env").build());+ }++ // ── Access Keys ────────────────────────────────────────────────────++ @Test+ @Order(7)+ void createAccessKey() {+ CreateAccessKeyResponse response = iam.createAccessKey(+ CreateAccessKeyRequest.builder().userName(USER_NAME).build());+ accessKeyId = response.accessKey().accessKeyId();++ assertThat(accessKeyId).isNotNull().startsWith("AKIA");+ assertThat(response.accessKey().secretAccessKey()).isNotNull();+ assertThat(response.accessKey().status()).isEqualTo(StatusType.ACTIVE);+ }++ @Test+ @Order(8)+ void listAccessKeys() {+ ListAccessKeysResponse response = iam.listAccessKeys(+ ListAccessKeysRequest.builder().userName(USER_NAME).build());++ assertThat(response.accessKeyMetadata()).isNotEmpty();+ }++ @Test+ @Order(9)+ void updateAccessKey() {+ Assumptions.assumeTrue(accessKeyId != null);++ iam.updateAccessKey(UpdateAccessKeyRequest.builder()+ .userName(USER_NAME)+ .accessKeyId(accessKeyId)+ .status(StatusType.INACTIVE)+ .build());+ }++ @Test+ @Order(10)+ void deleteAccessKey() {+ Assumptions.assumeTrue(accessKeyId != null);++ iam.deleteAccessKey(DeleteAccessKeyRequest.builder()+ .userName(USER_NAME).accessKeyId(accessKeyId).build());+ }++ // ── Groups ─────────────────────────────────────────────────────────++ @Test+ @Order(11)+ void createGroup() {+ CreateGroupResponse response = iam.createGroup(CreateGroupRequest.builder()+ .groupName(GROUP_NAME).build());++ assertThat(response.group().groupName()).isEqualTo(GROUP_NAME);+ }++ @Test+ @Order(12)+ void addUserToGroup() {+ iam.addUserToGroup(AddUserToGroupRequest.builder()+ .groupName(GROUP_NAME).userName(USER_NAME).build());+ }++ @Test+ @Order(13)+ void getGroup() {+ GetGroupResponse response = iam.getGroup(GetGroupRequest.builder()+ .groupName(GROUP_NAME).build());++ assertThat(response.users())+ .anyMatch(u -> USER_NAME.equals(u.userName()));+ }++ @Test+ @Order(14)+ void listGroupsForUser() {+ ListGroupsForUserResponse response = iam.listGroupsForUser(+ ListGroupsForUserRequest.builder().userName(USER_NAME).build());++ assertThat(response.groups())+ .anyMatch(g -> GROUP_NAME.equals(g.groupName()));+ }++ // ── Roles ──────────────────────────────────────────────────────────++ @Test+ @Order(15)+ void createRole() {+ CreateRoleResponse response = iam.createRole(CreateRoleRequest.builder()+ .roleName(ROLE_NAME)+ .assumeRolePolicyDocument(TRUST_POLICY)+ .description("SDK test role")+ .build());++ assertThat(response.role().roleName()).isEqualTo(ROLE_NAME);+ assertThat(response.role().arn()).contains(ROLE_NAME);+ }++ @Test+ @Order(16)+ void getRole() {+ GetRoleResponse response = iam.getRole(GetRoleRequest.builder()+ .roleName(ROLE_NAME).build());++ assertThat(response.role().roleName()).isEqualTo(ROLE_NAME);+ }++ @Test+ @Order(17)+ void listRoles() {+ ListRolesResponse response = iam.listRoles();++ assertThat(response.roles())+ .anyMatch(r -> ROLE_NAME.equals(r.roleName()));+ }++ // ── Managed Policies ───────────────────────────────────────────────++ @Test+ @Order(18)+ void createPolicy() {+ CreatePolicyResponse response = iam.createPolicy(CreatePolicyRequest.builder()+ .policyName(POLICY_NAME)+ .policyDocument(POLICY_DOCUMENT)+ .description("SDK test policy")+ .build());+ policyArn = response.policy().arn();++ assertThat(response.policy().policyName()).isEqualTo(POLICY_NAME);+ assertThat(policyArn).isNotNull();+ }++ @Test+ @Order(19)+ void getPolicy() {+ Assumptions.assumeTrue(policyArn != null);++ GetPolicyResponse response = iam.getPolicy(+ GetPolicyRequest.builder().policyArn(policyArn).build());++ assertThat(response.policy().policyName()).isEqualTo(POLICY_NAME);+ }++ @Test+ @Order(20)+ void attachRolePolicy() {+ Assumptions.assumeTrue(policyArn != null);++ iam.attachRolePolicy(AttachRolePolicyRequest.builder()+ .roleName(ROLE_NAME).policyArn(policyArn).build());+ }++ @Test+ @Order(21)+ void listAttachedRolePolicies() {+ Assumptions.assumeTrue(policyArn != null);++ ListAttachedRolePoliciesResponse response = iam.listAttachedRolePolicies(+ ListAttachedRolePoliciesRequest.builder().roleName(ROLE_NAME).build());++ assertThat(response.attachedPolicies())+ .anyMatch(p -> policyArn.equals(p.policyArn()));+ }++ @Test+ @Order(22)+ void attachUserPolicy() {+ Assumptions.assumeTrue(policyArn != null);++ iam.attachUserPolicy(AttachUserPolicyRequest.builder()+ .userName(USER_NAME).policyArn(policyArn).build());+ }++ @Test+ @Order(23)+ void listAttachedUserPolicies() {+ Assumptions.assumeTrue(policyArn != null);++ ListAttachedUserPoliciesResponse response = iam.listAttachedUserPolicies(+ ListAttachedUserPoliciesRequest.builder().userName(USER_NAME).build());++ assertThat(response.attachedPolicies())+ .anyMatch(p -> policyArn.equals(p.policyArn()));+ }++ @Test+ @Order(24)+ void putRolePolicy() {+ iam.putRolePolicy(PutRolePolicyRequest.builder()+ .roleName(ROLE_NAME)+ .policyName("inline-exec")+ .policyDocument("{\"Version\":\"2012-10-17\"}")+ .build());+ }++ @Test+ @Order(25)+ void getRolePolicy() {+ GetRolePolicyResponse response = iam.getRolePolicy(GetRolePolicyRequest.builder()+ .roleName(ROLE_NAME).policyName("inline-exec").build());++ assertThat(response.policyName()).isEqualTo("inline-exec");+ }++ @Test+ @Order(26)+ void listRolePolicies() {+ ListRolePoliciesResponse response = iam.listRolePolicies(+ ListRolePoliciesRequest.builder().roleName(ROLE_NAME).build());++ assertThat(response.policyNames()).contains("inline-exec");+ }++ // ── Instance Profiles ──────────────────────────────────────────────++ @Test+ @Order(27)+ void createInstanceProfile() {+ CreateInstanceProfileResponse response = iam.createInstanceProfile(+ CreateInstanceProfileRequest.builder()+ .instanceProfileName(INSTANCE_PROFILE_NAME).build());++ assertThat(response.instanceProfile().instanceProfileName())+ .isEqualTo(INSTANCE_PROFILE_NAME);+ }++ @Test+ @Order(28)+ void addRoleToInstanceProfile() {+ iam.addRoleToInstanceProfile(AddRoleToInstanceProfileRequest.builder()+ .instanceProfileName(INSTANCE_PROFILE_NAME).roleName(ROLE_NAME).build());+ }++ @Test+ @Order(29)+ void getInstanceProfile() {+ GetInstanceProfileResponse response = iam.getInstanceProfile(+ GetInstanceProfileRequest.builder()+ .instanceProfileName(INSTANCE_PROFILE_NAME).build());++ assertThat(response.instanceProfile().roles())+ .anyMatch(r -> ROLE_NAME.equals(r.roleName()));+ }++ @Test+ @Order(30)+ void listInstanceProfiles() {+ ListInstanceProfilesResponse response = iam.listInstanceProfiles();++ assertThat(response.instanceProfiles())+ .anyMatch(p -> INSTANCE_PROFILE_NAME.equals(p.instanceProfileName()));+ }++ // ── Error Cases ────────────────────────────────────────────────────++ @Test+ @Order(31)+ void getUserNotFoundThrows() {+ assertThatThrownBy(() -> iam.getUser(GetUserRequest.builder()+ .userName("nonexistent-user-xyz").build()))+ .isInstanceOf(NoSuchEntityException.class);+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/KmsTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/KmsTest.javanew file mode 100644index 0000000000..401e55a897--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/KmsTest.java@@ -0,0 +1,202 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.core.SdkBytes;+import software.amazon.awssdk.services.kms.KmsClient;+import software.amazon.awssdk.services.kms.model.CreateKeyResponse;+import software.amazon.awssdk.services.kms.model.DataKeySpec;+import software.amazon.awssdk.services.kms.model.DecryptResponse;+import software.amazon.awssdk.services.kms.model.DescribeKeyResponse;+import software.amazon.awssdk.services.kms.model.EncryptResponse;+import software.amazon.awssdk.services.kms.model.GenerateDataKeyResponse;+import software.amazon.awssdk.services.kms.model.GenerateDataKeyWithoutPlaintextResponse;+import software.amazon.awssdk.services.kms.model.KeyState;+import software.amazon.awssdk.services.kms.model.ListAliasesResponse;+import software.amazon.awssdk.services.kms.model.ListResourceTagsResponse;+import software.amazon.awssdk.services.kms.model.ReEncryptResponse;+import software.amazon.awssdk.services.kms.model.SignResponse;+import software.amazon.awssdk.services.kms.model.SigningAlgorithmSpec;+import software.amazon.awssdk.services.kms.model.VerifyResponse;++import java.nio.charset.StandardCharsets;++import static org.assertj.core.api.Assertions.*;++@DisplayName("KMS Key Management Service")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class KmsTest {++ private static KmsClient kms;+ private static String keyId;+ private static String aliasName;+ private static SdkBytes ciphertext;+ private static final String PLAINTEXT = "secret data";++ @BeforeAll+ static void setup() {+ kms = TestFixtures.kmsClient();+ aliasName = "alias/test-key-" + System.currentTimeMillis();+ }++ @AfterAll+ static void cleanup() {+ if (kms != null) {+ try {+ kms.deleteAlias(b -> b.aliasName(aliasName));+ } catch (Exception ignored) {}+ kms.close();+ }+ }++ @Test+ @Order(1)+ void createKey() {+ CreateKeyResponse response = kms.createKey(b -> b.description("test-key"));+ keyId = response.keyMetadata().keyId();++ assertThat(keyId).isNotNull();+ }++ @Test+ @Order(2)+ void describeKey() {+ DescribeKeyResponse response = kms.describeKey(b -> b.keyId(keyId));++ assertThat(response.keyMetadata().keyId()).isEqualTo(keyId);+ }++ @Test+ @Order(3)+ void createAlias() {+ kms.createAlias(b -> b.aliasName(aliasName).targetKeyId(keyId));+ // No exception means success+ }++ @Test+ @Order(4)+ void listAliases() {+ ListAliasesResponse response = kms.listAliases();++ assertThat(response.aliases())+ .anyMatch(a -> a.aliasName().equals(aliasName));+ }++ @Test+ @Order(5)+ void encrypt() {+ EncryptResponse response = kms.encrypt(b -> b+ .keyId(keyId)+ .plaintext(SdkBytes.fromString(PLAINTEXT, StandardCharsets.UTF_8)));+ ciphertext = response.ciphertextBlob();++ assertThat(ciphertext).isNotNull();+ }++ @Test+ @Order(6)+ void decrypt() {+ Assumptions.assumeTrue(ciphertext != null, "Encrypt must succeed first");++ DecryptResponse response = kms.decrypt(b -> b.ciphertextBlob(ciphertext));++ assertThat(response.plaintext().asUtf8String()).isEqualTo(PLAINTEXT);+ }++ @Test+ @Order(7)+ void encryptUsingAlias() {+ EncryptResponse response = kms.encrypt(b -> b+ .keyId(aliasName)+ .plaintext(SdkBytes.fromString("alias data", StandardCharsets.UTF_8)));++ assertThat(response.ciphertextBlob()).isNotNull();+ }++ @Test+ @Order(8)+ void generateDataKey() {+ GenerateDataKeyResponse response = kms.generateDataKey(b -> b+ .keyId(keyId)+ .keySpec(DataKeySpec.AES_256));++ assertThat(response.plaintext()).isNotNull();+ assertThat(response.ciphertextBlob()).isNotNull();+ }++ @Test+ @Order(9)+ void tagging() {+ kms.tagResource(b -> b+ .keyId(keyId)+ .tags(software.amazon.awssdk.services.kms.model.Tag.builder().tagKey("Project").tagValue("Floci").build()));++ ListResourceTagsResponse tagsResponse = kms.listResourceTags(b -> b.keyId(keyId));++ assertThat(tagsResponse.tags())+ .anyMatch(t -> t.tagKey().equals("Project") && t.tagValue().equals("Floci"));+ }++ @Test+ @Order(10)+ void reEncrypt() {+ Assumptions.assumeTrue(ciphertext != null, "Encrypt must succeed first");++ String keyId2 = kms.createKey(b -> b.description("key2")).keyMetadata().keyId();+ ReEncryptResponse reResponse = kms.reEncrypt(b -> b+ .ciphertextBlob(ciphertext)+ .destinationKeyId(keyId2));++ assertThat(reResponse.ciphertextBlob()).isNotNull();++ DecryptResponse decResponse = kms.decrypt(b -> b.ciphertextBlob(reResponse.ciphertextBlob()));+ assertThat(decResponse.plaintext().asUtf8String()).isEqualTo(PLAINTEXT);+ }++ @Test+ @Order(11)+ void generateDataKeyWithoutPlaintext() {+ GenerateDataKeyWithoutPlaintextResponse response = kms.generateDataKeyWithoutPlaintext(b -> b+ .keyId(keyId)+ .keySpec(DataKeySpec.AES_256));++ assertThat(response.ciphertextBlob()).isNotNull();+ }++ @Test+ @Order(12)+ void signAndVerify() {+ SdkBytes msg = SdkBytes.fromString("message to sign", StandardCharsets.UTF_8);++ SignResponse signResponse = kms.sign(b -> b+ .keyId(keyId)+ .message(msg)+ .signingAlgorithm(SigningAlgorithmSpec.RSASSA_PSS_SHA_256));++ assertThat(signResponse.signature()).isNotNull();++ VerifyResponse verifyResponse = kms.verify(b -> b+ .keyId(keyId)+ .message(msg)+ .signature(signResponse.signature())+ .signingAlgorithm(SigningAlgorithmSpec.RSASSA_PSS_SHA_256));++ assertThat(verifyResponse.signatureValid()).isTrue();+ }++ @Test+ @Order(13)+ void scheduleKeyDeletion() {+ kms.scheduleKeyDeletion(b -> b.keyId(keyId).pendingWindowInDays(7));++ DescribeKeyResponse descResponse = kms.describeKey(b -> b.keyId(keyId));++ assertThat(descResponse.keyMetadata().keyState()).isEqualTo(KeyState.PENDING_DELETION);+ }++ @Test+ @Order(14)+ void deleteAlias() {+ kms.deleteAlias(b -> b.aliasName(aliasName));+ // No exception means success+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/LambdaTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/LambdaTest.javanew file mode 100644index 0000000000..7406e66932--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/LambdaTest.java@@ -0,0 +1,221 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.core.SdkBytes;+import software.amazon.awssdk.services.lambda.LambdaClient;+import software.amazon.awssdk.services.lambda.model.*;+import software.amazon.awssdk.services.lambda.model.Runtime;++import static org.assertj.core.api.Assertions.*;++@DisplayName("Lambda")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class LambdaTest {++ private static LambdaClient lambda;+ private static final String FUNCTION_NAME = "sdk-test-fn";+ private static final String ROLE = "arn:aws:iam::000000000000:role/lambda-role";+ private static String functionArn;++ @BeforeAll+ static void setup() {+ lambda = TestFixtures.lambdaClient();+ }++ @AfterAll+ static void cleanup() {+ if (lambda != null) {+ try {+ lambda.deleteFunction(DeleteFunctionRequest.builder()+ .functionName(FUNCTION_NAME).build());+ } catch (Exception ignored) {}+ try {+ lambda.deleteFunction(DeleteFunctionRequest.builder()+ .functionName("sdk-test-ruby-fn").build());+ } catch (Exception ignored) {}+ lambda.close();+ }+ }++ @Test+ @Order(1)+ void createFunction() {+ CreateFunctionResponse response = lambda.createFunction(CreateFunctionRequest.builder()+ .functionName(FUNCTION_NAME)+ .runtime(Runtime.NODEJS20_X)+ .role(ROLE)+ .handler("index.handler")+ .timeout(30)+ .memorySize(256)+ .code(FunctionCode.builder()+ .zipFile(SdkBytes.fromByteArray(LambdaUtils.minimalZip()))+ .build())+ .build());++ functionArn = response.functionArn();+ assertThat(response.functionName()).isEqualTo(FUNCTION_NAME);+ assertThat(functionArn).isNotNull().contains(FUNCTION_NAME);+ assertThat(response.stateAsString()).isEqualTo("Active");+ assertThat(response.version()).isEqualTo("$LATEST");+ }++ @Test+ @Order(2)+ void getFunction() {+ GetFunctionResponse response = lambda.getFunction(+ GetFunctionRequest.builder().functionName(FUNCTION_NAME).build());++ assertThat(response.configuration().functionName()).isEqualTo(FUNCTION_NAME);+ assertThat(response.configuration().role()).isEqualTo(ROLE);+ }++ @Test+ @Order(3)+ void getFunctionConfiguration() {+ GetFunctionConfigurationResponse response = lambda.getFunctionConfiguration(+ GetFunctionConfigurationRequest.builder().functionName(FUNCTION_NAME).build());++ assertThat(response.timeout()).isEqualTo(30);+ assertThat(response.memorySize()).isEqualTo(256);+ }++ @Test+ @Order(4)+ void listFunctions() {+ ListFunctionsResponse response = lambda.listFunctions();++ assertThat(response.functions())+ .anyMatch(f -> FUNCTION_NAME.equals(f.functionName()));+ }++ @Test+ @Order(5)+ void invokeDryRun() {+ InvokeResponse response = lambda.invoke(InvokeRequest.builder()+ .functionName(FUNCTION_NAME)+ .invocationType(InvocationType.DRY_RUN)+ .payload(SdkBytes.fromUtf8String("{\"key\":\"value\"}"))+ .build());++ assertThat(response.statusCode()).isEqualTo(204);+ }++ @Test+ @Order(6)+ void invokeEventAsync() {+ InvokeResponse response = lambda.invoke(InvokeRequest.builder()+ .functionName(FUNCTION_NAME)+ .invocationType(InvocationType.EVENT)+ .payload(SdkBytes.fromUtf8String("{\"key\":\"async\"}"))+ .build());++ assertThat(response.statusCode()).isEqualTo(202);+ }++ @Test+ @Order(7)+ void updateFunctionCode() {+ UpdateFunctionCodeResponse response = lambda.updateFunctionCode(+ UpdateFunctionCodeRequest.builder()+ .functionName(FUNCTION_NAME)+ .zipFile(SdkBytes.fromByteArray(LambdaUtils.minimalZip()))+ .build());++ assertThat(response.functionName()).isEqualTo(FUNCTION_NAME);+ assertThat(response.revisionId()).isNotNull();+ }++ @Test+ @Order(8)+ void publishVersionAndListVersionsByFunction() {+ PublishVersionResponse v1 = lambda.publishVersion(PublishVersionRequest.builder()+ .functionName(FUNCTION_NAME)+ .description("v1")+ .build());++ assertThat(v1.version()).isEqualTo("1");+ assertThat(v1.description()).isEqualTo("v1");++ PublishVersionResponse v2 = lambda.publishVersion(PublishVersionRequest.builder()+ .functionName(FUNCTION_NAME)+ .description("v2")+ .build());++ assertThat(v2.version()).isEqualTo("2");+ assertThat(v2.description()).isEqualTo("v2");++ ListVersionsByFunctionResponse listVersions = lambda.listVersionsByFunction(+ ListVersionsByFunctionRequest.builder()+ .functionName(FUNCTION_NAME)+ .build());++ assertThat(listVersions.versions()).hasSizeGreaterThanOrEqualTo(3);+ assertThat(listVersions.versions())+ .anyMatch(v -> "$LATEST".equals(v.version()))+ .anyMatch(v -> "1".equals(v.version()))+ .anyMatch(v -> "2".equals(v.version()));+ }++ @Test+ @Order(9)+ void createFunctionDuplicateThrows409() {+ assertThatThrownBy(() -> lambda.createFunction(CreateFunctionRequest.builder()+ .functionName(FUNCTION_NAME)+ .runtime(Runtime.NODEJS20_X)+ .role(ROLE)+ .handler("index.handler")+ .code(FunctionCode.builder()+ .zipFile(SdkBytes.fromByteArray(LambdaUtils.minimalZip()))+ .build())+ .build()))+ .isInstanceOf(ResourceConflictException.class);+ }++ @Test+ @Order(10)+ void getFunctionNonExistentThrows404() {+ assertThatThrownBy(() -> lambda.getFunction(GetFunctionRequest.builder()+ .functionName("does-not-exist").build()))+ .isInstanceOf(ResourceNotFoundException.class);+ }++ @Test+ @Order(11)+ void deleteFunction() {+ lambda.deleteFunction(DeleteFunctionRequest.builder()+ .functionName(FUNCTION_NAME).build());++ assertThatThrownBy(() -> lambda.getFunction(GetFunctionRequest.builder()+ .functionName(FUNCTION_NAME).build()))+ .isInstanceOf(ResourceNotFoundException.class);++ // Verify versions are also gone+ assertThatThrownBy(() -> lambda.listVersionsByFunction(+ ListVersionsByFunctionRequest.builder()+ .functionName(FUNCTION_NAME).build()))+ .isInstanceOf(ResourceNotFoundException.class);+ }++ @Test+ @Order(12)+ void rubyRuntimeSupport() {+ String rubyFn = "sdk-test-ruby-fn";++ CreateFunctionResponse response = lambda.createFunction(CreateFunctionRequest.builder()+ .functionName(rubyFn)+ .runtime(Runtime.RUBY3_3)+ .role(ROLE)+ .handler("lambda_function.lambda_handler")+ .code(FunctionCode.builder()+ .zipFile(SdkBytes.fromByteArray(LambdaUtils.rubyZip()))+ .build())+ .build());++ assertThat(response.functionName()).isEqualTo(rubyFn);+ assertThat(response.runtime()).isEqualTo(Runtime.RUBY3_3);++ // Cleanup+ lambda.deleteFunction(DeleteFunctionRequest.builder()+ .functionName(rubyFn).build());+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/LambdaUtils.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/LambdaUtils.javanew file mode 100644index 0000000000..52a9c99dec--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/LambdaUtils.java@@ -0,0 +1,111 @@+package com.floci.test;++import java.io.ByteArrayOutputStream;+import java.nio.charset.StandardCharsets;+import java.util.zip.ZipEntry;+import java.util.zip.ZipOutputStream;++/**+ * Shared Lambda deployment-package helpers for tests.+ */+public final class LambdaUtils {++ private LambdaUtils() {}++ /**+ * ZIP containing a Node.js handler that greets by name and echoes the event.+ */+ public static byte[] handlerZip() {+ String code = """+ exports.handler = async (event) => {+ const name = (event && event.name) ? event.name : 'World';+ console.log('[handler] invoked with event:', JSON.stringify(event));+ console.log('[handler] resolved name:', name);+ const response = {+ statusCode: 200,+ body: JSON.stringify({ message: `Hello, ${name}!`, input: event })+ };+ console.log('[handler] returning response:', JSON.stringify(response));+ return response;+ };+ """;+ return createZip("index.js", code);+ }++ /**+ * ZIP containing a Ruby handler that greets by name.+ */+ public static byte[] rubyZip() {+ String code = """+ def lambda_handler(event:, context:)+ name = event['name'] || 'World'+ { statusCode: 200, body: "Hello, #{name}!" }+ end+ """;+ return createZip("lambda_function.rb", code);+ }++ /**+ * ZIP containing a bootstrap shell script for provided runtimes.+ */+ public static byte[] providedRuntimeZip() {+ String bootstrap = """+ #!/bin/sh+ ENDPOINT="http://${AWS_LAMBDA_RUNTIME_API}/2018-06-01/runtime"+ while true; do+ HEADERS=$(mktemp)+ curl -sS -D "$HEADERS" -o /tmp/event.json "${ENDPOINT}/invocation/next"+ REQUEST_ID=$(grep -i 'lambda-runtime-aws-request-id' "$HEADERS" | tr -d '\\r' | awk '{print $2}')+ curl -sS -X POST "${ENDPOINT}/invocation/${REQUEST_ID}/response" \\+ -H 'Content-Type: application/json' \\+ -d '"hello from provided runtime"'+ rm -f "$HEADERS"+ done+ """;+ return createZip("bootstrap", bootstrap);+ }++ /**+ * ZIP containing a Node.js handler that always reports every SQS message as a batch item+ * failure. Used to test {@code ReportBatchItemFailures} ESM behaviour.+ */+ public static byte[] batchItemFailuresZip() {+ String code = """+ exports.handler = async (event) => {+ const failures = (event.Records || []).map(r => ({+ itemIdentifier: r.messageId+ }));+ console.log('[esm-failures] reporting failures:', JSON.stringify(failures));+ return { batchItemFailures: failures };+ };+ """;+ return createZip("index.js", code);+ }++ /**+ * Minimal valid ZIP containing a stub index.js.+ */+ public static byte[] minimalZip() {+ String code = """+ exports.handler = async (event) => {+ console.log('[esm-handler] invoked with event:', JSON.stringify(event));+ return { statusCode: 200, body: 'ok' };+ };+ """;+ return createZip("index.js", code);+ }++ private static byte[] createZip(String filename, String content) {+ try {+ ByteArrayOutputStream baos = new ByteArrayOutputStream();+ try (ZipOutputStream zos = new ZipOutputStream(baos)) {+ zos.putNextEntry(new ZipEntry(filename));+ zos.write(content.getBytes(StandardCharsets.UTF_8));+ zos.closeEntry();+ }+ return baos.toByteArray();+ } catch (Exception e) {+ throw new RuntimeException("Failed to build ZIP for " + filename, e);+ }+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/S3Test.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/S3Test.javanew file mode 100644index 0000000000..1c89cbd6e1--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/S3Test.java@@ -0,0 +1,390 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.core.sync.RequestBody;+import software.amazon.awssdk.services.s3.S3Client;+import software.amazon.awssdk.services.s3.model.BucketLocationConstraint;+import software.amazon.awssdk.services.s3.model.CopyObjectRequest;+import software.amazon.awssdk.services.s3.model.CopyObjectResponse;+import software.amazon.awssdk.services.s3.model.CreateBucketConfiguration;+import software.amazon.awssdk.services.s3.model.CreateBucketRequest;+import software.amazon.awssdk.services.s3.model.Delete;+import software.amazon.awssdk.services.s3.model.DeleteBucketRequest;+import software.amazon.awssdk.services.s3.model.DeleteBucketTaggingRequest;+import software.amazon.awssdk.services.s3.model.DeleteObjectRequest;+import software.amazon.awssdk.services.s3.model.DeleteObjectsRequest;+import software.amazon.awssdk.services.s3.model.DeleteObjectsResponse;+import software.amazon.awssdk.services.s3.model.DeleteObjectTaggingRequest;+import software.amazon.awssdk.services.s3.model.GetBucketLocationRequest;+import software.amazon.awssdk.services.s3.model.GetBucketLocationResponse;+import software.amazon.awssdk.services.s3.model.GetBucketTaggingRequest;+import software.amazon.awssdk.services.s3.model.GetBucketTaggingResponse;+import software.amazon.awssdk.services.s3.model.GetObjectRequest;+import software.amazon.awssdk.services.s3.model.GetObjectTaggingRequest;+import software.amazon.awssdk.services.s3.model.GetObjectTaggingResponse;+import software.amazon.awssdk.services.s3.model.HeadBucketRequest;+import software.amazon.awssdk.services.s3.model.HeadBucketResponse;+import software.amazon.awssdk.services.s3.model.HeadObjectRequest;+import software.amazon.awssdk.services.s3.model.HeadObjectResponse;+import software.amazon.awssdk.services.s3.model.ListBucketsResponse;+import software.amazon.awssdk.services.s3.model.ListObjectsV2Request;+import software.amazon.awssdk.services.s3.model.ListObjectsV2Response;+import software.amazon.awssdk.services.s3.model.NoSuchBucketException;+import software.amazon.awssdk.services.s3.model.ObjectIdentifier;+import software.amazon.awssdk.services.s3.model.PutBucketTaggingRequest;+import software.amazon.awssdk.services.s3.model.PutObjectRequest;+import software.amazon.awssdk.services.s3.model.PutObjectTaggingRequest;+import software.amazon.awssdk.services.s3.model.S3Exception;+import software.amazon.awssdk.services.s3.model.Tagging;++import java.nio.charset.StandardCharsets;++import static org.assertj.core.api.Assertions.*;++@DisplayName("S3 Simple Storage Service")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class S3Test {++ private static S3Client s3;+ private static final String BUCKET = "sdk-test-bucket";+ private static final String EU_BUCKET = "sdk-test-bucket-eu";+ private static final String KEY = "test-file.txt";+ private static final String CONTENT = "Hello from AWS SDK v2!";++ @BeforeAll+ static void setup() {+ s3 = TestFixtures.s3Client();+ }++ @AfterAll+ static void cleanup() {+ if (s3 != null) {+ try {+ s3.deleteObject(DeleteObjectRequest.builder().bucket(BUCKET).key(KEY).build());+ } catch (Exception ignored) {}+ try {+ s3.deleteBucket(DeleteBucketRequest.builder().bucket(BUCKET).build());+ } catch (Exception ignored) {}+ try {+ s3.deleteBucket(DeleteBucketRequest.builder().bucket(EU_BUCKET).build());+ } catch (Exception ignored) {}+ s3.close();+ }+ }++ @Test+ @Order(1)+ void createBucket() {+ s3.createBucket(CreateBucketRequest.builder().bucket(BUCKET).build());+ }++ @Test+ @Order(2)+ void createBucketWithLocationConstraint() {+ s3.createBucket(CreateBucketRequest.builder()+ .bucket(EU_BUCKET)+ .createBucketConfiguration(CreateBucketConfiguration.builder()+ .locationConstraint(BucketLocationConstraint.EU_CENTRAL_1)+ .build())+ .build());+ }++ @Test+ @Order(3)+ void getBucketLocationEuCentral1() {+ GetBucketLocationResponse response = s3.getBucketLocation(+ GetBucketLocationRequest.builder().bucket(EU_BUCKET).build());++ assertThat(response.locationConstraint()).isEqualTo(BucketLocationConstraint.EU_CENTRAL_1);+ }++ @Test+ @Order(4)+ void listBuckets() {+ ListBucketsResponse response = s3.listBuckets();++ assertThat(response.buckets())+ .anyMatch(b -> BUCKET.equals(b.name()));+ }++ @Test+ @Order(5)+ void putObject() {+ s3.putObject(PutObjectRequest.builder()+ .bucket(BUCKET).key(KEY).contentType("text/plain").build(),+ RequestBody.fromString(CONTENT));+ }++ @Test+ @Order(6)+ void listObjects() {+ ListObjectsV2Response response = s3.listObjectsV2(+ ListObjectsV2Request.builder().bucket(BUCKET).build());++ assertThat(response.contents())+ .anyMatch(o -> KEY.equals(o.key()));+ }++ @Test+ @Order(7)+ void getObject() throws Exception {+ var response = s3.getObject(GetObjectRequest.builder()+ .bucket(BUCKET).key(KEY).build());+ byte[] data = response.readAllBytes();+ String downloaded = new String(data, StandardCharsets.UTF_8);++ assertThat(downloaded).isEqualTo(CONTENT);+ }++ @Test+ @Order(8)+ void headObject() {+ HeadObjectResponse response = s3.headObject(HeadObjectRequest.builder()+ .bucket(BUCKET).key(KEY).build());++ assertThat(response.contentLength()).isEqualTo(CONTENT.length());+ }++ @Test+ @Order(9)+ void headObjectLastModifiedSecondPrecision() {+ HeadObjectResponse response = s3.headObject(HeadObjectRequest.builder()+ .bucket(BUCKET).key(KEY).build());++ assertThat(response.lastModified()).isNotNull();+ assertThat(response.lastModified().getNano()).isZero();+ }++ @Test+ @Order(10)+ void headBucket() {+ HeadBucketResponse response = s3.headBucket(HeadBucketRequest.builder()+ .bucket(BUCKET).build());++ assertThat(response.sdkHttpResponse().isSuccessful()).isTrue();+ }++ @Test+ @Order(11)+ void headBucketNonExistent() {+ assertThatThrownBy(() -> s3.headBucket(HeadBucketRequest.builder()+ .bucket("non-existent-bucket-xyz").build()))+ .satisfiesAnyOf(+ e -> assertThat(e).isInstanceOf(NoSuchBucketException.class),+ e -> assertThat(((S3Exception) e).statusCode()).isEqualTo(404)+ );+ }++ @Test+ @Order(12)+ void getBucketLocation() {+ GetBucketLocationResponse response = s3.getBucketLocation(+ GetBucketLocationRequest.builder().bucket(BUCKET).build());++ // Either locationConstraint or locationConstraintAsString should be non-null+ assertThat(response.locationConstraint() != null || response.locationConstraintAsString() != null).isTrue();+ }++ @Test+ @Order(13)+ void putObjectTagging() {+ s3.putObjectTagging(PutObjectTaggingRequest.builder()+ .bucket(BUCKET).key(KEY)+ .tagging(Tagging.builder()+ .tagSet(+ software.amazon.awssdk.services.s3.model.Tag.builder().key("env").value("test").build(),+ software.amazon.awssdk.services.s3.model.Tag.builder().key("project").value("floci").build()+ )+ .build())+ .build());+ }++ @Test+ @Order(14)+ void getObjectTagging() {+ GetObjectTaggingResponse response = s3.getObjectTagging(+ GetObjectTaggingRequest.builder().bucket(BUCKET).key(KEY).build());++ assertThat(response.tagSet()).hasSize(2);+ assertThat(response.tagSet())+ .anyMatch(t -> "env".equals(t.key()) && "test".equals(t.value()))+ .anyMatch(t -> "project".equals(t.key()) && "floci".equals(t.value()));+ }++ @Test+ @Order(15)+ void deleteObjectTagging() {+ s3.deleteObjectTagging(DeleteObjectTaggingRequest.builder()+ .bucket(BUCKET).key(KEY).build());++ GetObjectTaggingResponse response = s3.getObjectTagging(+ GetObjectTaggingRequest.builder().bucket(BUCKET).key(KEY).build());++ assertThat(response.tagSet()).isEmpty();+ }++ @Test+ @Order(16)+ void putBucketTagging() {+ s3.putBucketTagging(PutBucketTaggingRequest.builder()+ .bucket(BUCKET)+ .tagging(Tagging.builder()+ .tagSet(+ software.amazon.awssdk.services.s3.model.Tag.builder().key("team").value("backend").build(),+ software.amazon.awssdk.services.s3.model.Tag.builder().key("cost-center").value("123").build()+ )+ .build())+ .build());+ }++ @Test+ @Order(17)+ void getBucketTagging() {+ GetBucketTaggingResponse response = s3.getBucketTagging(+ GetBucketTaggingRequest.builder().bucket(BUCKET).build());++ assertThat(response.tagSet()).hasSize(2);+ assertThat(response.tagSet())+ .anyMatch(t -> "team".equals(t.key()) && "backend".equals(t.value()))+ .anyMatch(t -> "cost-center".equals(t.key()) && "123".equals(t.value()));+ }++ @Test+ @Order(18)+ void deleteBucketTagging() {+ s3.deleteBucketTagging(DeleteBucketTaggingRequest.builder().bucket(BUCKET).build());++ GetBucketTaggingResponse response = s3.getBucketTagging(+ GetBucketTaggingRequest.builder().bucket(BUCKET).build());++ assertThat(response.tagSet()).isEmpty();+ }++ @Test+ @Order(19)+ void copyObjectCrossBucket() throws Exception {+ String destBucket = "sdk-test-bucket-copy";+ String destKey = "copied-file.txt";++ try {+ s3.createBucket(CreateBucketRequest.builder().bucket(destBucket).build());++ CopyObjectResponse response = s3.copyObject(CopyObjectRequest.builder()+ .sourceBucket(BUCKET).sourceKey(KEY)+ .destinationBucket(destBucket).destinationKey(destKey)+ .build());++ assertThat(response.copyObjectResult().eTag()).isNotNull();++ // Verify copied content+ var getResponse = s3.getObject(GetObjectRequest.builder()+ .bucket(destBucket).key(destKey).build());+ String downloaded = new String(getResponse.readAllBytes(), StandardCharsets.UTF_8);+ assertThat(downloaded).isEqualTo(CONTENT);+ } finally {+ try {+ s3.deleteObject(DeleteObjectRequest.builder().bucket(destBucket).key(destKey).build());+ s3.deleteBucket(DeleteBucketRequest.builder().bucket(destBucket).build());+ } catch (Exception ignored) {}+ }+ }++ @Test+ @Order(19)+ void copyObjectNonAsciiKey() throws Exception {+ String srcKey = "src/テスト画像.png";+ String dstKey = "dst/テスト画像.png";+ String srcBucket = BUCKET;+ String dstBucket = "sdk-test-bucket-copy-unicode";++ try {+ s3.createBucket(CreateBucketRequest.builder().bucket(dstBucket).build());++ // Put source object with non-ASCII key+ s3.putObject(PutObjectRequest.builder()+ .bucket(srcBucket).key(srcKey).build(),+ RequestBody.fromString("non-ascii content"));++ // Copy with non-ASCII key+ CopyObjectResponse response = s3.copyObject(CopyObjectRequest.builder()+ .sourceBucket(srcBucket).sourceKey(srcKey)+ .destinationBucket(dstBucket).destinationKey(dstKey)+ .build());++ assertThat(response.copyObjectResult().eTag()).isNotNull();++ // Verify copied content+ var getResponse = s3.getObject(GetObjectRequest.builder()+ .bucket(dstBucket).key(dstKey).build());+ String downloaded = new String(getResponse.readAllBytes(), StandardCharsets.UTF_8);+ assertThat(downloaded).isEqualTo("non-ascii content");+ } finally {+ try {+ s3.deleteObject(DeleteObjectRequest.builder().bucket(srcBucket).key(srcKey).build());+ s3.deleteObject(DeleteObjectRequest.builder().bucket(dstBucket).key(dstKey).build());+ s3.deleteBucket(DeleteBucketRequest.builder().bucket(dstBucket).build());+ } catch (Exception ignored) {}+ }+ }++ @Test+ @Order(20)+ void deleteObjectsBatch() {+ // Create batch objects+ for (int i = 1; i <= 3; i++) {+ s3.putObject(PutObjectRequest.builder()+ .bucket(BUCKET).key("batch-" + i + ".txt").build(),+ RequestBody.fromString("batch content " + i));+ }++ DeleteObjectsResponse response = s3.deleteObjects(DeleteObjectsRequest.builder()+ .bucket(BUCKET)+ .delete(Delete.builder()+ .objects(+ ObjectIdentifier.builder().key("batch-1.txt").build(),+ ObjectIdentifier.builder().key("batch-2.txt").build(),+ ObjectIdentifier.builder().key("batch-3.txt").build()+ )+ .build())+ .build());++ assertThat(response.deleted()).hasSize(3);+ }++ @Test+ @Order(21)+ void verifyBatchDelete() {+ ListObjectsV2Response response = s3.listObjectsV2(+ ListObjectsV2Request.builder().bucket(BUCKET).build());++ assertThat(response.contents()).hasSize(1);+ assertThat(response.contents().get(0).key()).isEqualTo(KEY);+ }++ @Test+ @Order(22)+ void deleteObject() {+ s3.deleteObject(DeleteObjectRequest.builder().bucket(BUCKET).key(KEY).build());+ }++ @Test+ @Order(23)+ void verifyObjectDeleted() {+ ListObjectsV2Response response = s3.listObjectsV2(+ ListObjectsV2Request.builder().bucket(BUCKET).build());++ assertThat(response.contents()).isEmpty();+ }++ @Test+ @Order(24)+ void deleteEuBucket() {+ s3.deleteBucket(DeleteBucketRequest.builder().bucket(EU_BUCKET).build());+ }++ @Test+ @Order(25)+ void deleteBucket() {+ s3.deleteBucket(DeleteBucketRequest.builder().bucket(BUCKET).build());+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SecretsManagerTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SecretsManagerTest.javanew file mode 100644index 0000000000..e1db9ff37e--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SecretsManagerTest.java@@ -0,0 +1,307 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient;+import software.amazon.awssdk.services.secretsmanager.model.CreateSecretRequest;+import software.amazon.awssdk.services.secretsmanager.model.CreateSecretResponse;+import software.amazon.awssdk.services.secretsmanager.model.DeleteSecretRequest;+import software.amazon.awssdk.services.secretsmanager.model.DescribeSecretRequest;+import software.amazon.awssdk.services.secretsmanager.model.DescribeSecretResponse;+import software.amazon.awssdk.services.secretsmanager.model.GetRandomPasswordRequest;+import software.amazon.awssdk.services.secretsmanager.model.GetRandomPasswordResponse;+import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueRequest;+import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse;+import software.amazon.awssdk.services.secretsmanager.model.ListSecretVersionIdsRequest;+import software.amazon.awssdk.services.secretsmanager.model.ListSecretVersionIdsResponse;+import software.amazon.awssdk.services.secretsmanager.model.ListSecretsRequest;+import software.amazon.awssdk.services.secretsmanager.model.ListSecretsResponse;+import software.amazon.awssdk.services.secretsmanager.model.PutSecretValueRequest;+import software.amazon.awssdk.services.secretsmanager.model.PutSecretValueResponse;+import software.amazon.awssdk.services.secretsmanager.model.RotateSecretRequest;+import software.amazon.awssdk.services.secretsmanager.model.RotateSecretResponse;+import software.amazon.awssdk.services.secretsmanager.model.RotationRulesType;+import software.amazon.awssdk.services.secretsmanager.model.SecretsManagerException;+import software.amazon.awssdk.services.secretsmanager.model.SecretVersionsListEntry;+import software.amazon.awssdk.services.secretsmanager.model.TagResourceRequest;+import software.amazon.awssdk.services.secretsmanager.model.UntagResourceRequest;+import software.amazon.awssdk.services.secretsmanager.model.UpdateSecretRequest;++import java.util.List;+import java.util.Map;+import java.util.stream.Collectors;++import static org.assertj.core.api.Assertions.*;++@DisplayName("Secrets Manager")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class SecretsManagerTest {++ private static SecretsManagerClient sm;+ private static String secretName;+ private static String secretArn;+ private static String originalVersionId;+ private static final String SECRET_VALUE = "my-super-secret-value";+ private static final String UPDATED_VALUE = "my-updated-secret-value";++ @BeforeAll+ static void setup() {+ sm = TestFixtures.secretsManagerClient();+ secretName = "sdk-test-secret-" + System.currentTimeMillis();+ }++ @AfterAll+ static void cleanup() {+ if (sm != null) {+ try {+ sm.deleteSecret(DeleteSecretRequest.builder()+ .secretId(secretName)+ .forceDeleteWithoutRecovery(true)+ .build());+ } catch (Exception ignored) {}+ sm.close();+ }+ }++ @Test+ @Order(1)+ void createSecret() {+ CreateSecretResponse response = sm.createSecret(CreateSecretRequest.builder()+ .name(secretName)+ .secretString(SECRET_VALUE)+ .description("Test secret")+ .tags(software.amazon.awssdk.services.secretsmanager.model.Tag.builder().key("env").value("test").build())+ .build());++ secretArn = response.arn();+ originalVersionId = response.versionId();++ assertThat(response.arn()).isNotNull().contains(secretName);+ assertThat(response.versionId()).isNotNull();+ assertThat(response.name()).isEqualTo(secretName);+ }++ @Test+ @Order(2)+ void getSecretValueByName() {+ GetSecretValueResponse response = sm.getSecretValue(GetSecretValueRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(response.secretString()).isEqualTo(SECRET_VALUE);+ assertThat(response.name()).isEqualTo(secretName);+ }++ @Test+ @Order(3)+ void getSecretValueByArn() {+ Assumptions.assumeTrue(secretArn != null, "CreateSecret must succeed first");++ GetSecretValueResponse response = sm.getSecretValue(GetSecretValueRequest.builder()+ .secretId(secretArn)+ .build());++ assertThat(response.secretString()).isEqualTo(SECRET_VALUE);+ }++ @Test+ @Order(4)+ void putSecretValue() {+ PutSecretValueResponse response = sm.putSecretValue(PutSecretValueRequest.builder()+ .secretId(secretName)+ .secretString(UPDATED_VALUE)+ .build());++ assertThat(response.versionId()).isNotNull().isNotEqualTo(originalVersionId);+ }++ @Test+ @Order(5)+ void getSecretValueAfterPut() {+ GetSecretValueResponse response = sm.getSecretValue(GetSecretValueRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(response.secretString()).isEqualTo(UPDATED_VALUE);+ }++ @Test+ @Order(6)+ void describeSecret() {+ DescribeSecretResponse response = sm.describeSecret(DescribeSecretRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(response.tags()).isNotEmpty();+ assertThat(response.versionIdsToStages()).hasSize(2);+ assertThat(response.rotationEnabled()).isFalse();+ }++ @Test+ @Order(7)+ void updateSecretDescription() {+ sm.updateSecret(UpdateSecretRequest.builder()+ .secretId(secretName)+ .description("Updated description")+ .build());++ DescribeSecretResponse response = sm.describeSecret(DescribeSecretRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(response.description()).isEqualTo("Updated description");+ }++ @Test+ @Order(8)+ void listSecrets() {+ ListSecretsResponse response = sm.listSecrets(ListSecretsRequest.builder().build());++ assertThat(response.secretList())+ .anyMatch(s -> secretName.equals(s.name()));+ }++ @Test+ @Order(9)+ void tagResource() {+ sm.tagResource(TagResourceRequest.builder()+ .secretId(secretName)+ .tags(software.amazon.awssdk.services.secretsmanager.model.Tag.builder().key("team").value("backend").build())+ .build());++ DescribeSecretResponse response = sm.describeSecret(DescribeSecretRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(response.tags())+ .anyMatch(t -> "team".equals(t.key()) && "backend".equals(t.value()));+ }++ @Test+ @Order(10)+ void untagResource() {+ sm.untagResource(UntagResourceRequest.builder()+ .secretId(secretName)+ .tagKeys("team")+ .build());++ DescribeSecretResponse response = sm.describeSecret(DescribeSecretRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(response.tags())+ .noneMatch(t -> "team".equals(t.key()));+ }++ @Test+ @Order(11)+ void listSecretVersionIds() {+ ListSecretVersionIdsResponse response = sm.listSecretVersionIds(+ ListSecretVersionIdsRequest.builder()+ .secretId(secretName)+ .build());++ Map<String, List<String>> versionMap = response.versions().stream()+ .collect(Collectors.toMap(+ SecretVersionsListEntry::versionId,+ SecretVersionsListEntry::versionStages));++ assertThat(versionMap).hasSize(2);+ assertThat(versionMap.values().stream().flatMap(List::stream).toList())+ .contains("AWSCURRENT", "AWSPREVIOUS");+ }++ @Test+ @Order(12)+ void rotateSecretStub() {+ RotateSecretResponse rotateResponse = sm.rotateSecret(RotateSecretRequest.builder()+ .secretId(secretName)+ .rotationRules(RotationRulesType.builder().automaticallyAfterDays(30L).build())+ .build());++ assertThat(rotateResponse.arn()).isEqualTo(secretArn);++ DescribeSecretResponse describeResponse = sm.describeSecret(DescribeSecretRequest.builder()+ .secretId(secretName)+ .build());++ assertThat(describeResponse.rotationEnabled()).isTrue();+ }++ @Test+ @Order(13)+ void kmsKeyIdPreservation() {+ String kmsKeyId = "arn:aws:kms:us-east-1:000000000000:key/my-key";+ String kmsSecretName = "sdk-test-kms-secret-" + System.currentTimeMillis();++ try {+ sm.createSecret(CreateSecretRequest.builder()+ .name(kmsSecretName)+ .secretString("kms-value")+ .kmsKeyId(kmsKeyId)+ .build());++ DescribeSecretResponse response = sm.describeSecret(DescribeSecretRequest.builder()+ .secretId(kmsSecretName)+ .build());++ assertThat(response.kmsKeyId()).isEqualTo(kmsKeyId);+ } finally {+ try {+ sm.deleteSecret(DeleteSecretRequest.builder()+ .secretId(kmsSecretName)+ .forceDeleteWithoutRecovery(true)+ .build());+ } catch (Exception ignored) {}+ }+ }++ @Test+ @Order(14)+ void createSecretDuplicateThrows400() {+ String dupName = "sdk-test-dup-secret-" + System.currentTimeMillis();++ try {+ sm.createSecret(CreateSecretRequest.builder()+ .name(dupName)+ .secretString("value1")+ .build());++ assertThatThrownBy(() -> sm.createSecret(CreateSecretRequest.builder()+ .name(dupName)+ .secretString("value2")+ .build()))+ .isInstanceOf(SecretsManagerException.class)+ .extracting(e -> ((SecretsManagerException) e).statusCode())+ .isEqualTo(400);+ } finally {+ try {+ sm.deleteSecret(DeleteSecretRequest.builder()+ .secretId(dupName)+ .forceDeleteWithoutRecovery(true)+ .build());+ } catch (Exception ignored) {}+ }+ }++ @Test+ @Order(15)+ void getRandomPassword() {+ GetRandomPasswordResponse response = sm.getRandomPassword(GetRandomPasswordRequest.builder()+ .passwordLength(32L)+ .excludePunctuation(true)+ .build());++ assertThat(response.randomPassword()).isNotNull().hasSize(32);+ }++ @Test+ @Order(16)+ void getSecretValueNonExistentThrows400() {+ assertThatThrownBy(() -> sm.getSecretValue(GetSecretValueRequest.builder()+ .secretId("non-existent-secret-" + System.currentTimeMillis())+ .build()))+ .isInstanceOf(SecretsManagerException.class)+ .extracting(e -> ((SecretsManagerException) e).statusCode())+ .isEqualTo(400);+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SnsTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SnsTest.javanew file mode 100644index 0000000000..b70afd25d3--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SnsTest.java@@ -0,0 +1,370 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.sns.SnsClient;+import software.amazon.awssdk.services.sns.model.CreateTopicRequest;+import software.amazon.awssdk.services.sns.model.CreateTopicResponse;+import software.amazon.awssdk.services.sns.model.DeleteTopicRequest;+import software.amazon.awssdk.services.sns.model.GetTopicAttributesRequest;+import software.amazon.awssdk.services.sns.model.GetTopicAttributesResponse;+import software.amazon.awssdk.services.sns.model.ListSubscriptionsByTopicRequest;+import software.amazon.awssdk.services.sns.model.ListSubscriptionsByTopicResponse;+import software.amazon.awssdk.services.sns.model.ListTopicsResponse;+import software.amazon.awssdk.services.sns.model.MessageAttributeValue;+import software.amazon.awssdk.services.sns.model.PublishRequest;+import software.amazon.awssdk.services.sns.model.PublishResponse;+import software.amazon.awssdk.services.sns.model.SetSubscriptionAttributesRequest;+import software.amazon.awssdk.services.sns.model.SubscribeRequest;+import software.amazon.awssdk.services.sns.model.SubscribeResponse;+import software.amazon.awssdk.services.sns.model.UnsubscribeRequest;+import software.amazon.awssdk.services.sqs.SqsClient;+import software.amazon.awssdk.services.sqs.model.*;++import java.util.Map;++import static org.assertj.core.api.Assertions.*;++@DisplayName("SNS Simple Notification Service")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class SnsTest {++ private static SnsClient sns;+ private static SqsClient sqs;+ private static String topicArn;+ private static String queueUrl;+ private static String queueArn;+ private static String subscriptionArn;++ @BeforeAll+ static void setup() {+ sns = TestFixtures.snsClient();+ sqs = TestFixtures.sqsClient();+ }++ @AfterAll+ static void cleanup() {+ if (sns != null && sqs != null) {+ try {+ sns.deleteTopic(DeleteTopicRequest.builder().topicArn(topicArn).build());+ } catch (Exception ignored) {}+ try {+ sqs.deleteQueue(software.amazon.awssdk.services.sqs.model.DeleteQueueRequest.builder()+ .queueUrl(queueUrl).build());+ } catch (Exception ignored) {}+ sns.close();+ sqs.close();+ }+ }++ @Test+ @Order(1)+ void createTopic() {+ String topicName = "sdk-test-topic-" + System.currentTimeMillis();+ CreateTopicResponse response = sns.createTopic(CreateTopicRequest.builder()+ .name(topicName).build());+ topicArn = response.topicArn();++ assertThat(topicArn).isNotNull().contains(topicName);+ }++ @Test+ @Order(2)+ void listTopics() {+ ListTopicsResponse response = sns.listTopics();++ assertThat(response.topics())+ .anyMatch(t -> t.topicArn().equals(topicArn));+ }++ @Test+ @Order(3)+ void getTopicAttributes() {+ GetTopicAttributesResponse response = sns.getTopicAttributes(+ GetTopicAttributesRequest.builder().topicArn(topicArn).build());++ assertThat(response.attributes()).containsKey("TopicArn");+ }++ @Test+ @Order(4)+ void subscribeSqs() {+ String queueName = "sns-test-queue-" + System.currentTimeMillis();+ queueUrl = sqs.createQueue(software.amazon.awssdk.services.sqs.model.CreateQueueRequest.builder()+ .queueName(queueName).build()).queueUrl();+ queueArn = sqs.getQueueAttributes(software.amazon.awssdk.services.sqs.model.GetQueueAttributesRequest.builder()+ .queueUrl(queueUrl)+ .attributeNames(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN)+ .build())+ .attributes().get(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN);++ SubscribeResponse response = sns.subscribe(SubscribeRequest.builder()+ .topicArn(topicArn)+ .protocol("sqs")+ .endpoint(queueArn)+ .build());+ subscriptionArn = response.subscriptionArn();++ assertThat(subscriptionArn).isNotNull();+ }++ @Test+ @Order(5)+ void listSubscriptionsByTopic() {+ ListSubscriptionsByTopicResponse response = sns.listSubscriptionsByTopic(+ ListSubscriptionsByTopicRequest.builder().topicArn(topicArn).build());++ assertThat(response.subscriptions())+ .anyMatch(s -> s.subscriptionArn().equals(subscriptionArn));+ }++ @Test+ @Order(6)+ void publish() {+ PublishResponse response = sns.publish(PublishRequest.builder()+ .topicArn(topicArn)+ .message("hello from sns")+ .subject("test-subject")+ .build());++ assertThat(response.messageId()).isNotNull();+ }++ @Test+ @Order(7)+ void verifySqsDelivery() throws InterruptedException {+ Thread.sleep(500); // Allow async delivery++ software.amazon.awssdk.services.sqs.model.ReceiveMessageResponse recv = sqs.receiveMessage(+ software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest.builder()+ .queueUrl(queueUrl)+ .maxNumberOfMessages(1)+ .waitTimeSeconds(2)+ .build());++ assertThat(recv.messages()).isNotEmpty();+ assertThat(recv.messages().get(0).body()).contains("hello from sns");++ sqs.deleteMessage(software.amazon.awssdk.services.sqs.model.DeleteMessageRequest.builder()+ .queueUrl(queueUrl)+ .receiptHandle(recv.messages().get(0).receiptHandle())+ .build());+ }++ @Test+ @Order(8)+ void publishWithMessageAttributes() throws InterruptedException {+ sns.publish(PublishRequest.builder()+ .topicArn(topicArn)+ .message("msg with attrs")+ .messageAttributes(Map.of(+ "my-attr", MessageAttributeValue.builder()+ .dataType("String").stringValue("my-value").build()+ ))+ .build());++ Thread.sleep(500);++ software.amazon.awssdk.services.sqs.model.ReceiveMessageResponse recv = sqs.receiveMessage(+ software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest.builder()+ .queueUrl(queueUrl)+ .maxNumberOfMessages(1)+ .waitTimeSeconds(2)+ .build());++ assertThat(recv.messages()).isNotEmpty();+ assertThat(recv.messages().get(0).body()).contains("my-value");++ sqs.deleteMessage(software.amazon.awssdk.services.sqs.model.DeleteMessageRequest.builder()+ .queueUrl(queueUrl)+ .receiptHandle(recv.messages().get(0).receiptHandle())+ .build());+ }++ @Test+ @Order(9)+ void rawMessageDelivery() throws InterruptedException {+ String rawQueueName = "sns-raw-delivery-" + System.currentTimeMillis();+ String rawQueueUrl = sqs.createQueue(software.amazon.awssdk.services.sqs.model.CreateQueueRequest.builder()+ .queueName(rawQueueName).build()).queueUrl();+ String rawQueueArn = sqs.getQueueAttributes(software.amazon.awssdk.services.sqs.model.GetQueueAttributesRequest.builder()+ .queueUrl(rawQueueUrl)+ .attributeNames(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN)+ .build())+ .attributes().get(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN);++ String rawSubArn = sns.subscribe(SubscribeRequest.builder()+ .topicArn(topicArn)+ .protocol("sqs")+ .endpoint(rawQueueArn)+ .build()).subscriptionArn();++ sns.setSubscriptionAttributes(SetSubscriptionAttributesRequest.builder()+ .subscriptionArn(rawSubArn)+ .attributeName("RawMessageDelivery")+ .attributeValue("true")+ .build());++ sns.publish(PublishRequest.builder()+ .topicArn(topicArn)+ .message("raw-delivery-content")+ .messageAttributes(Map.of(+ "color", MessageAttributeValue.builder()+ .dataType("String").stringValue("blue").build(),+ "count", MessageAttributeValue.builder()+ .dataType("Number").stringValue("42").build()+ ))+ .build());++ Thread.sleep(500);++ software.amazon.awssdk.services.sqs.model.ReceiveMessageResponse rawRecv = sqs.receiveMessage(+ software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest.builder()+ .queueUrl(rawQueueUrl)+ .maxNumberOfMessages(1)+ .waitTimeSeconds(2)+ .messageAttributeNames("All")+ .build());++ assertThat(rawRecv.messages()).isNotEmpty();+ String body = rawRecv.messages().get(0).body();+ assertThat(body).doesNotContain("\"Type\":\"Notification\"");+ assertThat(body).isEqualTo("raw-delivery-content");++ var msgAttrs = rawRecv.messages().get(0).messageAttributes();+ assertThat(msgAttrs).containsKey("color");+ assertThat(msgAttrs.get("color").stringValue()).isEqualTo("blue");+ assertThat(msgAttrs).containsKey("count");+ assertThat(msgAttrs.get("count").dataType()).isEqualTo("Number");++ // Cleanup+ sns.unsubscribe(UnsubscribeRequest.builder().subscriptionArn(rawSubArn).build());+ sqs.deleteQueue(software.amazon.awssdk.services.sqs.model.DeleteQueueRequest.builder()+ .queueUrl(rawQueueUrl).build());+ }++ @Test+ @Order(10)+ void unsubscribe() {+ sns.unsubscribe(UnsubscribeRequest.builder().subscriptionArn(subscriptionArn).build());+ }++ @Test+ @Order(11)+ void deleteTopic() {+ sns.deleteTopic(DeleteTopicRequest.builder().topicArn(topicArn).build());+ topicArn = null;+ }++ @Test+ @Order(12)+ void fifoExplicitDedup() throws InterruptedException {+ String fifoQueueName = "sns-fifo-explicit-" + System.currentTimeMillis() + ".fifo";+ String fifoQueueUrl = sqs.createQueue(software.amazon.awssdk.services.sqs.model.CreateQueueRequest.builder()+ .queueName(fifoQueueName)+ .attributes(Map.of(software.amazon.awssdk.services.sqs.model.QueueAttributeName.FIFO_QUEUE, "true"))+ .build()).queueUrl();+ String fifoQueueArn = sqs.getQueueAttributes(software.amazon.awssdk.services.sqs.model.GetQueueAttributesRequest.builder()+ .queueUrl(fifoQueueUrl)+ .attributeNames(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN)+ .build())+ .attributes().get(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN);++ String fifoTopicName = "sns-fifo-explicit-" + System.currentTimeMillis() + ".fifo";+ String fifoTopicArn = sns.createTopic(CreateTopicRequest.builder()+ .name(fifoTopicName)+ .attributes(Map.of("FifoTopic", "true"))+ .build()).topicArn();++ String fifoSubArn = sns.subscribe(SubscribeRequest.builder()+ .topicArn(fifoTopicArn)+ .protocol("sqs")+ .endpoint(fifoQueueArn)+ .build()).subscriptionArn();++ String explicitDedupId = "dedup-" + System.currentTimeMillis();+ sns.publish(PublishRequest.builder()+ .topicArn(fifoTopicArn)+ .message("fifo message with explicit dedup")+ .messageGroupId("test-group")+ .messageDeduplicationId(explicitDedupId)+ .build());++ Thread.sleep(500);++ software.amazon.awssdk.services.sqs.model.ReceiveMessageResponse fifoRecv = sqs.receiveMessage(+ software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest.builder()+ .queueUrl(fifoQueueUrl)+ .maxNumberOfMessages(1)+ .waitTimeSeconds(2)+ .messageSystemAttributeNames(software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName.MESSAGE_DEDUPLICATION_ID)+ .build());++ assertThat(fifoRecv.messages()).isNotEmpty();+ String receivedDedupId = fifoRecv.messages().get(0).attributes()+ .get(software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName.MESSAGE_DEDUPLICATION_ID);+ assertThat(receivedDedupId).isEqualTo(explicitDedupId);++ // Cleanup+ sns.unsubscribe(UnsubscribeRequest.builder().subscriptionArn(fifoSubArn).build());+ sns.deleteTopic(DeleteTopicRequest.builder().topicArn(fifoTopicArn).build());+ sqs.deleteQueue(software.amazon.awssdk.services.sqs.model.DeleteQueueRequest.builder()+ .queueUrl(fifoQueueUrl).build());+ }++ @Test+ @Order(13)+ void fifoContentBasedDedup() throws InterruptedException {+ String cbdQueueName = "sns-fifo-cbd-" + System.currentTimeMillis() + ".fifo";+ String cbdQueueUrl = sqs.createQueue(software.amazon.awssdk.services.sqs.model.CreateQueueRequest.builder()+ .queueName(cbdQueueName)+ .attributes(Map.of(software.amazon.awssdk.services.sqs.model.QueueAttributeName.FIFO_QUEUE, "true"))+ .build()).queueUrl();+ String cbdQueueArn = sqs.getQueueAttributes(software.amazon.awssdk.services.sqs.model.GetQueueAttributesRequest.builder()+ .queueUrl(cbdQueueUrl)+ .attributeNames(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN)+ .build())+ .attributes().get(software.amazon.awssdk.services.sqs.model.QueueAttributeName.QUEUE_ARN);++ String cbdTopicName = "sns-fifo-cbd-" + System.currentTimeMillis() + ".fifo";+ String cbdTopicArn = sns.createTopic(CreateTopicRequest.builder()+ .name(cbdTopicName)+ .attributes(Map.of(+ "FifoTopic", "true",+ "ContentBasedDeduplication", "true"+ ))+ .build()).topicArn();++ String cbdSubArn = sns.subscribe(SubscribeRequest.builder()+ .topicArn(cbdTopicArn)+ .protocol("sqs")+ .endpoint(cbdQueueArn)+ .build()).subscriptionArn();++ sns.publish(PublishRequest.builder()+ .topicArn(cbdTopicArn)+ .message("fifo message with content-based dedup")+ .messageGroupId("test-group")+ .build());++ Thread.sleep(500);++ software.amazon.awssdk.services.sqs.model.ReceiveMessageResponse cbdRecv = sqs.receiveMessage(+ software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest.builder()+ .queueUrl(cbdQueueUrl)+ .maxNumberOfMessages(1)+ .waitTimeSeconds(2)+ .messageSystemAttributeNames(software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName.MESSAGE_DEDUPLICATION_ID)+ .build());++ assertThat(cbdRecv.messages()).isNotEmpty();+ String receivedDedupId = cbdRecv.messages().get(0).attributes()+ .get(software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName.MESSAGE_DEDUPLICATION_ID);+ assertThat(receivedDedupId).isNotEmpty();++ // Cleanup+ sns.unsubscribe(UnsubscribeRequest.builder().subscriptionArn(cbdSubArn).build());+ sns.deleteTopic(DeleteTopicRequest.builder().topicArn(cbdTopicArn).build());+ sqs.deleteQueue(software.amazon.awssdk.services.sqs.model.DeleteQueueRequest.builder()+ .queueUrl(cbdQueueUrl).build());+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SqsTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SqsTest.javanew file mode 100644index 0000000000..8fc8fcd138--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SqsTest.java@@ -0,0 +1,354 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.core.SdkBytes;+import software.amazon.awssdk.services.sqs.SqsClient;+import software.amazon.awssdk.services.sqs.model.*;++import java.util.ArrayList;+import java.util.List;+import java.util.Map;++import static org.assertj.core.api.Assertions.*;++@DisplayName("SQS Simple Queue Service")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class SqsTest {++ private static SqsClient sqs;+ private static String queueUrl;+ private static String dlqUrl;++ @BeforeAll+ static void setup() {+ sqs = TestFixtures.sqsClient();+ }++ @AfterAll+ static void cleanup() {+ if (sqs != null) {+ try {+ sqs.deleteQueue(DeleteQueueRequest.builder().queueUrl(queueUrl).build());+ } catch (Exception ignored) {}+ try {+ sqs.deleteQueue(DeleteQueueRequest.builder().queueUrl(dlqUrl).build());+ } catch (Exception ignored) {}+ sqs.close();+ }+ }++ @Test+ @Order(1)+ void createQueue() {+ CreateQueueResponse response = sqs.createQueue(CreateQueueRequest.builder()+ .queueName("sdk-test-queue")+ .build());+ queueUrl = response.queueUrl();++ assertThat(queueUrl).isNotNull().contains("sdk-test-queue");+ }++ @Test+ @Order(2)+ void getQueueUrl() {+ GetQueueUrlResponse response = sqs.getQueueUrl(GetQueueUrlRequest.builder()+ .queueName("sdk-test-queue")+ .build());++ assertThat(response.queueUrl()).isEqualTo(queueUrl);+ }++ @Test+ @Order(3)+ void listQueues() {+ ListQueuesResponse response = sqs.listQueues();++ assertThat(response.queueUrls())+ .anyMatch(u -> u.contains("sdk-test-queue"));+ }++ @Test+ @Order(4)+ void sendMessage() {+ SendMessageResponse response = sqs.sendMessage(SendMessageRequest.builder()+ .queueUrl(queueUrl)+ .messageBody("Hello from AWS SDK!")+ .build());++ assertThat(response.messageId()).isNotEmpty();+ }++ @Test+ @Order(5)+ void receiveMessage() {+ ReceiveMessageResponse response = sqs.receiveMessage(ReceiveMessageRequest.builder()+ .queueUrl(queueUrl)+ .maxNumberOfMessages(1)+ .build());++ assertThat(response.messages()).isNotEmpty();+ assertThat(response.messages().get(0).body()).isEqualTo("Hello from AWS SDK!");++ // Cleanup message+ sqs.deleteMessage(DeleteMessageRequest.builder()+ .queueUrl(queueUrl)+ .receiptHandle(response.messages().get(0).receiptHandle())+ .build());+ }++ @Test+ @Order(6)+ void queueEmptyAfterDelete() {+ ReceiveMessageResponse response = sqs.receiveMessage(ReceiveMessageRequest.builder()+ .queueUrl(queueUrl)+ .maxNumberOfMessages(1)+ .build());++ assertThat(response.messages()).isEmpty();+ }++ @Test+ @Order(7)+ void sendMessageBatch() {+ SendMessageBatchResponse response = sqs.sendMessageBatch(SendMessageBatchRequest.builder()+ .queueUrl(queueUrl)+ .entries(+ SendMessageBatchRequestEntry.builder().id("msg1").messageBody("Batch message 1").build(),+ SendMessageBatchRequestEntry.builder().id("msg2").messageBody("Batch message 2").build(),+ SendMessageBatchRequestEntry.builder().id("msg3").messageBody("Batch message 3").build()+ )+ .build());++ assertThat(response.successful()).hasSize(3);+ assertThat(response.failed()).isEmpty();+ }++ @Test+ @Order(8)+ void deleteMessageBatch() {+ ReceiveMessageResponse receiveResponse = sqs.receiveMessage(ReceiveMessageRequest.builder()+ .queueUrl(queueUrl)+ .maxNumberOfMessages(3)+ .build());++ List<DeleteMessageBatchRequestEntry> deleteEntries = new ArrayList<>();+ for (int i = 0; i < receiveResponse.messages().size(); i++) {+ deleteEntries.add(DeleteMessageBatchRequestEntry.builder()+ .id("del" + i)+ .receiptHandle(receiveResponse.messages().get(i).receiptHandle())+ .build());+ }++ DeleteMessageBatchResponse response = sqs.deleteMessageBatch(DeleteMessageBatchRequest.builder()+ .queueUrl(queueUrl)+ .entries(deleteEntries)+ .build());++ assertThat(response.successful()).hasSize(3);+ }++ @Test+ @Order(9)+ void setQueueAttributes() {+ sqs.setQueueAttributes(SetQueueAttributesRequest.builder()+ .queueUrl(queueUrl)+ .attributesWithStrings(Map.of("VisibilityTimeout", "60"))+ .build());++ GetQueueAttributesResponse attrs = sqs.getQueueAttributes(GetQueueAttributesRequest.builder()+ .queueUrl(queueUrl)+ .attributeNamesWithStrings("VisibilityTimeout")+ .build());++ assertThat(attrs.attributesAsStrings().get("VisibilityTimeout")).isEqualTo("60");+ }++ @Test+ @Order(10)+ void tagQueue() {+ sqs.tagQueue(TagQueueRequest.builder()+ .queueUrl(queueUrl)+ .tags(Map.of("env", "test", "team", "backend"))+ .build());+ }++ @Test+ @Order(11)+ void listQueueTags() {+ ListQueueTagsResponse response = sqs.listQueueTags(ListQueueTagsRequest.builder()+ .queueUrl(queueUrl)+ .build());++ assertThat(response.tags().get("env")).isEqualTo("test");+ assertThat(response.tags().get("team")).isEqualTo("backend");+ }++ @Test+ @Order(12)+ void untagQueue() {+ sqs.untagQueue(UntagQueueRequest.builder()+ .queueUrl(queueUrl)+ .tagKeys("team")+ .build());++ ListQueueTagsResponse response = sqs.listQueueTags(ListQueueTagsRequest.builder()+ .queueUrl(queueUrl)+ .build());++ assertThat(response.tags().get("env")).isEqualTo("test");+ assertThat(response.tags()).doesNotContainKey("team");+ }++ @Test+ @Order(13)+ void changeMessageVisibilityBatch() {+ sqs.sendMessage(SendMessageRequest.builder().queueUrl(queueUrl).messageBody("vis-batch-1").build());+ sqs.sendMessage(SendMessageRequest.builder().queueUrl(queueUrl).messageBody("vis-batch-2").build());++ ReceiveMessageResponse rcv = sqs.receiveMessage(ReceiveMessageRequest.builder()+ .queueUrl(queueUrl).maxNumberOfMessages(2).build());++ List<ChangeMessageVisibilityBatchRequestEntry> visEntries = new ArrayList<>();+ for (int i = 0; i < rcv.messages().size(); i++) {+ visEntries.add(ChangeMessageVisibilityBatchRequestEntry.builder()+ .id("vis" + i)+ .receiptHandle(rcv.messages().get(i).receiptHandle())+ .visibilityTimeout(0)+ .build());+ }++ ChangeMessageVisibilityBatchResponse response = sqs.changeMessageVisibilityBatch(+ ChangeMessageVisibilityBatchRequest.builder()+ .queueUrl(queueUrl)+ .entries(visEntries)+ .build());++ assertThat(response.successful()).hasSize(2);++ // Cleanup+ ReceiveMessageResponse cleanup = sqs.receiveMessage(ReceiveMessageRequest.builder()+ .queueUrl(queueUrl).maxNumberOfMessages(2).build());+ for (Message msg : cleanup.messages()) {+ sqs.deleteMessage(DeleteMessageRequest.builder()+ .queueUrl(queueUrl).receiptHandle(msg.receiptHandle()).build());+ }+ }++ @Test+ @Order(14)+ void messageAttributesString() {+ sqs.sendMessage(b -> b.queueUrl(queueUrl).messageBody("msg-attrs")+ .messageAttributes(Map.of("myattr",+ MessageAttributeValue.builder().dataType("String").stringValue("myval").build())));++ ReceiveMessageResponse rcv = sqs.receiveMessage(b -> b.queueUrl(queueUrl)+ .maxNumberOfMessages(1).messageAttributeNames("All"));++ assertThat(rcv.messages()).isNotEmpty();+ assertThat(rcv.messages().get(0).messageAttributes().get("myattr").stringValue())+ .isEqualTo("myval");++ sqs.deleteMessage(b -> b.queueUrl(queueUrl).receiptHandle(rcv.messages().get(0).receiptHandle()));+ }++ @Test+ @Order(15)+ void messageAttributesBinary() {+ byte[] binaryPayload = new byte[]{1, 2, 3, 4, 5};+ sqs.sendMessage(b -> b.queueUrl(queueUrl).messageBody("binary-msg")+ .messageAttributes(Map.of("payload",+ MessageAttributeValue.builder()+ .dataType("Binary")+ .binaryValue(SdkBytes.fromByteArray(binaryPayload))+ .build())));++ ReceiveMessageResponse rcv = sqs.receiveMessage(b -> b.queueUrl(queueUrl)+ .maxNumberOfMessages(1).messageAttributeNames("All"));++ assertThat(rcv.messages()).isNotEmpty();+ assertThat(rcv.messages().get(0).messageAttributes()).containsKey("payload");+ assertThat(rcv.messages().get(0).messageAttributes().get("payload").binaryValue()).isNotNull();++ sqs.deleteMessage(b -> b.queueUrl(queueUrl).receiptHandle(rcv.messages().get(0).receiptHandle()));+ }++ @Test+ @Order(16)+ void longPolling() {+ long start = System.currentTimeMillis();+ sqs.receiveMessage(b -> b.queueUrl(queueUrl).maxNumberOfMessages(1).waitTimeSeconds(2));+ long elapsed = System.currentTimeMillis() - start;++ assertThat(elapsed).isGreaterThanOrEqualTo(1800); // Should wait ~2s+ }++ @Test+ @Order(17)+ void dlqRouting() {+ dlqUrl = sqs.createQueue(b -> b.queueName("sdk-test-dlq")).queueUrl();+ String dlqArn = sqs.getQueueAttributes(b -> b.queueUrl(dlqUrl).attributeNames(QueueAttributeName.QUEUE_ARN))+ .attributes().get(QueueAttributeName.QUEUE_ARN);++ String redrivePolicy = "{\"maxReceiveCount\":\"2\", \"deadLetterTargetArn\":\"" + dlqArn + "\"}";+ sqs.setQueueAttributes(b -> b.queueUrl(queueUrl)+ .attributes(Map.of(QueueAttributeName.REDRIVE_POLICY, redrivePolicy)));++ // Send a message+ sqs.sendMessage(b -> b.queueUrl(queueUrl).messageBody("dlq-test"));++ // Receive 1 (count=1)+ Message m1 = sqs.receiveMessage(b -> b.queueUrl(queueUrl).maxNumberOfMessages(1)).messages().get(0);+ sqs.changeMessageVisibility(b -> b.queueUrl(queueUrl).receiptHandle(m1.receiptHandle()).visibilityTimeout(0));++ // Receive 2 (count=2)+ Message m2 = sqs.receiveMessage(b -> b.queueUrl(queueUrl).maxNumberOfMessages(1)).messages().get(0);+ sqs.changeMessageVisibility(b -> b.queueUrl(queueUrl).receiptHandle(m2.receiptHandle()).visibilityTimeout(0));++ // Receive 3 (count=3 -> moves to DLQ)+ ReceiveMessageResponse r3 = sqs.receiveMessage(b -> b.queueUrl(queueUrl).maxNumberOfMessages(1));+ assertThat(r3.messages()).isEmpty();++ ReceiveMessageResponse dlqRcv = sqs.receiveMessage(b -> b.queueUrl(dlqUrl).maxNumberOfMessages(1));+ assertThat(dlqRcv.messages()).isNotEmpty();+ assertThat(dlqRcv.messages().get(0).body()).isEqualTo("dlq-test");++ // Cleanup+ sqs.deleteMessage(b -> b.queueUrl(dlqUrl).receiptHandle(dlqRcv.messages().get(0).receiptHandle()));+ }++ @Test+ @Order(18)+ void listDeadLetterSourceQueues() {+ Assumptions.assumeTrue(dlqUrl != null);++ ListDeadLetterSourceQueuesResponse response = sqs.listDeadLetterSourceQueues(b -> b.queueUrl(dlqUrl));++ assertThat(response.queueUrls()).contains(queueUrl);+ }++ @Test+ @Order(19)+ void startMessageMoveTask() {+ Assumptions.assumeTrue(dlqUrl != null);++ String dlqArn = sqs.getQueueAttributes(a -> a.queueUrl(dlqUrl).attributeNames(QueueAttributeName.QUEUE_ARN))+ .attributes().get(QueueAttributeName.QUEUE_ARN);++ StartMessageMoveTaskResponse moveResp = sqs.startMessageMoveTask(b -> b.sourceArn(dlqArn));+ assertThat(moveResp.taskHandle()).isNotNull();++ ListMessageMoveTasksResponse listMoves = sqs.listMessageMoveTasks(b -> b.sourceArn(dlqArn));+ assertThat(listMoves.results()).isNotNull();+ }++ @Test+ @Order(20)+ void deleteQueue() {+ sqs.deleteQueue(DeleteQueueRequest.builder().queueUrl(queueUrl).build());+ if (dlqUrl != null) {+ sqs.deleteQueue(DeleteQueueRequest.builder().queueUrl(dlqUrl).build());+ }+ queueUrl = null;+ dlqUrl = null;+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SsmTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SsmTest.javanew file mode 100644index 0000000000..e4c6833adb--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SsmTest.java@@ -0,0 +1,228 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.ssm.SsmClient;+import software.amazon.awssdk.services.ssm.model.AddTagsToResourceRequest;+import software.amazon.awssdk.services.ssm.model.DeleteParameterRequest;+import software.amazon.awssdk.services.ssm.model.DeleteParametersRequest;+import software.amazon.awssdk.services.ssm.model.DeleteParametersResponse;+import software.amazon.awssdk.services.ssm.model.DescribeParametersRequest;+import software.amazon.awssdk.services.ssm.model.DescribeParametersResponse;+import software.amazon.awssdk.services.ssm.model.GetParameterHistoryRequest;+import software.amazon.awssdk.services.ssm.model.GetParameterHistoryResponse;+import software.amazon.awssdk.services.ssm.model.GetParameterRequest;+import software.amazon.awssdk.services.ssm.model.GetParameterResponse;+import software.amazon.awssdk.services.ssm.model.GetParametersByPathRequest;+import software.amazon.awssdk.services.ssm.model.GetParametersByPathResponse;+import software.amazon.awssdk.services.ssm.model.GetParametersRequest;+import software.amazon.awssdk.services.ssm.model.GetParametersResponse;+import software.amazon.awssdk.services.ssm.model.LabelParameterVersionRequest;+import software.amazon.awssdk.services.ssm.model.ListTagsForResourceRequest;+import software.amazon.awssdk.services.ssm.model.ListTagsForResourceResponse;+import software.amazon.awssdk.services.ssm.model.ParameterNotFoundException;+import software.amazon.awssdk.services.ssm.model.ParameterType;+import software.amazon.awssdk.services.ssm.model.PutParameterRequest;+import software.amazon.awssdk.services.ssm.model.PutParameterResponse;+import software.amazon.awssdk.services.ssm.model.RemoveTagsFromResourceRequest;++import static org.assertj.core.api.Assertions.*;++@DisplayName("SSM Parameter Store")+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)+class SsmTest {++ private static SsmClient ssm;+ private static final String PARAM_NAME = "/sdk-test/param";+ private static final String PARAM_VALUE = "param-value-123";++ @BeforeAll+ static void setup() {+ ssm = TestFixtures.ssmClient();+ }++ @AfterAll+ static void cleanup() {+ if (ssm != null) {+ try {+ ssm.deleteParameter(DeleteParameterRequest.builder().name(PARAM_NAME).build());+ } catch (Exception ignored) {}+ try {+ ssm.deleteParameter(DeleteParameterRequest.builder().name("/sdk-test/param1").build());+ } catch (Exception ignored) {}+ try {+ ssm.deleteParameter(DeleteParameterRequest.builder().name("/sdk-test/param2").build());+ } catch (Exception ignored) {}+ ssm.close();+ }+ }++ @Test+ @Order(1)+ void putParameter() {+ PutParameterResponse response = ssm.putParameter(PutParameterRequest.builder()+ .name(PARAM_NAME)+ .value(PARAM_VALUE)+ .type(ParameterType.STRING)+ .overwrite(true)+ .build());++ assertThat(response.version()).isNotNull().isGreaterThan(0L);+ }++ @Test+ @Order(2)+ void getParameter() {+ GetParameterResponse response = ssm.getParameter(GetParameterRequest.builder()+ .name(PARAM_NAME)+ .withDecryption(false)+ .build());++ assertThat(response.parameter()).isNotNull();+ assertThat(response.parameter().value()).isEqualTo(PARAM_VALUE);+ }++ @Test+ @Order(3)+ void labelParameterVersion() {+ ssm.labelParameterVersion(LabelParameterVersionRequest.builder()+ .name(PARAM_NAME)+ .labels("test-label")+ .parameterVersion(1L)+ .build());+ // No exception means success+ }++ @Test+ @Order(4)+ void getParameterHistory() {+ GetParameterHistoryResponse response = ssm.getParameterHistory(+ GetParameterHistoryRequest.builder()+ .name(PARAM_NAME)+ .withDecryption(false)+ .build());++ assertThat(response.parameters())+ .anyMatch(p -> PARAM_VALUE.equals(p.value()));+ }++ @Test+ @Order(5)+ void getParameters() {+ GetParametersResponse response = ssm.getParameters(+ GetParametersRequest.builder()+ .names(PARAM_NAME)+ .build());++ assertThat(response.parameters())+ .anyMatch(p -> PARAM_NAME.equals(p.name()) && PARAM_VALUE.equals(p.value()));+ }++ @Test+ @Order(6)+ void describeParameters() {+ DescribeParametersResponse response = ssm.describeParameters(+ DescribeParametersRequest.builder().build());++ assertThat(response.parameters())+ .anyMatch(p -> PARAM_NAME.equals(p.name()));+ }++ @Test+ @Order(7)+ void getParametersByPath() {+ GetParametersByPathResponse response = ssm.getParametersByPath(+ GetParametersByPathRequest.builder()+ .path("/sdk-test")+ .recursive(false)+ .build());++ assertThat(response.parameters())+ .anyMatch(p -> PARAM_NAME.equals(p.name()));+ }++ @Test+ @Order(8)+ void addTagsToResource() {+ ssm.addTagsToResource(AddTagsToResourceRequest.builder()+ .resourceType("Parameter")+ .resourceId(PARAM_NAME)+ .tags(+ software.amazon.awssdk.services.ssm.model.Tag.builder().key("env").value("test").build(),+ software.amazon.awssdk.services.ssm.model.Tag.builder().key("team").value("backend").build()+ )+ .build());+ // No exception means success+ }++ @Test+ @Order(9)+ void listTagsForResource() {+ ListTagsForResourceResponse response = ssm.listTagsForResource(+ ListTagsForResourceRequest.builder()+ .resourceType("Parameter")+ .resourceId(PARAM_NAME)+ .build());++ assertThat(response.tagList())+ .anyMatch(t -> "env".equals(t.key()) && "test".equals(t.value()))+ .anyMatch(t -> "team".equals(t.key()) && "backend".equals(t.value()));+ }++ @Test+ @Order(10)+ void removeTagsFromResource() {+ ssm.removeTagsFromResource(RemoveTagsFromResourceRequest.builder()+ .resourceType("Parameter")+ .resourceId(PARAM_NAME)+ .tagKeys("team")+ .build());++ ListTagsForResourceResponse response = ssm.listTagsForResource(+ ListTagsForResourceRequest.builder()+ .resourceType("Parameter")+ .resourceId(PARAM_NAME)+ .build());++ assertThat(response.tagList())+ .anyMatch(t -> "env".equals(t.key()) && "test".equals(t.value()))+ .noneMatch(t -> "team".equals(t.key()));+ }++ @Test+ @Order(11)+ void deleteParameter() {+ ssm.deleteParameter(DeleteParameterRequest.builder()+ .name(PARAM_NAME)+ .build());++ assertThatThrownBy(() -> ssm.getParameter(GetParameterRequest.builder()+ .name(PARAM_NAME)+ .withDecryption(false)+ .build()))+ .isInstanceOf(ParameterNotFoundException.class);+ }++ @Test+ @Order(12)+ void deleteParameters() {+ ssm.putParameter(PutParameterRequest.builder()+ .name("/sdk-test/param1")+ .value("v1")+ .type(ParameterType.STRING)+ .overwrite(true)+ .build());+ ssm.putParameter(PutParameterRequest.builder()+ .name("/sdk-test/param2")+ .value("v2")+ .type(ParameterType.STRING)+ .overwrite(true)+ .build());++ DeleteParametersResponse response = ssm.deleteParameters(+ DeleteParametersRequest.builder()+ .names("/sdk-test/param1", "/sdk-test/param2")+ .build());++ assertThat(response.deletedParameters()).hasSize(2);+ }+}diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/StsTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/StsTest.javanew file mode 100644index 0000000000..a82229c714--- /dev/null+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/StsTest.java@@ -0,0 +1,233 @@+package com.floci.test;++import org.junit.jupiter.api.*;+import software.amazon.awssdk.services.sts.StsClient;+import software.amazon.awssdk.services.sts.model.*;++import java.time.Instant;++import static org.assertj.core.api.Assertions.*;++@DisplayName("STS Security Token Service")+class StsTest {++ private static StsClient sts;++ @BeforeAll+ static void setup() {+ sts = TestFixtures.stsClient();+ }++ @AfterAll+ static void cleanup() {+ if (sts != null) {+ sts.close();+ }+ }++ @Test+ void getCallerIdentity() {+ GetCallerIdentityResponse response = sts.getCallerIdentity(+ GetCallerIdentityRequest.builder().build());++ assertThat(response.account()).isNotNull();+ assertThat(response.arn()).isNotNull();+ assertThat(response.userId()).isNotNull();+ }++ @Test+ void getCallerIdentityAccountId() {+ GetCallerIdentityResponse response = sts.getCallerIdentity(+ GetCallerIdentityRequest.builder().build());++ assertThat(response.account()).isEqualTo("000000000000");+ }++ @Test+ void assumeRole() {+ AssumeRoleResponse response = sts.assumeRole(AssumeRoleRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/sdk-test-assumed-role")+ .roleSessionName("sdk-test-session")+ .durationSeconds(3600)+ .build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().accessKeyId()).startsWith("ASIA");+ assertThat(response.credentials().secretAccessKey()).isNotNull();+ assertThat(response.credentials().sessionToken()).isNotNull();+ assertThat(response.credentials().expiration()).isNotNull();+ }++ @Test+ void assumeRoleReturnsAssumedRoleUserArn() {+ AssumeRoleResponse response = sts.assumeRole(AssumeRoleRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/my-role")+ .roleSessionName("my-session")+ .build());++ assertThat(response.assumedRoleUser()).isNotNull();+ assertThat(response.assumedRoleUser().arn()).contains("assumed-role/my-role/my-session");+ }++ @Test+ void assumeRoleWithCustomDuration() {+ AssumeRoleResponse response = sts.assumeRole(AssumeRoleRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/short-lived-role")+ .roleSessionName("short-session")+ .durationSeconds(900)+ .build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().expiration()).isBefore(Instant.now().plusSeconds(901));+ }++ @Test+ void getSessionToken() {+ GetSessionTokenResponse response = sts.getSessionToken(+ GetSessionTokenRequest.builder().durationSeconds(7200).build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().accessKeyId()).startsWith("ASIA");+ assertThat(response.credentials().sessionToken()).isNotNull();+ assertThat(response.credentials().expiration()).isAfter(Instant.now());+ }++ @Test+ void assumeRoleWithWebIdentity() {+ AssumeRoleWithWebIdentityResponse response = sts.assumeRoleWithWebIdentity(+ AssumeRoleWithWebIdentityRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/web-identity-role")+ .roleSessionName("web-session")+ .webIdentityToken("eyJhbGciOiJSUzI1NiJ9.test-token")+ .durationSeconds(3600)+ .build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().accessKeyId()).startsWith("ASIA");+ assertThat(response.assumedRoleUser().arn()).contains("assumed-role/web-identity-role/web-session");+ }++ @Test+ void getFederationToken() {+ GetFederationTokenResponse response = sts.getFederationToken(+ GetFederationTokenRequest.builder()+ .name("sdk-test-feduser")+ .durationSeconds(3600)+ .build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().accessKeyId()).startsWith("ASIA");+ assertThat(response.federatedUser().arn()).contains("federated-user/sdk-test-feduser");+ }++ @Test+ void decodeAuthorizationMessage() {+ DecodeAuthorizationMessageResponse response = sts.decodeAuthorizationMessage(+ DecodeAuthorizationMessageRequest.builder()+ .encodedMessage("test-encoded-message")+ .build());++ assertThat(response.decodedMessage()).isNotEmpty();+ }++ @Test+ void assumeRoleMissingRoleArnThrows400() {+ assertThatThrownBy(() -> sts.assumeRole(AssumeRoleRequest.builder()+ .roleSessionName("s")+ .build()))+ .isInstanceOf(StsException.class)+ .extracting(e -> ((StsException) e).statusCode())+ .isEqualTo(400);+ }++ @Test+ void assumeRoleWithSaml() {+ AssumeRoleWithSamlResponse response = sts.assumeRoleWithSAML(+ AssumeRoleWithSamlRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/saml-role")+ .principalArn("arn:aws:iam::000000000000:saml-provider/MySAML")+ .samlAssertion("base64-encoded-saml-assertion")+ .durationSeconds(3600)+ .build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().accessKeyId()).startsWith("ASIA");+ assertThat(response.credentials().secretAccessKey()).isNotNull();+ assertThat(response.credentials().sessionToken()).isNotNull();+ assertThat(response.credentials().expiration()).isAfter(Instant.now());+ }++ @Test+ void assumeRoleWithSamlAssumedRoleUser() {+ AssumeRoleWithSamlResponse response = sts.assumeRoleWithSAML(+ AssumeRoleWithSamlRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/my-saml-role")+ .principalArn("arn:aws:iam::000000000000:saml-provider/Corp")+ .samlAssertion("assertion")+ .build());++ assertThat(response.assumedRoleUser()).isNotNull();+ assertThat(response.assumedRoleUser().arn()).contains("assumed-role/my-saml-role/");+ }++ @Test+ void assumeRoleWithWebIdentityMissingTokenThrows400() {+ assertThatThrownBy(() -> sts.assumeRoleWithWebIdentity(+ AssumeRoleWithWebIdentityRequest.builder()+ .roleArn("arn:aws:iam::000000000000:role/r")+ .roleSessionName("s")+ .build()))+ .isInstanceOf(StsException.class)+ .extracting(e -> ((StsException) e).statusCode())+ .isEqualTo(400);+ }++ @Test+ void getFederationTokenFederatedUserIdFormat() {+ GetFederationTokenResponse response = sts.getFederationToken(+ GetFederationTokenRequest.builder()+ .name("myuser")+ .build());++ assertThat(response.federatedUser()).isNotNull();+ assertThat(response.federatedUser().federatedUserId()).isEqualTo("000000000000:myuser");+ }++ @Test+ void getFederationTokenMissingNameThrows400() {+ assertThatThrownBy(() -> sts.getFederationToken(+ GetFederationTokenRequest.builder().build()))+ .isInstanceOf(StsException.class)+ .extracting(e -> ((StsException) e).statusCode())+ .isEqualTo(400);+ }++ @Test+ void getSessionTokenDefaultDuration() {+ GetSessionTokenResponse response = sts.getSessionToken(+ GetSessionTokenRequest.builder().build());++ assertThat(response.credentials()).isNotNull();+ assertThat(response.credentials().expiration()).isAfter(Instant.now().plusSeconds(3600));+ }++ @Test+ void decodeAuthorizationMessageEcho() {+ String msg = "exact-message-to-echo-back";+ DecodeAuthorizationMessageResponse response = sts.decodeAuthorizationMessage(+ DecodeAuthorizationMessageRequest.builder()+ .encodedMessage(msg)+ .build());++ assertThat(response.decodedMessage()).isEqualTo(msg);+ }++ @Test+ void decodeAuthorizationMessageMissingMessageThrows400() {+ assertThatThrownBy(() -> sts.decodeAuthorizationMessage(+ DecodeAuthorizationMessageRequest.builder().build()))+ .isInstanceOf(StsException.class)+ .extracting(e -> ((StsException) e).statusCode())+ .isEqualTo(400);+ }+}diff --git a/compatibility-tests/sdk-test-node/Dockerfile b/compatibility-tests/sdk-test-node/Dockerfilenew file mode 100644index 0000000000..2a1cd8a8f0--- /dev/null+++ b/compatibility-tests/sdk-test-node/Dockerfile@@ -0,0 +1,14 @@+FROM node:22-slim+WORKDIR /app++COPY package.json package-lock.json ./+RUN npm ci --no-fund --no-audit++COPY tsconfig.json vitest.config.ts ./+COPY tests/ tests/++ENV FLOCI_ENDPOINT=http://floci:4566+ENV TEST_RESULTS_DIR=/results++RUN mkdir -p /results+ENTRYPOINT ["npm", "test"]diff --git a/compatibility-tests/sdk-test-node/README.md b/compatibility-tests/sdk-test-node/README.mdnew file mode 100644index 0000000000..6116866261--- /dev/null+++ b/compatibility-tests/sdk-test-node/README.md@@ -0,0 +1,60 @@+# 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 |++## 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+```diff --git a/compatibility-tests/sdk-test-node/package-lock.json b/compatibility-tests/sdk-test-node/package-lock.jsonnew file mode 100644index 0000000000..94a39dfe34--- /dev/null+++ b/compatibility-tests/sdk-test-node/package-lock.json@@ -0,0 +1,3888 @@+{+ "name": "floci-compatibility-tests-typescript",+ "version": "1.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "floci-compatibility-tests-typescript",+ "version": "1.0.0",+ "dependencies": {+ "@aws-sdk/client-cloudformation": "^3.500.0",+ "@aws-sdk/client-cloudwatch": "^3.500.0",+ "@aws-sdk/client-cognito-identity-provider": "^3.500.0",+ "@aws-sdk/client-dynamodb": "^3.500.0",+ "@aws-sdk/client-iam": "^3.500.0",+ "@aws-sdk/client-kinesis": "^3.500.0",+ "@aws-sdk/client-kms": "^3.500.0",+ "@aws-sdk/client-lambda": "^3.500.0",+ "@aws-sdk/client-s3": "^3.500.0",+ "@aws-sdk/client-secrets-manager": "^3.500.0",+ "@aws-sdk/client-sns": "^3.500.0",+ "@aws-sdk/client-sqs": "^3.500.0",+ "@aws-sdk/client-ssm": "^3.500.0",+ "@aws-sdk/client-sts": "^3.500.0"+ },+ "devDependencies": {+ "@types/node": "^20.0.0",+ "typescript": "^5.4.0",+ "vitest": "^2.0.0"+ }+ },+ "node_modules/@aws-crypto/crc32": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz",+ "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@aws-crypto/crc32c": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz",+ "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha1-browser": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz",+ "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/supports-web-crypto": "^5.2.0",+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "@aws-sdk/util-locate-window": "^3.0.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz",+ "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-js": "^5.2.0",+ "@aws-crypto/supports-web-crypto": "^5.2.0",+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "@aws-sdk/util-locate-window": "^3.0.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-js": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz",+ "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@aws-crypto/supports-web-crypto": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz",+ "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/util": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz",+ "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.222.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-sdk/client-cloudformation": {+ "version": "3.1021.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudformation/-/client-cloudformation-3.1021.0.tgz",+ "integrity": "sha512-SZXd1gLjyRLHf1FfID4gmGaDe/2lgwCl8LzBGeH21ol1mCL344PJK4aetQNmY51yfoInI9onVIGDf+8q/J/lpA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/credential-provider-node": "^3.972.29",+ "@aws-sdk/middleware-host-header": "^3.972.8",+ "@aws-sdk/middleware-logger": "^3.972.8",+ "@aws-sdk/middleware-recursion-detection": "^3.972.9",+ "@aws-sdk/middleware-user-agent": "^3.972.28",+ "@aws-sdk/region-config-resolver": "^3.972.10",+ "@aws-sdk/types": "^3.973.6",+ "@aws-sdk/util-endpoints": "^3.996.5",+ "@aws-sdk/util-user-agent-browser": "^3.972.8",+ "@aws-sdk/util-user-agent-node": "^3.973.14",+ "@smithy/config-resolver": "^4.4.13",+ "@smithy/core": "^3.23.13",+ "@smithy/fetch-http-handler": "^5.3.15",+ "@smithy/hash-node": "^4.2.12",+ "@smithy/invalid-dependency": "^4.2.12",+ "@smithy/middleware-content-length": "^4.2.12",+ "@smithy/middleware-endpoint": "^4.4.28",+ "@smithy/middleware-retry": "^4.4.46",+ "@smithy/middleware-serde": "^4.2.16",+ "@smithy/middleware-stack": "^4.2.12",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/node-http-handler": "^4.5.1",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "@smithy/url-parser": "^4.2.12",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.44",+ "@smithy/util-defaults-mode-node": "^4.2.48",+ "@smithy/util-endpoints": "^3.3.3",+ "@smithy/util-middleware": "^4.2.12",+ "@smithy/util-retry": "^4.2.13",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.14",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-cloudwatch": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudwatch/-/client-cloudwatch-3.1003.0.tgz",+ "integrity": "sha512-q05LW/U8eZ5nMqzFuIr2vgKXcmIsLUeU/VCcaoZSqcXLa5zVmM626b9l0kBOrU9G78QUcqvjwz9yHgDl7DWabA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-compression": "^4.3.37",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-cognito-identity-provider": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider/-/client-cognito-identity-provider-3.1003.0.tgz",+ "integrity": "sha512-6RCKhKaEHfpX309NIr/x4T2vzZxplMPLOnTexi9rLoY7rJ5D0SaONx8QCEBCm3y+a5mt7E+srQ/veteBM6IlLQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-dynamodb": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-dynamodb/-/client-dynamodb-3.1003.0.tgz",+ "integrity": "sha512-tUN5kKCvaXeXnw3nqckhRq9m3bAKsYL2WaNotYEFrKQrFW3WAEu6jxRwsRr+pasSEEYvX4B03J9tlaxfPR8rZA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/dynamodb-codec": "^3.972.19",+ "@aws-sdk/middleware-endpoint-discovery": "^3.972.7",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-iam": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-iam/-/client-iam-3.1003.0.tgz",+ "integrity": "sha512-EVnEoYyPR45CZ38kUcSmy3A67EvwCii8dy9ZDTlT0G6xrewCYUj5X29gMp4cun/pVkvO3xTG+t1x69nMN2F3gQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-kinesis": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-kinesis/-/client-kinesis-3.1003.0.tgz",+ "integrity": "sha512-B32bQ5KEkoYQcZdhe1fkH0o94lvPweAuUVoRpP1pCALR7sQYxJn2hbm5NW67TzFjYUgUJg3nHE5j7Uk8Szk6mg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/eventstream-serde-browser": "^4.2.11",+ "@smithy/eventstream-serde-config-resolver": "^4.3.11",+ "@smithy/eventstream-serde-node": "^4.2.11",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-kms": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-kms/-/client-kms-3.1003.0.tgz",+ "integrity": "sha512-XO11qsl/p+WTzOTf4o9w6aZZ0lh2QHwwpuv9en2fgtVL4PnibndWC4Ln/5CB9fJpeUsQo8dLAys1PVhTh4lcGQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-lambda": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.1003.0.tgz",+ "integrity": "sha512-xuvD0vEGEX6avskfAQ40LuVmIcgHGWomK2NeMF8S3t/b524DuCH9ZexgS13UfH+WJ2tRRcGBUrolE/E1AiawWA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/eventstream-serde-browser": "^4.2.11",+ "@smithy/eventstream-serde-config-resolver": "^4.3.11",+ "@smithy/eventstream-serde-node": "^4.2.11",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-stream": "^4.5.17",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-s3": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.1003.0.tgz",+ "integrity": "sha512-on8GvIWeH1pD0l53NuKbPO84bEC1mk/9zskgU+dVKcVoGxOZI94fVddCJb+IwIUN6rfBHCfXPCVbgVyzsHTAVg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha1-browser": "5.2.0",+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-bucket-endpoint": "^3.972.7",+ "@aws-sdk/middleware-expect-continue": "^3.972.7",+ "@aws-sdk/middleware-flexible-checksums": "^3.973.4",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-location-constraint": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-sdk-s3": "^3.972.18",+ "@aws-sdk/middleware-ssec": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/signature-v4-multi-region": "^3.996.6",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/eventstream-serde-browser": "^4.2.11",+ "@smithy/eventstream-serde-config-resolver": "^4.3.11",+ "@smithy/eventstream-serde-node": "^4.2.11",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-blob-browser": "^4.2.12",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/hash-stream-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/md5-js": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-stream": "^4.5.17",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-secrets-manager": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-secrets-manager/-/client-secrets-manager-3.1003.0.tgz",+ "integrity": "sha512-LzieOPgUdoJU7cG4ypyHsoa+uTB27ASnB8YmcmGpxJ4BNct96IZEgxrL+l/jBohUSHtKyfy40fSc7z3Pu4Jwuw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-sns": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sns/-/client-sns-3.1003.0.tgz",+ "integrity": "sha512-ykHU6crZZmb83XzZ11OnZMaAKbJWog90rCeTPyG0nKD5HKpdKWgQ8Z0BBm4xGUEsgakh3qMOntyI9z2/CqB8vw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-sqs": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sqs/-/client-sqs-3.1003.0.tgz",+ "integrity": "sha512-/oReHb8C0iINjxk+qYQcFvwHjh+VUZjI3UhMIZsD156XfTxxR/DjoaNFq3CwrWr2Q5/LiWQm8mNha1YHnmHmQw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-sdk-sqs": "^3.972.13",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/md5-js": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-ssm": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.1003.0.tgz",+ "integrity": "sha512-4Rmj8cN6Cn0fdZpz/zlao/CXYcgasLiGjD1E7vLGV3M7dNytQxh1asBWthYSt/OkJvI918P1gcT6Mgs3Zq2bcA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.11",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/client-sts": {+ "version": "3.1003.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.1003.0.tgz",+ "integrity": "sha512-iRqrd4UHQrCH+KNqrSj6h8uP1QwN+GTYeiygw0PP4epWiQ5A0zwpfLq9bMQWrHFiPW9pQbz5foG+a7aawNfgvQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/credential-provider-node": "^3.972.17",+ "@aws-sdk/middleware-host-header": "^3.972.7",+ "@aws-sdk/middleware-logger": "^3.972.7",+ "@aws-sdk/middleware-recursion-detection": "^3.972.7",+ "@aws-sdk/middleware-user-agent": "^3.972.18",+ "@aws-sdk/region-config-resolver": "^3.972.7",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-endpoints": "^3.996.4",+ "@aws-sdk/util-user-agent-browser": "^3.972.7",+ "@aws-sdk/util-user-agent-node": "^3.973.3",+ "@smithy/config-resolver": "^4.4.10",+ "@smithy/core": "^3.23.8",+ "@smithy/fetch-http-handler": "^5.3.13",+ "@smithy/hash-node": "^4.2.11",+ "@smithy/invalid-dependency": "^4.2.11",+ "@smithy/middleware-content-length": "^4.2.11",+ "@smithy/middleware-endpoint": "^4.4.22",+ "@smithy/middleware-retry": "^4.4.39",+ "@smithy/middleware-serde": "^4.2.12",+ "@smithy/middleware-stack": "^4.2.11",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/node-http-handler": "^4.4.14",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/url-parser": "^4.2.11",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.38",+ "@smithy/util-defaults-mode-node": "^4.2.41",+ "@smithy/util-endpoints": "^3.3.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-retry": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/core": {+ "version": "3.973.26",+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.973.26.tgz",+ "integrity": "sha512-A/E6n2W42ruU+sfWk+mMUOyVXbsSgGrY3MJ9/0Az5qUdG67y8I6HYzzoAa+e/lzxxl1uCYmEL6BTMi9ZiZnplQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@aws-sdk/xml-builder": "^3.972.16",+ "@smithy/core": "^3.23.13",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/signature-v4": "^5.3.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-middleware": "^4.2.12",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/crc64-nvme": {+ "version": "3.972.4",+ "resolved": "https://registry.npmjs.org/@aws-sdk/crc64-nvme/-/crc64-nvme-3.972.4.tgz",+ "integrity": "sha512-HKZIZLbRyvzo/bXZU7Zmk6XqU+1C9DjI56xd02vwuDIxedxBEqP17t9ExhbP9QFeNq/a3l9GOcyirFXxmbDhmw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-env": {+ "version": "3.972.24",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.24.tgz",+ "integrity": "sha512-FWg8uFmT6vQM7VuzELzwVo5bzExGaKHdubn0StjgrcU5FvuLExUe+k06kn/40uKv59rYzhez8eFNM4yYE/Yb/w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-http": {+ "version": "3.972.26",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.26.tgz",+ "integrity": "sha512-CY4ppZ+qHYqcXqBVi//sdHST1QK3KzOEiLtpLsc9W2k2vfZPKExGaQIsOwcyvjpjUEolotitmd3mUNY56IwDEA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/fetch-http-handler": "^5.3.15",+ "@smithy/node-http-handler": "^4.5.1",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "@smithy/util-stream": "^4.5.21",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-ini": {+ "version": "3.972.28",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.28.tgz",+ "integrity": "sha512-wXYvq3+uQcZV7k+bE4yDXCTBdzWTU9x/nMiKBfzInmv6yYK1veMK0AKvRfRBd72nGWYKcL6AxwiPg9z/pYlgpw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/credential-provider-env": "^3.972.24",+ "@aws-sdk/credential-provider-http": "^3.972.26",+ "@aws-sdk/credential-provider-login": "^3.972.28",+ "@aws-sdk/credential-provider-process": "^3.972.24",+ "@aws-sdk/credential-provider-sso": "^3.972.28",+ "@aws-sdk/credential-provider-web-identity": "^3.972.28",+ "@aws-sdk/nested-clients": "^3.996.18",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/credential-provider-imds": "^4.2.12",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-login": {+ "version": "3.972.28",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.28.tgz",+ "integrity": "sha512-ZSTfO6jqUTCysbdBPtEX5OUR//3rbD0lN7jO3sQeS2Gjr/Y+DT6SbIJ0oT2cemNw3UzKu97sNONd1CwNMthuZQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/nested-clients": "^3.996.18",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-node": {+ "version": "3.972.29",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.29.tgz",+ "integrity": "sha512-clSzDcvndpFJAggLDnDb36sPdlZYyEs5Zm6zgZjjUhwsJgSWiWKwFIXUVBcbruidNyBdbpOv2tNDL9sX8y3/0g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/credential-provider-env": "^3.972.24",+ "@aws-sdk/credential-provider-http": "^3.972.26",+ "@aws-sdk/credential-provider-ini": "^3.972.28",+ "@aws-sdk/credential-provider-process": "^3.972.24",+ "@aws-sdk/credential-provider-sso": "^3.972.28",+ "@aws-sdk/credential-provider-web-identity": "^3.972.28",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/credential-provider-imds": "^4.2.12",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-process": {+ "version": "3.972.24",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.24.tgz",+ "integrity": "sha512-Q2k/XLrFXhEztPHqj4SLCNID3hEPdlhh1CDLBpNnM+1L8fq7P+yON9/9M1IGN/dA5W45v44ylERfXtDAlmMNmw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-sso": {+ "version": "3.972.28",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.28.tgz",+ "integrity": "sha512-IoUlmKMLEITFn1SiCTjPfR6KrE799FBo5baWyk/5Ppar2yXZoUdaRqZzJzK6TcJxx450M8m8DbpddRVYlp5R/A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/nested-clients": "^3.996.18",+ "@aws-sdk/token-providers": "3.1021.0",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-web-identity": {+ "version": "3.972.28",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.28.tgz",+ "integrity": "sha512-d+6h0SD8GGERzKe27v5rOzNGKOl0D+l0bWJdqrxH8WSQzHzjsQFIAPgIeOTUwBHVsKKwtSxc91K/SWax6XgswQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/nested-clients": "^3.996.18",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/dynamodb-codec": {+ "version": "3.972.19",+ "resolved": "https://registry.npmjs.org/@aws-sdk/dynamodb-codec/-/dynamodb-codec-3.972.19.tgz",+ "integrity": "sha512-M/y+eA53imfFxA/QjrpfnyhG/eLIHxsNI6GmevwIVoX7E1vGYyevKt1iJ+aZwOVbL9lLeHtlBuYUEhYgVjwDpQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.18",+ "@smithy/core": "^3.23.8",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/util-base64": "^4.3.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/endpoint-cache": {+ "version": "3.972.4",+ "resolved": "https://registry.npmjs.org/@aws-sdk/endpoint-cache/-/endpoint-cache-3.972.4.tgz",+ "integrity": "sha512-GdASDnWanLnHxKK0hqV97xz23QmfA/C8yGe0PiuEmWiHSe+x+x+mFEj4sXqx9IbfyPncWz8f4EhNwBSG9cgYCg==",+ "license": "Apache-2.0",+ "dependencies": {+ "mnemonist": "0.38.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-bucket-endpoint": {+ "version": "3.972.7",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.972.7.tgz",+ "integrity": "sha512-goX+axlJ6PQlRnzE2bQisZ8wVrlm6dXJfBzMJhd8LhAIBan/w1Kl73fJnalM/S+18VnpzIHumyV6DtgmvqG5IA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-arn-parser": "^3.972.3",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/types": "^4.13.0",+ "@smithy/util-config-provider": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-endpoint-discovery": {+ "version": "3.972.7",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-endpoint-discovery/-/middleware-endpoint-discovery-3.972.7.tgz",+ "integrity": "sha512-ZeFfgAVOGR+fDq/JAPsVA3P07ba74hIppoGfmQyfzZMfAQAzc9Lbg5pndZU8EanzfKnlXbv6y09OMrSkTsUuOg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/endpoint-cache": "^3.972.4",+ "@aws-sdk/types": "^3.973.5",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-expect-continue": {+ "version": "3.972.7",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.972.7.tgz",+ "integrity": "sha512-mvWqvm61bmZUKmmrtl2uWbokqpenY3Mc3Jf4nXB/Hse6gWxLPaCQThmhPBDzsPSV8/Odn8V6ovWt3pZ7vy4BFQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.5",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-flexible-checksums": {+ "version": "3.973.4",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.973.4.tgz",+ "integrity": "sha512-7CH2jcGmkvkHc5Buz9IGbdjq1729AAlgYJiAvGq7qhCHqYleCsriWdSnmsqWTwdAfXHMT+pkxX3w6v5tJNcSug==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/crc32": "5.2.0",+ "@aws-crypto/crc32c": "5.2.0",+ "@aws-crypto/util": "5.2.0",+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/crc64-nvme": "^3.972.4",+ "@aws-sdk/types": "^3.973.5",+ "@smithy/is-array-buffer": "^4.2.2",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/types": "^4.13.0",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-stream": "^4.5.17",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-host-header": {+ "version": "3.972.8",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.972.8.tgz",+ "integrity": "sha512-wAr2REfKsqoKQ+OkNqvOShnBoh+nkPurDKW7uAeVSu6kUECnWlSJiPvnoqxGlfousEY/v9LfS9sNc46hjSYDIQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-location-constraint": {+ "version": "3.972.7",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.972.7.tgz",+ "integrity": "sha512-vdK1LJfffBp87Lj0Bw3WdK1rJk9OLDYdQpqoKgmpIZPe+4+HawZ6THTbvjhJt4C4MNnRrHTKHQjkwBiIpDBoig==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.5",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-logger": {+ "version": "3.972.8",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.972.8.tgz",+ "integrity": "sha512-CWl5UCM57WUFaFi5kB7IBY1UmOeLvNZAZ2/OZ5l20ldiJ3TiIz1pC65gYj8X0BCPWkeR1E32mpsCk1L1I4n+lA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-recursion-detection": {+ "version": "3.972.9",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.972.9.tgz",+ "integrity": "sha512-/Wt5+CT8dpTFQxEJ9iGy/UGrXr7p2wlIOEHvIr/YcHYByzoLjrqkYqXdJjd9UIgWjv7eqV2HnFJen93UTuwfTQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@aws/lambda-invoke-store": "^0.2.2",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-sdk-s3": {+ "version": "3.972.18",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.972.18.tgz",+ "integrity": "sha512-5E3XxaElrdyk6ZJ0TjH7Qm6ios4b/qQCiLr6oQ8NK7e4Kn6JBTJCaYioQCQ65BpZ1+l1mK5wTAac2+pEz0Smpw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.18",+ "@aws-sdk/types": "^3.973.5",+ "@aws-sdk/util-arn-parser": "^3.972.3",+ "@smithy/core": "^3.23.8",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/signature-v4": "^5.3.11",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/util-config-provider": "^4.2.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-stream": "^4.5.17",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-sdk-sqs": {+ "version": "3.972.13",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sqs/-/middleware-sdk-sqs-3.972.13.tgz",+ "integrity": "sha512-DiGD+Q636hk1+nTq/zSZe1Ih5GhEwmOzH/3oR3A+0/53hVK8E4OWFqAf9dwPE9pufp4mCmn/bE6qU8mE9Q6sig==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.5",+ "@smithy/smithy-client": "^4.12.2",+ "@smithy/types": "^4.13.0",+ "@smithy/util-hex-encoding": "^4.2.2",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-ssec": {+ "version": "3.972.7",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.972.7.tgz",+ "integrity": "sha512-G9clGVuAml7d8DYzY6DnRi7TIIDRvZ3YpqJPz/8wnWS5fYx/FNWNmkO6iJVlVkQg9BfeMzd+bVPtPJOvC4B+nQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.5",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-user-agent": {+ "version": "3.972.28",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.972.28.tgz",+ "integrity": "sha512-cfWZFlVh7Va9lRay4PN2A9ARFzaBYcA097InT5M2CdRS05ECF5yaz86jET8Wsl2WcyKYEvVr/QNmKtYtafUHtQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/types": "^3.973.6",+ "@aws-sdk/util-endpoints": "^3.996.5",+ "@smithy/core": "^3.23.13",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "@smithy/util-retry": "^4.2.13",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/nested-clients": {+ "version": "3.996.18",+ "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.996.18.tgz",+ "integrity": "sha512-c7ZSIXrESxHKx2Mcopgd8AlzZgoXMr20fkx5ViPWPOLBvmyhw9VwJx/Govg8Ef/IhEon5R9l53Z8fdYSEmp6VA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/middleware-host-header": "^3.972.8",+ "@aws-sdk/middleware-logger": "^3.972.8",+ "@aws-sdk/middleware-recursion-detection": "^3.972.9",+ "@aws-sdk/middleware-user-agent": "^3.972.28",+ "@aws-sdk/region-config-resolver": "^3.972.10",+ "@aws-sdk/types": "^3.973.6",+ "@aws-sdk/util-endpoints": "^3.996.5",+ "@aws-sdk/util-user-agent-browser": "^3.972.8",+ "@aws-sdk/util-user-agent-node": "^3.973.14",+ "@smithy/config-resolver": "^4.4.13",+ "@smithy/core": "^3.23.13",+ "@smithy/fetch-http-handler": "^5.3.15",+ "@smithy/hash-node": "^4.2.12",+ "@smithy/invalid-dependency": "^4.2.12",+ "@smithy/middleware-content-length": "^4.2.12",+ "@smithy/middleware-endpoint": "^4.4.28",+ "@smithy/middleware-retry": "^4.4.46",+ "@smithy/middleware-serde": "^4.2.16",+ "@smithy/middleware-stack": "^4.2.12",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/node-http-handler": "^4.5.1",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "@smithy/url-parser": "^4.2.12",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.44",+ "@smithy/util-defaults-mode-node": "^4.2.48",+ "@smithy/util-endpoints": "^3.3.3",+ "@smithy/util-middleware": "^4.2.12",+ "@smithy/util-retry": "^4.2.13",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/region-config-resolver": {+ "version": "3.972.10",+ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.972.10.tgz",+ "integrity": "sha512-1dq9ToC6e070QvnVhhbAs3bb5r6cQ10gTVc6cyRV5uvQe7P138TV2uG2i6+Yok4bAkVAcx5AqkTEBUvWEtBlsQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@smithy/config-resolver": "^4.4.13",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/signature-v4-multi-region": {+ "version": "3.996.6",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.6.tgz",+ "integrity": "sha512-NnsOQsVmJXy4+IdPFUjRCWPn9qNH1TzS/f7MiWgXeoHs903tJpAWQWQtoFvLccyPoBgomKP9L89RRr2YsT/L0g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/middleware-sdk-s3": "^3.972.18",+ "@aws-sdk/types": "^3.973.5",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/signature-v4": "^5.3.11",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/token-providers": {+ "version": "3.1021.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1021.0.tgz",+ "integrity": "sha512-TKY6h9spUk3OLs5v1oAgW9mAeBE3LAGNBwJokLy96wwmd4W2v/tYlXseProyed9ValDj2u1jK/4Rg1T+1NXyJA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "^3.973.26",+ "@aws-sdk/nested-clients": "^3.996.18",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/types": {+ "version": "3.973.6",+ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.973.6.tgz",+ "integrity": "sha512-Atfcy4E++beKtwJHiDln2Nby8W/mam64opFPTiHEqgsthqeydFS1pY+OUlN1ouNOmf8ArPU/6cDS65anOP3KQw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-arn-parser": {+ "version": "3.972.3",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.972.3.tgz",+ "integrity": "sha512-HzSD8PMFrvgi2Kserxuff5VitNq2sgf3w9qxmskKDiDTThWfVteJxuCS9JXiPIPtmCrp+7N9asfIaVhBFORllA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-endpoints": {+ "version": "3.996.5",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.996.5.tgz",+ "integrity": "sha512-Uh93L5sXFNbyR5sEPMzUU8tJ++Ku97EY4udmC01nB8Zu+xfBPwpIwJ6F7snqQeq8h2pf+8SGN5/NoytfKgYPIw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@smithy/types": "^4.13.1",+ "@smithy/url-parser": "^4.2.12",+ "@smithy/util-endpoints": "^3.3.3",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-locate-window": {+ "version": "3.965.5",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.965.5.tgz",+ "integrity": "sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws-sdk/util-user-agent-browser": {+ "version": "3.972.8",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.972.8.tgz",+ "integrity": "sha512-B3KGXJviV2u6Cdw2SDY2aDhoJkVfY/Q/Trwk2CMSkikE1Oi6gRzxhvhIfiRpHfmIsAhV4EA54TVEX8K6CbHbkA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.973.6",+ "@smithy/types": "^4.13.1",+ "bowser": "^2.11.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-sdk/util-user-agent-node": {+ "version": "3.973.14",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.973.14.tgz",+ "integrity": "sha512-vNSB/DYaPOyujVZBg/zUznH9QC142MaTHVmaFlF7uzzfg3CgT9f/l4C0Yi+vU/tbBhxVcXVB90Oohk5+o+ZbWw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/middleware-user-agent": "^3.972.28",+ "@aws-sdk/types": "^3.973.6",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/types": "^4.13.1",+ "@smithy/util-config-provider": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "aws-crt": ">=1.0.0"+ },+ "peerDependenciesMeta": {+ "aws-crt": {+ "optional": true+ }+ }+ },+ "node_modules/@aws-sdk/xml-builder": {+ "version": "3.972.16",+ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.16.tgz",+ "integrity": "sha512-iu2pyvaqmeatIJLURLqx9D+4jKAdTH20ntzB6BFwjyN7V960r4jK32mx0Zf7YbtOYAbmbtQfDNuL60ONinyw7A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "fast-xml-parser": "5.5.8",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@aws/lambda-invoke-store": {+ "version": "0.2.3",+ "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.3.tgz",+ "integrity": "sha512-oLvsaPMTBejkkmHhjf09xTgk71mOqyr/409NKhRIL08If7AhVfUsJhVsx386uJaqNd42v9kWamQ9lFbkoC2dYw==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.1.tgz",+ "integrity": "sha512-d6FinEBLdIiK+1uACUttJKfgZREXrF0Qc2SmLII7W2AD8FfiZ9Wjd+rD/iRuf5s5dWrr1GgwXCvPqOuDquOowA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.1.tgz",+ "integrity": "sha512-YjG/EwIDvvYI1YvYbHvDz/BYHtkY4ygUIXHnTdLhG+hKIQFBiosfWiACWortsKPKU/+dUwQQCKQM3qrDe8c9BA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.1.tgz",+ "integrity": "sha512-mjCpF7GmkRtSJwon+Rq1N8+pI+8l7w5g9Z3vWj4T7abguC4Czwi3Yu/pFaLvA3TTeMVjnu3ctigusqWUfjZzvw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.1.tgz",+ "integrity": "sha512-haZ7hJ1JT4e9hqkoT9R/19XW2QKqjfJVv+i5AGg57S+nLk9lQnJ1F/eZloRO3o9Scy9CM3wQ9l+dkXtcBgN5Ew==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.1.tgz",+ "integrity": "sha512-czw90wpQq3ZsAVBlinZjAYTKduOjTywlG7fEeWKUA7oCmpA8xdTkxZZlwNJKWqILlq0wehoZcJYfBvOyhPTQ6w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.1.tgz",+ "integrity": "sha512-KVB2rqsxTHuBtfOeySEyzEOB7ltlB/ux38iu2rBQzkjbwRVlkhAGIEDiiYnO2kFOkJp+Z7pUXKyrRRFuFUKt+g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.1.tgz",+ "integrity": "sha512-L+34Qqil+v5uC0zEubW7uByo78WOCIrBvci69E7sFASRl0X7b/MB6Cqd1lky/CtcSVTydWa2WZwFuWexjS5o6g==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.1.tgz",+ "integrity": "sha512-n83O8rt4v34hgFzlkb1ycniJh7IR5RCIqt6mz1VRJD6pmhRi0CXdmfnLu9dIUS6buzh60IvACM842Ffb3xd6Gg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.1.tgz",+ "integrity": "sha512-Nql7sTeAzhTAja3QXeAI48+/+GjBJ+QmAH13snn0AJSNL50JsDqotyudHyMbO2RbJkskbMbFJfIJKWA6R1LCJQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.1.tgz",+ "integrity": "sha512-+pUymDhd0ys9GcKZPPWlFiZ67sTWV5UU6zOJat02M1+PiuSGDziyRuI/pPue3hoUwm2uGfxdL+trT6Z9rxnlMA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.1.tgz",+ "integrity": "sha512-VSvgvQeIcsEvY4bKDHEDWcpW4Yw7BtlKG1GUT4FzBUlEKQK0rWHYBqQt6Fm2taXS+1bXvJT6kICu5ZwqKCnvlQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.1.tgz",+ "integrity": "sha512-4LqhUomJqwe641gsPp6xLfhqWMbQV04KtPp7/dIp0nzPxAkNY1AbwL5W0MQpcalLYk07vaW9Kp1PBhdpZYYcEw==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.1.tgz",+ "integrity": "sha512-tLQQ9aPvkBxOc/EUT6j3pyeMD6Hb8QF2BTBnCQWP/uu1lhc9AIrIjKnLYMEroIz/JvtGYgI9dF3AxHZNaEH0rw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.1.tgz",+ "integrity": "sha512-RMxFhJwc9fSXP6PqmAz4cbv3kAyvD1etJFjTx4ONqFP9DkTkXsAMU4v3Vyc5BgzC+anz7nS/9tp4obsKfqkDHg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.1.tgz",+ "integrity": "sha512-QKgFl+Yc1eEk6MmOBfRHYF6lTxiiiV3/z/BRrbSiW2I7AFTXoBFvdMEyglohPj//2mZS4hDOqeB0H1ACh3sBbg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.1.tgz",+ "integrity": "sha512-RAjXjP/8c6ZtzatZcA1RaQr6O1TRhzC+adn8YZDnChliZHviqIjmvFwHcxi4JKPSDAt6Uhf/7vqcBzQJy0PDJg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.1.tgz",+ "integrity": "sha512-wcuocpaOlaL1COBYiA89O6yfjlp3RwKDeTIA0hM7OpmhR1Bjo9j31G1uQVpDlTvwxGn2nQs65fBFL5UFd76FcQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.1.tgz",+ "integrity": "sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.1.tgz",+ "integrity": "sha512-5cIATbk5vynAjqqmyBjlciMJl1+R/CwX9oLk/EyiFXDWd95KpHdrOJT//rnUl4cUcskrd0jCCw3wpZnhIHdD9w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.1.tgz",+ "integrity": "sha512-cl0w09WsCi17mcmWqqglez9Gk8isgeWvoUZ3WiJFYSR3zjBQc2J5/ihSjpl+VLjPqjQ/1hJRcqBfLjssREQILw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.1.tgz",+ "integrity": "sha512-4Cv23ZrONRbNtbZa37mLSueXUCtN7MXccChtKpUnQNgF010rjrjfHx3QxkS2PI7LqGT5xXyYs1a7LbzAwT0iCA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.1.tgz",+ "integrity": "sha512-i1okWYkA4FJICtr7KpYzFpRTHgy5jdDbZiWfvny21iIKky5YExiDXP+zbXzm3dUcFpkEeYNHgQ5fuG236JPq0g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.1.tgz",+ "integrity": "sha512-u09m3CuwLzShA0EYKMNiFgcjjzwqtUMLmuCJLeZWjjOYA3IT2Di09KaxGBTP9xVztWyIWjVdsB2E9goMjZvTQg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.1.tgz",+ "integrity": "sha512-k+600V9Zl1CM7eZxJgMyTUzmrmhB/0XZnF4pRypKAlAgxmedUA+1v9R+XOFv56W4SlHEzfeMtzujLJD22Uz5zg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.1.tgz",+ "integrity": "sha512-lWMnixq/QzxyhTV6NjQJ4SFo1J6PvOX8vUx5Wb4bBPsEb+8xZ89Bz6kOXpfXj9ak9AHTQVQzlgzBEc1SyM27xQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@smithy/chunked-blob-reader": {+ "version": "5.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-5.2.2.tgz",+ "integrity": "sha512-St+kVicSyayWQca+I1rGitaOEH6uKgE8IUWoYnnEX26SWdWQcL6LvMSD19Lg+vYHKdT9B2Zuu7rd3i6Wnyb/iw==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/chunked-blob-reader-native": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-4.2.3.tgz",+ "integrity": "sha512-jA5k5Udn7Y5717L86h4EIv06wIr3xn8GM1qHRi/Nf31annXcXHJjBKvgztnbn2TxH3xWrPBfgwHsOwZf0UmQWw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-base64": "^4.3.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/config-resolver": {+ "version": "4.4.13",+ "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.13.tgz",+ "integrity": "sha512-iIzMC5NmOUP6WL6o8iPBjFhUhBZ9pPjpUpQYWMUFQqKyXXzOftbfK8zcQCz/jFV1Psmf05BK5ypx4K2r4Tnwdg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/types": "^4.13.1",+ "@smithy/util-config-provider": "^4.2.2",+ "@smithy/util-endpoints": "^3.3.3",+ "@smithy/util-middleware": "^4.2.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/core": {+ "version": "3.23.13",+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.23.13.tgz",+ "integrity": "sha512-J+2TT9D6oGsUVXVEMvz8h2EmdVnkBiy2auCie4aSJMvKlzUtO5hqjEzXhoCUkIMo7gAYjbQcN0g/MMSXEhDs1Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "@smithy/url-parser": "^4.2.12",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-middleware": "^4.2.12",+ "@smithy/util-stream": "^4.5.21",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/uuid": "^1.1.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/credential-provider-imds": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.2.12.tgz",+ "integrity": "sha512-cr2lR792vNZcYMriSIj+Um3x9KWrjcu98kn234xA6reOAFMmbRpQMOv8KPgEmLLtx3eldU6c5wALKFqNOhugmg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/types": "^4.13.1",+ "@smithy/url-parser": "^4.2.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-codec": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.2.11.tgz",+ "integrity": "sha512-Sf39Ml0iVX+ba/bgMPxaXWAAFmHqYLTmbjAPfLPLY8CrYkRDEqZdUsKC1OwVMCdJXfAt0v4j49GIJ8DoSYAe6w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/crc32": "5.2.0",+ "@smithy/types": "^4.13.0",+ "@smithy/util-hex-encoding": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-browser": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.2.11.tgz",+ "integrity": "sha512-3rEpo3G6f/nRS7fQDsZmxw/ius6rnlIpz4UX6FlALEzz8JoSxFmdBt0SZnthis+km7sQo6q5/3e+UJcuQivoXA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/eventstream-serde-universal": "^4.2.11",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-config-resolver": {+ "version": "4.3.11",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.3.11.tgz",+ "integrity": "sha512-XeNIA8tcP/GDWnnKkO7qEm/bg0B/bP9lvIXZBXcGZwZ+VYM8h8k9wuDvUODtdQ2Wcp2RcBkPTCSMmaniVHrMlA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-node": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.2.11.tgz",+ "integrity": "sha512-fzbCh18rscBDTQSCrsp1fGcclLNF//nJyhjldsEl/5wCYmgpHblv5JSppQAyQI24lClsFT0wV06N1Porn0IsEw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/eventstream-serde-universal": "^4.2.11",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-universal": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.2.11.tgz",+ "integrity": "sha512-MJ7HcI+jEkqoWT5vp+uoVaAjBrmxBtKhZTeynDRG/seEjJfqyg3SiqMMqyPnAMzmIfLaeJ/uiuSDP/l9AnMy/Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/eventstream-codec": "^4.2.11",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/fetch-http-handler": {+ "version": "5.3.15",+ "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.3.15.tgz",+ "integrity": "sha512-T4jFU5N/yiIfrtrsb9uOQn7RdELdM/7HbyLNr6uO/mpkj1ctiVs7CihVr51w4LyQlXWDpXFn4BElf1WmQvZu/A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/querystring-builder": "^4.2.12",+ "@smithy/types": "^4.13.1",+ "@smithy/util-base64": "^4.3.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-blob-browser": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.2.12.tgz",+ "integrity": "sha512-1wQE33DsxkM/waftAhCH9VtJbUGyt1PJ9YRDpOu+q9FUi73LLFUZ2fD8A61g2mT1UY9k7b99+V1xZ41Rz4SHRQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/chunked-blob-reader": "^5.2.2",+ "@smithy/chunked-blob-reader-native": "^4.2.3",+ "@smithy/types": "^4.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-node": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.2.12.tgz",+ "integrity": "sha512-QhBYbGrbxTkZ43QoTPrK72DoYviDeg6YKDrHTMJbbC+A0sml3kSjzFtXP7BtbyJnXojLfTQldGdUR0RGD8dA3w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "@smithy/util-buffer-from": "^4.2.2",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-stream-node": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.2.11.tgz",+ "integrity": "sha512-hQsTjwPCRY8w9GK07w1RqJi3e+myh0UaOWBBhZ1UMSDgofH/Q1fEYzU1teaX6HkpX/eWDdm7tAGR0jBPlz9QEQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.0",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/invalid-dependency": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.2.12.tgz",+ "integrity": "sha512-/4F1zb7Z8LOu1PalTdESFHR0RbPwHd3FcaG1sI3UEIriQTWakysgJr65lc1jj6QY5ye7aFsisajotH6UhWfm/g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/is-array-buffer": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.2.2.tgz",+ "integrity": "sha512-n6rQ4N8Jj4YTQO3YFrlgZuwKodf4zUFs7EJIWH86pSCWBaAtAGBFfCM7Wx6D2bBJ2xqFNxGBSrUWswT3M0VJow==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/md5-js": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.2.11.tgz",+ "integrity": "sha512-350X4kGIrty0Snx2OWv7rPM6p6vM7RzryvFs6B/56Cux3w3sChOb3bymo5oidXJlPcP9fIRxGUCk7GqpiSOtng==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.0",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-compression": {+ "version": "4.3.38",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-compression/-/middleware-compression-4.3.38.tgz",+ "integrity": "sha512-+kddh/goadfns01MoiHtrs4Mzt4qJxRDOiODDJOAu1fKMtymiIe9EKlYj6+5D1yylmMe9YTgLauehoMTAnSJtg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.23.9",+ "@smithy/is-array-buffer": "^4.2.2",+ "@smithy/node-config-provider": "^4.3.11",+ "@smithy/protocol-http": "^5.3.11",+ "@smithy/types": "^4.13.0",+ "@smithy/util-config-provider": "^4.2.2",+ "@smithy/util-middleware": "^4.2.11",+ "@smithy/util-utf8": "^4.2.2",+ "fflate": "0.8.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-content-length": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.2.12.tgz",+ "integrity": "sha512-YE58Yz+cvFInWI/wOTrB+DbvUVz/pLn5mC5MvOV4fdRUc6qGwygyngcucRQjAhiCEbmfLOXX0gntSIcgMvAjmA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-endpoint": {+ "version": "4.4.28",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.4.28.tgz",+ "integrity": "sha512-p1gfYpi91CHcs5cBq982UlGlDrxoYUX6XdHSo91cQ2KFuz6QloHosO7Jc60pJiVmkWrKOV8kFYlGFFbQ2WUKKQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.23.13",+ "@smithy/middleware-serde": "^4.2.16",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "@smithy/url-parser": "^4.2.12",+ "@smithy/util-middleware": "^4.2.12",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-retry": {+ "version": "4.4.46",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.4.46.tgz",+ "integrity": "sha512-SpvWNNOPOrKQGUqZbEPO+es+FRXMWvIyzUKUOYdDgdlA6BdZj/R58p4umoQ76c2oJC44PiM7mKizyyex1IJzow==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/service-error-classification": "^4.2.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "@smithy/util-middleware": "^4.2.12",+ "@smithy/util-retry": "^4.2.13",+ "@smithy/uuid": "^1.1.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-serde": {+ "version": "4.2.16",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.16.tgz",+ "integrity": "sha512-beqfV+RZ9RSv+sQqor3xroUUYgRFCGRw6niGstPG8zO9LgTl0B0MCucxjmrH/2WwksQN7UUgI7KNANoZv+KALA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.23.13",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-stack": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.2.12.tgz",+ "integrity": "sha512-kruC5gRHwsCOuyCd4ouQxYjgRAym2uDlCvQ5acuMtRrcdfg7mFBg6blaxcJ09STpt3ziEkis6bhg1uwrWU7txw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/node-config-provider": {+ "version": "4.3.12",+ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.3.12.tgz",+ "integrity": "sha512-tr2oKX2xMcO+rBOjobSwVAkV05SIfUKz8iI53rzxEmgW3GOOPOv0UioSDk+J8OpRQnpnhsO3Af6IEBabQBVmiw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/property-provider": "^4.2.12",+ "@smithy/shared-ini-file-loader": "^4.4.7",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/node-http-handler": {+ "version": "4.5.1",+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.5.1.tgz",+ "integrity": "sha512-ejjxdAXjkPIs9lyYyVutOGNOraqUE9v/NjGMKwwFrfOM354wfSD8lmlj8hVwUzQmlLLF4+udhfCX9Exnbmvfzw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/querystring-builder": "^4.2.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/property-provider": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.2.12.tgz",+ "integrity": "sha512-jqve46eYU1v7pZ5BM+fmkbq3DerkSluPr5EhvOcHxygxzD05ByDRppRwRPPpFrsFo5yDtCYLKu+kreHKVrvc7A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/protocol-http": {+ "version": "5.3.12",+ "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.3.12.tgz",+ "integrity": "sha512-fit0GZK9I1xoRlR4jXmbLhoN0OdEpa96ul8M65XdmXnxXkuMxM0Y8HDT0Fh0Xb4I85MBvBClOzgSrV1X2s1Hxw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/querystring-builder": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.2.12.tgz",+ "integrity": "sha512-6wTZjGABQufekycfDGMEB84BgtdOE/rCVTov+EDXQ8NHKTUNIp/j27IliwP7tjIU9LR+sSzyGBOXjeEtVgzCHg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "@smithy/util-uri-escape": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/querystring-parser": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.2.12.tgz",+ "integrity": "sha512-P2OdvrgiAKpkPNKlKUtWbNZKB1XjPxM086NeVhK+W+wI46pIKdWBe5QyXvhUm3MEcyS/rkLvY8rZzyUdmyDZBw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/service-error-classification": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.2.12.tgz",+ "integrity": "sha512-LlP29oSQN0Tw0b6D0Xo6BIikBswuIiGYbRACy5ujw/JgWSzTdYj46U83ssf6Ux0GyNJVivs2uReU8pt7Eu9okQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/shared-ini-file-loader": {+ "version": "4.4.7",+ "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.4.7.tgz",+ "integrity": "sha512-HrOKWsUb+otTeo1HxVWeEb99t5ER1XrBi/xka2Wv6NVmTbuCUC1dvlrksdvxFtODLBjsC+PHK+fuy2x/7Ynyiw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/signature-v4": {+ "version": "5.3.12",+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.3.12.tgz",+ "integrity": "sha512-B/FBwO3MVOL00DaRSXfXfa/TRXRheagt/q5A2NM13u7q+sHS59EOVGQNfG7DkmVtdQm5m3vOosoKAXSqn/OEgw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^4.2.2",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "@smithy/util-hex-encoding": "^4.2.2",+ "@smithy/util-middleware": "^4.2.12",+ "@smithy/util-uri-escape": "^4.2.2",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/smithy-client": {+ "version": "4.12.8",+ "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.12.8.tgz",+ "integrity": "sha512-aJaAX7vHe5i66smoSSID7t4rKY08PbD8EBU7DOloixvhOozfYWdcSYE4l6/tjkZ0vBZhGjheWzB2mh31sLgCMA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.23.13",+ "@smithy/middleware-endpoint": "^4.4.28",+ "@smithy/middleware-stack": "^4.2.12",+ "@smithy/protocol-http": "^5.3.12",+ "@smithy/types": "^4.13.1",+ "@smithy/util-stream": "^4.5.21",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/types": {+ "version": "4.13.1",+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.13.1.tgz",+ "integrity": "sha512-787F3yzE2UiJIQ+wYW1CVg2odHjmaWLGksnKQHUrK/lYZSEcy1msuLVvxaR/sI2/aDe9U+TBuLsXnr3vod1g0g==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/url-parser": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.2.12.tgz",+ "integrity": "sha512-wOPKPEpso+doCZGIlr+e1lVI6+9VAKfL4kZWFgzVgGWY2hZxshNKod4l2LXS3PRC9otH/JRSjtEHqQ/7eLciRA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/querystring-parser": "^4.2.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-base64": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.3.2.tgz",+ "integrity": "sha512-XRH6b0H/5A3SgblmMa5ErXQ2XKhfbQB+Fm/oyLZ2O2kCUrwgg55bU0RekmzAhuwOjA9qdN5VU2BprOvGGUkOOQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^4.2.2",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-body-length-browser": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.2.2.tgz",+ "integrity": "sha512-JKCrLNOup3OOgmzeaKQwi4ZCTWlYR5H4Gm1r2uTMVBXoemo1UEghk5vtMi1xSu2ymgKVGW631e2fp9/R610ZjQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-body-length-node": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.2.3.tgz",+ "integrity": "sha512-ZkJGvqBzMHVHE7r/hcuCxlTY8pQr1kMtdsVPs7ex4mMU+EAbcXppfo5NmyxMYi2XU49eqaz56j2gsk4dHHPG/g==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-buffer-from": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.2.2.tgz",+ "integrity": "sha512-FDXD7cvUoFWwN6vtQfEta540Y/YBe5JneK3SoZg9bThSoOAC/eGeYEua6RkBgKjGa/sz6Y+DuBZj3+YEY21y4Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-config-provider": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.2.2.tgz",+ "integrity": "sha512-dWU03V3XUprJwaUIFVv4iOnS1FC9HnMHDfUrlNDSh4315v0cWyaIErP8KiqGVbf5z+JupoVpNM7ZB3jFiTejvQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-defaults-mode-browser": {+ "version": "4.3.44",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.44.tgz",+ "integrity": "sha512-eZg6XzaCbVr2S5cAErU5eGBDaOVTuTo1I65i4tQcHENRcZ8rMWhQy1DaIYUSLyZjsfXvmCqZrstSMYyGFocvHA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/property-provider": "^4.2.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-defaults-mode-node": {+ "version": "4.2.48",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.48.tgz",+ "integrity": "sha512-FqOKTlqSaoV3nzO55pMs5NBnZX8EhoI0DGmn9kbYeXWppgHD6dchyuj2HLqp4INJDJbSrj6OFYJkAh/WhSzZPg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/config-resolver": "^4.4.13",+ "@smithy/credential-provider-imds": "^4.2.12",+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/property-provider": "^4.2.12",+ "@smithy/smithy-client": "^4.12.8",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-endpoints": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.3.3.tgz",+ "integrity": "sha512-VACQVe50j0HZPjpwWcjyT51KUQ4AnsvEaQ2lKHOSL4mNLD0G9BjEniQ+yCt1qqfKfiAHRAts26ud7hBjamrwig==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-hex-encoding": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.2.2.tgz",+ "integrity": "sha512-Qcz3W5vuHK4sLQdyT93k/rfrUwdJ8/HZ+nMUOyGdpeGA1Wxt65zYwi3oEl9kOM+RswvYq90fzkNDahPS8K0OIg==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-middleware": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.2.12.tgz",+ "integrity": "sha512-Er805uFUOvgc0l8nv0e0su0VFISoxhJ/AwOn3gL2NWNY2LUEldP5WtVcRYSQBcjg0y9NfG8JYrCJaYDpupBHJQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-retry": {+ "version": "4.2.13",+ "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.2.13.tgz",+ "integrity": "sha512-qQQsIvL0MGIbUjeSrg0/VlQ3jGNKyM3/2iU3FPNgy01z+Sp4OvcaxbgIoFOTvB61ZoohtutuOvOcgmhbD0katQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/service-error-classification": "^4.2.12",+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-stream": {+ "version": "4.5.21",+ "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.21.tgz",+ "integrity": "sha512-KzSg+7KKywLnkoKejRtIBXDmwBfjGvg1U1i/etkC7XSWUyFCoLno1IohV2c74IzQqdhX5y3uE44r/8/wuK+A7Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/fetch-http-handler": "^5.3.15",+ "@smithy/node-http-handler": "^4.5.1",+ "@smithy/types": "^4.13.1",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-buffer-from": "^4.2.2",+ "@smithy/util-hex-encoding": "^4.2.2",+ "@smithy/util-utf8": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-uri-escape": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.2.2.tgz",+ "integrity": "sha512-2kAStBlvq+lTXHyAZYfJRb/DfS3rsinLiwb+69SstC9Vb0s9vNWkRwpnj918Pfi85mzi42sOqdV72OLxWAISnw==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-utf8": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.2.2.tgz",+ "integrity": "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^4.2.2",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-waiter": {+ "version": "4.2.14",+ "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.2.14.tgz",+ "integrity": "sha512-2zqq5o/oizvMaFUlNiTyZ7dbgYv1a893aGut2uaxtbzTx/VYYnRxWzDHuD/ftgcw94ffenua+ZNLrbqwUYE+Bg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.13.1",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/uuid": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@smithy/uuid/-/uuid-1.1.2.tgz",+ "integrity": "sha512-O/IEdcCUKkubz60tFbGA7ceITTAJsty+lBjNoorP4Z6XRqaFb/OjQjZODophEcuq68nKm6/0r+6/lLQ+XVpk8g==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "20.19.39",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.39.tgz",+ "integrity": "sha512-orrrD74MBUyK8jOAD/r0+lfa1I2MO6I+vAkmAWzMYbCcgrN4lCrmK52gRFQq/JRxfYPfonkr4b0jcY7Olqdqbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@vitest/expect": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",+ "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "2.1.9",+ "@vitest/utils": "2.1.9",+ "chai": "^5.1.2",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",+ "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "2.1.9",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.12"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",+ "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",+ "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "2.1.9",+ "pathe": "^1.1.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",+ "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "2.1.9",+ "magic-string": "^0.30.12",+ "pathe": "^1.1.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",+ "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^3.0.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",+ "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "2.1.9",+ "loupe": "^3.1.2",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/bowser": {+ "version": "2.14.1",+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.14.1.tgz",+ "integrity": "sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==",+ "license": "MIT"+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/chai": {+ "version": "5.3.3",+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^2.0.1",+ "check-error": "^2.1.1",+ "deep-eql": "^5.0.1",+ "loupe": "^3.1.0",+ "pathval": "^2.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/check-error": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/deep-eql": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/expect-type": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/fast-xml-builder": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.1.4.tgz",+ "integrity": "sha512-f2jhpN4Eccy0/Uz9csxh3Nu6q4ErKxf0XIsasomfOihuSUa3/xw6w8dnOtCDgEItQFJG8KyXPzQXzcODDrrbOg==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "path-expression-matcher": "^1.1.3"+ }+ },+ "node_modules/fast-xml-parser": {+ "version": "5.5.8",+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.5.8.tgz",+ "integrity": "sha512-Z7Fh2nVQSb2d+poDViM063ix2ZGt9jmY1nWhPfHBOK2Hgnb/OW3P4Et3P/81SEej0J7QbWtJqxO05h8QYfK7LQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "fast-xml-builder": "^1.1.4",+ "path-expression-matcher": "^1.2.0",+ "strnum": "^2.2.0"+ },+ "bin": {+ "fxparser": "src/cli/cli.js"+ }+ },+ "node_modules/fflate": {+ "version": "0.8.1",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.1.tgz",+ "integrity": "sha512-/exOvEuc+/iaUm105QIiOt4LpBdMTWsXxqR0HDF35vx3fmaKzw7354gTilCh5rkzEt8WYyG//ku3h3nRmd7CHQ==",+ "license": "MIT"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/loupe": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/mnemonist": {+ "version": "0.38.3",+ "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.3.tgz",+ "integrity": "sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==",+ "license": "MIT",+ "dependencies": {+ "obliterator": "^1.6.1"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/obliterator": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-1.6.1.tgz",+ "integrity": "sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==",+ "license": "MIT"+ },+ "node_modules/path-expression-matcher": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.2.0.tgz",+ "integrity": "sha512-DwmPWeFn+tq7TiyJ2CxezCAirXjFxvaiD03npak3cRjlP9+OjTmSy1EpIrEbh+l6JgUundniloMLDQ/6VTdhLQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathval": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.16"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/postcss": {+ "version": "8.5.8",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/rollup": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.1.tgz",+ "integrity": "sha512-VmtB2rFU/GroZ4oL8+ZqXgSA38O6GR8KSIvWmEFv63pQ0G6KaBH9s07PO8XTXP4vI+3UJUEypOfjkGfmSBBR0w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.8"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.60.1",+ "@rollup/rollup-android-arm64": "4.60.1",+ "@rollup/rollup-darwin-arm64": "4.60.1",+ "@rollup/rollup-darwin-x64": "4.60.1",+ "@rollup/rollup-freebsd-arm64": "4.60.1",+ "@rollup/rollup-freebsd-x64": "4.60.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.60.1",+ "@rollup/rollup-linux-arm64-gnu": "4.60.1",+ "@rollup/rollup-linux-arm64-musl": "4.60.1",+ "@rollup/rollup-linux-loong64-gnu": "4.60.1",+ "@rollup/rollup-linux-loong64-musl": "4.60.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.60.1",+ "@rollup/rollup-linux-ppc64-musl": "4.60.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.60.1",+ "@rollup/rollup-linux-riscv64-musl": "4.60.1",+ "@rollup/rollup-linux-s390x-gnu": "4.60.1",+ "@rollup/rollup-linux-x64-gnu": "4.60.1",+ "@rollup/rollup-linux-x64-musl": "4.60.1",+ "@rollup/rollup-openbsd-x64": "4.60.1",+ "@rollup/rollup-openharmony-arm64": "4.60.1",+ "@rollup/rollup-win32-arm64-msvc": "4.60.1",+ "@rollup/rollup-win32-ia32-msvc": "4.60.1",+ "@rollup/rollup-win32-x64-gnu": "4.60.1",+ "@rollup/rollup-win32-x64-msvc": "4.60.1",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "3.10.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/strnum": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.2.2.tgz",+ "integrity": "sha512-DnR90I+jtXNSTXWdwrEy9FakW7UX+qUZg28gj5fk2vxxl7uS/3bpI4fjFYVmdK9etptYBPNkpahuQnEwhwECqA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT"+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinypool": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",+ "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz",+ "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "license": "0BSD"+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",+ "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.3.7",+ "es-module-lexer": "^1.5.4",+ "pathe": "^1.1.2",+ "vite": "^5.0.0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vitest": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",+ "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/expect": "2.1.9",+ "@vitest/mocker": "2.1.9",+ "@vitest/pretty-format": "^2.1.9",+ "@vitest/runner": "2.1.9",+ "@vitest/snapshot": "2.1.9",+ "@vitest/spy": "2.1.9",+ "@vitest/utils": "2.1.9",+ "chai": "^5.1.2",+ "debug": "^4.3.7",+ "expect-type": "^1.1.0",+ "magic-string": "^0.30.12",+ "pathe": "^1.1.2",+ "std-env": "^3.8.0",+ "tinybench": "^2.9.0",+ "tinyexec": "^0.3.1",+ "tinypool": "^1.0.1",+ "tinyrainbow": "^1.2.0",+ "vite": "^5.0.0",+ "vite-node": "2.1.9",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/node": "^18.0.0 || >=20.0.0",+ "@vitest/browser": "2.1.9",+ "@vitest/ui": "2.1.9",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ }+ }+}diff --git a/compatibility-tests/sdk-test-node/package.json b/compatibility-tests/sdk-test-node/package.jsonnew file mode 100644index 0000000000..e9f5e79736--- /dev/null+++ b/compatibility-tests/sdk-test-node/package.json@@ -0,0 +1,30 @@+{+ "name": "floci-compatibility-tests-typescript",+ "version": "1.0.0",+ "type": "module",+ "scripts": {+ "test": "vitest run",+ "test:watch": "vitest"+ },+ "dependencies": {+ "@aws-sdk/client-cloudformation": "^3.500.0",+ "@aws-sdk/client-cloudwatch": "^3.500.0",+ "@aws-sdk/client-cognito-identity-provider": "^3.500.0",+ "@aws-sdk/client-dynamodb": "^3.500.0",+ "@aws-sdk/client-iam": "^3.500.0",+ "@aws-sdk/client-kinesis": "^3.500.0",+ "@aws-sdk/client-kms": "^3.500.0",+ "@aws-sdk/client-lambda": "^3.500.0",+ "@aws-sdk/client-s3": "^3.500.0",+ "@aws-sdk/client-secrets-manager": "^3.500.0",+ "@aws-sdk/client-sns": "^3.500.0",+ "@aws-sdk/client-sqs": "^3.500.0",+ "@aws-sdk/client-ssm": "^3.500.0",+ "@aws-sdk/client-sts": "^3.500.0"+ },+ "devDependencies": {+ "@types/node": "^20.0.0",+ "typescript": "^5.4.0",+ "vitest": "^2.0.0"+ }+}diff --git a/compatibility-tests/sdk-test-node/tests/cloudformation.test.ts b/compatibility-tests/sdk-test-node/tests/cloudformation.test.tsnew file mode 100644index 0000000000..5cff2448c8--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/cloudformation.test.ts@@ -0,0 +1,205 @@+/**+ * CloudFormation naming integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ CloudFormationClient,+ CreateStackCommand,+ DescribeStacksCommand,+ DescribeStackResourcesCommand,+ DeleteStackCommand,+} from '@aws-sdk/client-cloudformation';+import { makeClient, uniqueName, sleep } from './setup';++describe('CloudFormation Naming', () => {+ let cfn: CloudFormationClient;+ let autoStackName: string;+ let explicitStackName: string;+ const token = Date.now().toString(36);++ beforeAll(() => {+ cfn = makeClient(CloudFormationClient);+ autoStackName = `cfn-auto-naming-${token}`;+ explicitStackName = `cfn-explicit-naming-${token}`;+ });++ afterAll(async () => {+ for (const stackName of [autoStackName, explicitStackName]) {+ try {+ await cfn.send(new DeleteStackCommand({ StackName: stackName }));+ } catch {+ // ignore+ }+ }+ });++ async function waitForStackTerminalState(stackName: string, expectedSuccess = true) {+ const successStates = new Set(['CREATE_COMPLETE', 'UPDATE_COMPLETE']);+ const failureStates = new Set([+ 'CREATE_FAILED',+ 'ROLLBACK_IN_PROGRESS',+ 'ROLLBACK_FAILED',+ 'ROLLBACK_COMPLETE',+ 'DELETE_FAILED',+ 'DELETE_COMPLETE',+ ]);++ for (let i = 0; i < 40; i++) {+ const resp = await cfn.send(new DescribeStacksCommand({ StackName: stackName }));+ const status = resp.Stacks?.[0]?.StackStatus;+ if (successStates.has(status!)) {+ return { ok: expectedSuccess, status };+ }+ if (failureStates.has(status!)) {+ return { ok: !expectedSuccess, status };+ }+ await sleep(1000);+ }+ return { ok: false, status: 'TIMEOUT' };+ }++ async function getResources(stackName: string) {+ const resp = await cfn.send(new DescribeStackResourcesCommand({ StackName: stackName }));+ return resp.StackResources || [];+ }++ function physicalId(resources: { LogicalResourceId?: string; PhysicalResourceId?: string }[], logicalId: string) {+ return resources.find((r) => r.LogicalResourceId === logicalId)?.PhysicalResourceId;+ }++ describe('Auto-generated names', () => {+ it('should create stack with auto-generated names', async () => {+ const template = {+ Resources: {+ AutoBucket: { Type: 'AWS::S3::Bucket' },+ AutoQueue: { Type: 'AWS::SQS::Queue' },+ AutoTopic: { Type: 'AWS::SNS::Topic' },+ AutoParameter: {+ Type: 'AWS::SSM::Parameter',+ Properties: { Type: 'String', Value: 'v1' },+ },+ CrossRefQueue: {+ Type: 'AWS::SQS::Queue',+ Properties: { QueueName: { 'Fn::Sub': '${AutoBucket}-cross' } },+ },+ },+ };++ await cfn.send(+ new CreateStackCommand({+ StackName: autoStackName,+ TemplateBody: JSON.stringify(template),+ })+ );+ });++ it('should reach CREATE_COMPLETE', async () => {+ const result = await waitForStackTerminalState(autoStackName, true);+ expect(result.ok).toBe(true);+ });++ it('should have valid auto-generated resource names', async () => {+ const resources = await getResources(autoStackName);+ expect(resources.length).toBeGreaterThan(0);++ const autoBucket = physicalId(resources, 'AutoBucket');+ const autoQueue = physicalId(resources, 'AutoQueue');+ const autoTopic = physicalId(resources, 'AutoTopic');+ const autoParam = physicalId(resources, 'AutoParameter');+ const crossQueue = physicalId(resources, 'CrossRefQueue');++ // S3 bucket constraints+ expect(autoBucket).toBeTruthy();+ expect(autoBucket!.length).toBeGreaterThanOrEqual(3);+ expect(autoBucket!.length).toBeLessThanOrEqual(63);+ expect(/^[a-z0-9.-]+$/.test(autoBucket!)).toBe(true);+ expect(autoBucket).toBe(autoBucket!.toLowerCase());++ // SQS queue constraints+ expect(autoQueue).toBeTruthy();+ const queueName = autoQueue!.includes('/') ? autoQueue!.slice(autoQueue!.lastIndexOf('/') + 1) : autoQueue!;+ expect(queueName.length).toBeGreaterThan(0);+ expect(queueName.length).toBeLessThanOrEqual(80);++ // SNS topic constraints+ expect(autoTopic).toBeTruthy();+ const topicName = autoTopic!.includes(':') ? autoTopic!.slice(autoTopic!.lastIndexOf(':') + 1) : autoTopic!;+ expect(topicName.length).toBeGreaterThan(0);+ expect(topicName.length).toBeLessThanOrEqual(256);++ // SSM parameter constraints+ expect(autoParam).toBeTruthy();+ expect(autoParam!.length).toBeLessThanOrEqual(2048);++ // Cross-reference queue uses bucket name+ expect(crossQueue).toBeTruthy();+ const crossQueueName = crossQueue!.includes('/') ? crossQueue!.slice(crossQueue!.lastIndexOf('/') + 1) : crossQueue!;+ expect(crossQueueName.startsWith(`${autoBucket}-cross`)).toBe(true);+ });++ it('should delete auto stack', async () => {+ await cfn.send(new DeleteStackCommand({ StackName: autoStackName }));+ });+ });++ describe('Explicit names', () => {+ const explicitBucket = `cfn-explicit-${token}`;+ const explicitQueue = `cfn-explicit-${token}`;+ const explicitTopic = `cfn-explicit-${token}`;+ const explicitParam = `/cfn-explicit/${token}`;++ it('should create stack with explicit names', async () => {+ const template = {+ Resources: {+ NamedBucket: {+ Type: 'AWS::S3::Bucket',+ Properties: { BucketName: explicitBucket },+ },+ NamedQueue: {+ Type: 'AWS::SQS::Queue',+ Properties: { QueueName: explicitQueue },+ },+ NamedTopic: {+ Type: 'AWS::SNS::Topic',+ Properties: { TopicName: explicitTopic },+ },+ NamedParameter: {+ Type: 'AWS::SSM::Parameter',+ Properties: { Name: explicitParam, Type: 'String', Value: 'explicit' },+ },+ },+ };++ await cfn.send(+ new CreateStackCommand({+ StackName: explicitStackName,+ TemplateBody: JSON.stringify(template),+ })+ );+ });++ it('should reach CREATE_COMPLETE', async () => {+ const result = await waitForStackTerminalState(explicitStackName, true);+ expect(result.ok).toBe(true);+ });++ it('should respect explicit names', async () => {+ const resources = await getResources(explicitStackName);++ const actualBucket = physicalId(resources, 'NamedBucket');+ const actualQueue = physicalId(resources, 'NamedQueue');+ const actualTopic = physicalId(resources, 'NamedTopic');+ const actualParam = physicalId(resources, 'NamedParameter');++ expect(actualBucket).toBe(explicitBucket);+ expect(actualQueue).toContain(explicitQueue);+ expect(actualTopic).toContain(explicitTopic);+ expect(actualParam).toBe(explicitParam);+ });++ it('should delete explicit stack', async () => {+ await cfn.send(new DeleteStackCommand({ StackName: explicitStackName }));+ });+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/cloudwatch.test.ts b/compatibility-tests/sdk-test-node/tests/cloudwatch.test.tsnew file mode 100644index 0000000000..f3820dd3f9--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/cloudwatch.test.ts@@ -0,0 +1,151 @@+/**+ * CloudWatch Metrics integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ CloudWatchClient,+ PutMetricDataCommand,+ GetMetricStatisticsCommand,+ ListMetricsCommand,+ PutMetricAlarmCommand,+ DescribeAlarmsCommand,+ DeleteAlarmsCommand,+} from '@aws-sdk/client-cloudwatch';+import { makeClient, uniqueName } from './setup';++describe('CloudWatch Metrics', () => {+ let cw: CloudWatchClient;+ let namespace: string;+ let alarmName: string;++ beforeAll(() => {+ cw = makeClient(CloudWatchClient);+ namespace = `Floci/Test/${uniqueName()}`;+ alarmName = `test-alarm-${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ await cw.send(new DeleteAlarmsCommand({ AlarmNames: [alarmName] }));+ } catch {+ // ignore+ }+ });++ it('should put metric data', async () => {+ await cw.send(+ new PutMetricDataCommand({+ Namespace: namespace,+ MetricData: [{ MetricName: 'TestMetric', Value: 42.0, Unit: 'Count' }],+ })+ );+ });++ it('should put metric data batch', async () => {+ await cw.send(+ new PutMetricDataCommand({+ Namespace: namespace,+ MetricData: [+ { MetricName: 'Latency', Value: 100, Unit: 'Milliseconds' },+ { MetricName: 'Errors', Value: 0, Unit: 'Count' },+ ],+ })+ );+ });++ it('should list metrics', async () => {+ const response = await cw.send(new ListMetricsCommand({ Namespace: namespace }));+ expect(response.Metrics?.length).toBeGreaterThan(0);+ });++ it('should get metric statistics', async () => {+ const now = new Date();+ const start = new Date(now.getTime() - 3600000);++ const response = await cw.send(+ new GetMetricStatisticsCommand({+ Namespace: namespace,+ MetricName: 'TestMetric',+ StartTime: start,+ EndTime: now,+ Period: 3600,+ Statistics: ['Sum', 'Average', 'Maximum'],+ })+ );+ expect(response.Datapoints).toBeDefined();+ });++ it('should put metric data with statistic values', async () => {+ const now = new Date();+ const start = new Date(now.getTime() - 3600000);++ // Put metric data with pre-calculated statistics+ await cw.send(+ new PutMetricDataCommand({+ Namespace: namespace,+ MetricData: [+ {+ MetricName: 'AggregatedMetric',+ StatisticValues: {+ SampleCount: 5,+ Sum: 150,+ Minimum: 20,+ Maximum: 40,+ },+ Unit: 'Count',+ },+ ],+ })+ );++ // Query back the statistics+ const response = await cw.send(+ new GetMetricStatisticsCommand({+ Namespace: namespace,+ MetricName: 'AggregatedMetric',+ StartTime: start,+ EndTime: now,+ Period: 3600,+ Statistics: ['Sum', 'Average', 'Minimum', 'Maximum', 'SampleCount'],+ })+ );++ expect(response.Datapoints).toBeDefined();+ expect(response.Datapoints?.length).toBeGreaterThan(0);++ const dp = response.Datapoints?.[0];+ expect(dp?.Sum).toBe(150);+ expect(dp?.SampleCount).toBe(5);+ expect(dp?.Minimum).toBe(20);+ expect(dp?.Maximum).toBe(40);+ expect(dp?.Average).toBe(30); // sum / sampleCount+ });++ it('should put metric alarm', async () => {+ await cw.send(+ new PutMetricAlarmCommand({+ AlarmName: alarmName,+ MetricName: 'TestMetric',+ Namespace: namespace,+ Statistic: 'Average',+ Period: 60,+ EvaluationPeriods: 1,+ Threshold: 100,+ ComparisonOperator: 'GreaterThanThreshold',+ })+ );+ });++ it('should describe alarms', async () => {+ const response = await cw.send(+ new DescribeAlarmsCommand({ AlarmNames: [alarmName] })+ );+ expect(response.MetricAlarms?.some((a) => a.AlarmName === alarmName)).toBe(true);+ });++ it('should delete alarms', async () => {+ await cw.send(new DeleteAlarmsCommand({ AlarmNames: [alarmName] }));+ alarmName = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/cognito-oauth.test.ts b/compatibility-tests/sdk-test-node/tests/cognito-oauth.test.tsnew file mode 100644index 0000000000..edfdb231bb--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/cognito-oauth.test.ts@@ -0,0 +1,367 @@+/**+ * Cognito OAuth/Resource Server integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import { createPublicKey, createVerify } from 'node:crypto';+import {+ CognitoIdentityProviderClient,+ CreateUserPoolCommand,+ CreateUserPoolClientCommand,+ CreateResourceServerCommand,+ DescribeResourceServerCommand,+ ListResourceServersCommand,+ UpdateResourceServerCommand,+ DeleteResourceServerCommand,+ DeleteUserPoolClientCommand,+ DeleteUserPoolCommand,+} from '@aws-sdk/client-cognito-identity-provider';+import { makeClient, uniqueName, ENDPOINT } from './setup';++// Helper functions+function decodeJwtPart(token: string, index: number): any {+ const parts = token.split('.');+ const part = parts[index];+ return JSON.parse(Buffer.from(part, 'base64url').toString('utf8'));+}++function scopeContains(actual: string | undefined, expected: string): boolean {+ if (!actual) return false;+ return actual.split(/\s+/).includes(expected);+}++async function fetchJwk(jwksUri: string, kid: string): Promise<any> {+ const resp = await fetch(jwksUri);+ const json = await resp.json();+ return json.keys?.find((k: any) => k.kid === kid);+}++function verifyRs256(token: string, jwk: any): boolean {+ const [headerB64, payloadB64, signatureB64] = token.split('.');+ const signature = Buffer.from(signatureB64, 'base64url');+ const data = `${headerB64}.${payloadB64}`;++ const key = createPublicKey({ key: jwk, format: 'jwk' });+ const verifier = createVerify('RSA-SHA256');+ verifier.update(data);+ return verifier.verify(key, signature);+}++async function discoverOpenIdConfiguration(poolId: string) {+ const resp = await fetch(`${ENDPOINT}/${poolId}/.well-known/openid-configuration`);+ const json = await resp.json();+ return {+ tokenEndpoint: json.token_endpoint as string,+ jwksUri: json.jwks_uri as string,+ issuer: json.issuer as string,+ };+}++async function requestConfidentialClientToken(+ tokenEndpoint: string,+ clientId: string,+ clientSecret: string,+ scope: string+): Promise<{ status: number; json: any; body: string }> {+ const basicAuth = Buffer.from(`${clientId}:${clientSecret}`).toString('base64');+ const resp = await fetch(tokenEndpoint, {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/x-www-form-urlencoded',+ Authorization: `Basic ${basicAuth}`,+ },+ body: `grant_type=client_credentials&scope=${encodeURIComponent(scope)}`,+ });+ const body = await resp.text();+ let json = {};+ try {+ json = JSON.parse(body);+ } catch {+ // ignore+ }+ return { status: resp.status, json, body };+}++async function requestPublicClientToken(+ tokenEndpoint: string,+ clientId: string,+ scope: string+): Promise<{ status: number; json: any; body: string }> {+ const resp = await fetch(tokenEndpoint, {+ method: 'POST',+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },+ body: `grant_type=client_credentials&client_id=${clientId}&scope=${encodeURIComponent(scope)}`,+ });+ const body = await resp.text();+ let json = {};+ try {+ json = JSON.parse(body);+ } catch {+ // ignore+ }+ return { status: resp.status, json, body };+}++function isPublicClientRejectionError(e: any): boolean {+ const msg = e.message || '';+ return (+ msg.includes('public client') ||+ msg.includes('GenerateSecret') ||+ msg.includes('client_credentials')+ );+}++describe('Cognito OAuth', () => {+ let cognito: CognitoIdentityProviderClient;+ let poolId: string;+ let resourceServerId: string;+ let readScope: string;+ let adminScope: string;+ let confidentialClientId: string;+ let confidentialClientSecret: string;+ let publicClientId: string;+ let publicClientRejectedAtCreate = false;+ let discovery: { tokenEndpoint: string; jwksUri: string; issuer: string } | null = null;+ let accessToken: string | null = null;++ beforeAll(async () => {+ cognito = makeClient(CognitoIdentityProviderClient);+ const suffix = uniqueName();+ resourceServerId = `https://compat.floci.test/resource/${suffix}`;+ readScope = `${resourceServerId}/read`;+ adminScope = `${resourceServerId}/admin`;+ });++ afterAll(async () => {+ try {+ if (confidentialClientId) {+ await cognito.send(+ new DeleteUserPoolClientCommand({ UserPoolId: poolId, ClientId: confidentialClientId })+ );+ }+ } catch {+ // ignore+ }+ try {+ if (publicClientId) {+ await cognito.send(+ new DeleteUserPoolClientCommand({ UserPoolId: poolId, ClientId: publicClientId })+ );+ }+ } catch {+ // ignore+ }+ try {+ if (resourceServerId && poolId) {+ await cognito.send(+ new DeleteResourceServerCommand({ UserPoolId: poolId, Identifier: resourceServerId })+ );+ }+ } catch {+ // ignore+ }+ try {+ if (poolId) {+ await cognito.send(new DeleteUserPoolCommand({ UserPoolId: poolId }));+ }+ } catch {+ // ignore+ }+ });++ it('should create user pool for OAuth', async () => {+ const response = await cognito.send(+ new CreateUserPoolCommand({ PoolName: `floci-oauth-pool-${uniqueName()}` })+ );+ poolId = response.UserPool!.Id!;+ expect(poolId).toBeTruthy();+ });++ it('should create resource server', async () => {+ const response = await cognito.send(+ new CreateResourceServerCommand({+ UserPoolId: poolId,+ Identifier: resourceServerId,+ Name: 'compat-resource-server',+ Scopes: [+ { ScopeName: 'read', ScopeDescription: 'Read access' },+ { ScopeName: 'write', ScopeDescription: 'Write access' },+ ],+ })+ );+ expect(response.ResourceServer?.Identifier).toBe(resourceServerId);+ expect(response.ResourceServer?.Scopes).toHaveLength(2);+ });++ it('should describe resource server', async () => {+ const response = await cognito.send(+ new DescribeResourceServerCommand({+ UserPoolId: poolId,+ Identifier: resourceServerId,+ })+ );+ expect(response.ResourceServer?.Name).toBe('compat-resource-server');+ const scopes = response.ResourceServer?.Scopes?.map((s) => s.ScopeName) || [];+ expect(scopes).toContain('read');+ expect(scopes).toContain('write');+ });++ it('should list resource servers', async () => {+ const response = await cognito.send(+ new ListResourceServersCommand({ UserPoolId: poolId, MaxResults: 60 })+ );+ expect(+ response.ResourceServers?.some((s) => s.Identifier === resourceServerId)+ ).toBe(true);+ });++ it('should update resource server', async () => {+ await cognito.send(+ new UpdateResourceServerCommand({+ UserPoolId: poolId,+ Identifier: resourceServerId,+ Name: 'compat-resource-server-updated',+ Scopes: [+ { ScopeName: 'read', ScopeDescription: 'Read access updated' },+ { ScopeName: 'admin', ScopeDescription: 'Admin access' },+ ],+ })+ );++ const response = await cognito.send(+ new DescribeResourceServerCommand({+ UserPoolId: poolId,+ Identifier: resourceServerId,+ })+ );+ expect(response.ResourceServer?.Name).toBe('compat-resource-server-updated');+ const scopes = response.ResourceServer?.Scopes?.map((s) => s.ScopeName) || [];+ expect(scopes).toContain('read');+ expect(scopes).toContain('admin');+ expect(scopes).not.toContain('write');+ });++ it('should create confidential client', async () => {+ const response = await cognito.send(+ new CreateUserPoolClientCommand({+ UserPoolId: poolId,+ ClientName: `compat-confidential-client-${uniqueName()}`,+ GenerateSecret: true,+ AllowedOAuthFlowsUserPoolClient: true,+ AllowedOAuthFlows: ['client_credentials'],+ AllowedOAuthScopes: [readScope, adminScope],+ })+ );+ confidentialClientId = response.UserPoolClient?.ClientId!;+ confidentialClientSecret = response.UserPoolClient?.ClientSecret!;+ expect(confidentialClientId).toBeTruthy();+ expect(confidentialClientSecret).toBeTruthy();+ });++ it('should handle public client creation (rejected or accepted)', async () => {+ try {+ const response = await cognito.send(+ new CreateUserPoolClientCommand({+ UserPoolId: poolId,+ ClientName: `compat-public-client-${uniqueName()}`,+ AllowedOAuthFlowsUserPoolClient: true,+ AllowedOAuthFlows: ['client_credentials'],+ AllowedOAuthScopes: [readScope, adminScope],+ })+ );+ publicClientId = response.UserPoolClient?.ClientId!;+ expect(publicClientId).toBeTruthy();+ expect(response.UserPoolClient?.ClientSecret).toBeFalsy();+ } catch (e: any) {+ publicClientRejectedAtCreate = isPublicClientRejectionError(e);+ expect(publicClientRejectedAtCreate).toBe(true);+ }+ });++ it('should discover OIDC configuration', async () => {+ discovery = await discoverOpenIdConfiguration(poolId);+ expect(discovery.tokenEndpoint).toContain('/oauth2/token');+ expect(discovery.jwksUri).toContain('/.well-known/jwks.json');+ expect(discovery.issuer).toBeTruthy();+ });++ it('should obtain access token via client_credentials', async () => {+ if (!discovery || !confidentialClientId || !confidentialClientSecret) {+ return;+ }++ const resp = await requestConfidentialClientToken(+ discovery.tokenEndpoint,+ confidentialClientId,+ confidentialClientSecret,+ readScope+ );++ expect(resp.status).toBe(200);+ accessToken = resp.json.access_token;+ expect(accessToken).toBeTruthy();+ expect(resp.json.token_type?.toLowerCase()).toBe('bearer');+ expect(Number(resp.json.expires_in)).toBeGreaterThan(0);+ });++ it('should validate JWT structure and claims', async () => {+ if (!accessToken || !discovery) {+ return;+ }++ const header = decodeJwtPart(accessToken, 0);+ const payload = decodeJwtPart(accessToken, 1);++ expect(header.alg).toBe('RS256');+ expect(header.kid).toBeTruthy();+ expect(payload.iss).toBe(discovery.issuer);+ expect(payload.client_id).toBe(confidentialClientId);+ expect(scopeContains(payload.scope, readScope)).toBe(true);+ });++ it('should verify RS256 signature against JWKS', async () => {+ if (!accessToken || !discovery) {+ return;+ }++ const kid = decodeJwtPart(accessToken, 0).kid;+ const jwk = await fetchJwk(discovery.jwksUri, kid);+ expect(verifyRs256(accessToken, jwk)).toBe(true);+ });++ it('should reject public client token request', async () => {+ if (publicClientRejectedAtCreate || !discovery || !publicClientId) {+ return;+ }++ const resp = await requestPublicClientToken(discovery.tokenEndpoint, publicClientId, readScope);+ expect(resp.status).toBeGreaterThanOrEqual(400);+ expect(resp.status).toBeLessThan(500);+ expect(['invalid_client', 'unauthorized_client']).toContain(resp.json.error);+ });++ it('should reject unknown scope', async () => {+ if (!discovery || !confidentialClientId || !confidentialClientSecret) {+ return;+ }++ const resp = await requestConfidentialClientToken(+ discovery.tokenEndpoint,+ confidentialClientId,+ confidentialClientSecret,+ `${resourceServerId}/unknown`+ );+ expect(resp.status).toBe(400);+ expect(resp.json.error).toBe('invalid_scope');+ });++ it('should delete resource server', async () => {+ await cognito.send(+ new DeleteResourceServerCommand({+ UserPoolId: poolId,+ Identifier: resourceServerId,+ })+ );+ resourceServerId = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/cognito.test.ts b/compatibility-tests/sdk-test-node/tests/cognito.test.tsnew file mode 100644index 0000000000..891d55099b--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/cognito.test.ts@@ -0,0 +1,240 @@+/**+ * Cognito Identity Provider integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ CognitoIdentityProviderClient,+ CreateUserPoolCommand,+ CreateUserPoolClientCommand,+ AdminCreateUserCommand,+ AdminSetUserPasswordCommand,+ InitiateAuthCommand,+ AdminGetUserCommand,+ ListUsersCommand,+ DeleteUserPoolCommand,+ SignUpCommand,+ ConfirmSignUpCommand,+ CreateGroupCommand,+ GetGroupCommand,+ ListGroupsCommand,+ DeleteGroupCommand,+ AdminAddUserToGroupCommand,+ AdminRemoveUserFromGroupCommand,+ AdminListGroupsForUserCommand,+} from '@aws-sdk/client-cognito-identity-provider';+import { makeClient, uniqueName, ENDPOINT } from './setup';++describe('Cognito', () => {+ let cognito: CognitoIdentityProviderClient;+ let poolId: string;+ let clientId: string;++ beforeAll(() => {+ cognito = makeClient(CognitoIdentityProviderClient);+ });++ afterAll(async () => {+ try {+ if (poolId) {+ await cognito.send(new DeleteUserPoolCommand({ UserPoolId: poolId }));+ }+ } catch {+ // ignore+ }+ });++ it('should create user pool', async () => {+ const response = await cognito.send(+ new CreateUserPoolCommand({ PoolName: `test-pool-${uniqueName()}` })+ );+ poolId = response.UserPool!.Id!;+ expect(poolId).toBeTruthy();+ });++ it('should create user pool client', async () => {+ const response = await cognito.send(+ new CreateUserPoolClientCommand({+ UserPoolId: poolId,+ ClientName: `test-client-${uniqueName()}`,+ })+ );+ clientId = response.UserPoolClient!.ClientId!;+ expect(clientId).toBeTruthy();+ });++ it('should admin create user', async () => {+ const response = await cognito.send(+ new AdminCreateUserCommand({+ UserPoolId: poolId,+ Username: 'testuser',+ TemporaryPassword: 'Temp123!',+ UserAttributes: [{ Name: 'email', Value: '[email protected]' }],+ })+ );+ expect(response.User?.Username).toBe('testuser');+ });++ it('should admin set user password', async () => {+ await cognito.send(+ new AdminSetUserPasswordCommand({+ UserPoolId: poolId,+ Username: 'testuser',+ Password: 'Perm456!',+ Permanent: true,+ })+ );+ });++ it('should admin get user', async () => {+ const response = await cognito.send(+ new AdminGetUserCommand({ UserPoolId: poolId, Username: 'testuser' })+ );+ expect(response.UserStatus).toBe('CONFIRMED');+ });++ it('should list users', async () => {+ const response = await cognito.send(new ListUsersCommand({ UserPoolId: poolId }));+ expect(response.Users?.some((u) => u.Username === 'testuser')).toBe(true);+ });++ it('should initiate auth USER_PASSWORD_AUTH', async () => {+ const response = await cognito.send(+ new InitiateAuthCommand({+ AuthFlow: 'USER_PASSWORD_AUTH',+ AuthParameters: { USERNAME: 'testuser', PASSWORD: 'Perm456!' },+ ClientId: clientId,+ })+ );+ expect(response.AuthenticationResult?.AccessToken).toBeTruthy();+ expect(response.AuthenticationResult?.IdToken).toBeTruthy();+ });++ it('should sign up and confirm user', async () => {+ await cognito.send(+ new SignUpCommand({+ ClientId: clientId,+ Username: 'testuser2',+ Password: 'Pass789!',+ UserAttributes: [{ Name: 'email', Value: '[email protected]' }],+ })+ );+ await cognito.send(+ new ConfirmSignUpCommand({+ ClientId: clientId,+ Username: 'testuser2',+ ConfirmationCode: '123456',+ })+ );+ });++ it('should create group', async () => {+ const response = await cognito.send(+ new CreateGroupCommand({+ UserPoolId: poolId,+ GroupName: 'test-group',+ Description: 'Test group',+ Precedence: 1,+ })+ );+ expect(response.Group?.GroupName).toBe('test-group');+ });++ it('should get group', async () => {+ const response = await cognito.send(+ new GetGroupCommand({ UserPoolId: poolId, GroupName: 'test-group' })+ );+ expect(response.Group?.GroupName).toBe('test-group');+ expect(response.Group?.Description).toBe('Test group');+ expect(response.Group?.Precedence).toBe(1);+ });++ it('should fail to create duplicate group', async () => {+ await expect(+ cognito.send(+ new CreateGroupCommand({ UserPoolId: poolId, GroupName: 'test-group' })+ )+ ).rejects.toThrow();+ });++ it('should list groups', async () => {+ const response = await cognito.send(new ListGroupsCommand({ UserPoolId: poolId }));+ expect(response.Groups?.some((g) => g.GroupName === 'test-group')).toBe(true);+ });++ it('should add user to group', async () => {+ await cognito.send(+ new AdminAddUserToGroupCommand({+ UserPoolId: poolId,+ GroupName: 'test-group',+ Username: 'testuser',+ })+ );+ });++ it('should list groups for user', async () => {+ const response = await cognito.send(+ new AdminListGroupsForUserCommand({ UserPoolId: poolId, Username: 'testuser' })+ );+ expect(response.Groups?.some((g) => g.GroupName === 'test-group')).toBe(true);+ });++ it('should return groups in JWT', async () => {+ const response = await cognito.send(+ new InitiateAuthCommand({+ AuthFlow: 'USER_PASSWORD_AUTH',+ AuthParameters: { USERNAME: 'testuser', PASSWORD: 'Perm456!' },+ ClientId: clientId,+ })+ );+ const token = response.AuthenticationResult?.AccessToken!;+ const parts = token.split('.');+ const payload = JSON.parse(Buffer.from(parts[1], 'base64url').toString('utf8'));+ expect(Array.isArray(payload['cognito:groups'])).toBe(true);+ expect(payload['cognito:groups']?.includes('test-group')).toBe(true);+ });++ it('should remove user from group', async () => {+ await cognito.send(+ new AdminRemoveUserFromGroupCommand({+ UserPoolId: poolId,+ GroupName: 'test-group',+ Username: 'testuser',+ })+ );+ });++ it('should verify user has no groups', async () => {+ const response = await cognito.send(+ new AdminListGroupsForUserCommand({ UserPoolId: poolId, Username: 'testuser' })+ );+ expect(response.Groups?.length).toBe(0);+ });++ it('should delete group', async () => {+ await cognito.send(+ new DeleteGroupCommand({ UserPoolId: poolId, GroupName: 'test-group' })+ );+ });++ it('should fail to get deleted group', async () => {+ await expect(+ cognito.send(new GetGroupCommand({ UserPoolId: poolId, GroupName: 'test-group' }))+ ).rejects.toThrow();+ });++ it('should access JWKS endpoint', async () => {+ const resp = await fetch(`${ENDPOINT}/${poolId}/.well-known/jwks.json`);+ expect(resp.ok).toBe(true);+ const json = await resp.json();+ expect(Array.isArray(json.keys)).toBe(true);+ expect(json.keys.length).toBeGreaterThan(0);+ expect(json.keys[0].kty).toBe('RSA');+ expect(json.keys[0].alg).toBe('RS256');+ });++ it('should delete user pool', async () => {+ await cognito.send(new DeleteUserPoolCommand({ UserPoolId: poolId }));+ poolId = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/dynamodb.test.ts b/compatibility-tests/sdk-test-node/tests/dynamodb.test.tsnew file mode 100644index 0000000000..54df91b093--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/dynamodb.test.ts@@ -0,0 +1,291 @@+/**+ * DynamoDB integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ DynamoDBClient,+ CreateTableCommand,+ PutItemCommand,+ GetItemCommand,+ DeleteItemCommand,+ ScanCommand,+ QueryCommand,+ UpdateItemCommand,+ DeleteTableCommand,+ ListTablesCommand,+ DescribeTableCommand,+} from '@aws-sdk/client-dynamodb';+import { makeClient, uniqueName } from './setup';++describe('DynamoDB', () => {+ let dynamo: DynamoDBClient;+ let tableName: string;++ beforeAll(() => {+ dynamo = makeClient(DynamoDBClient);+ tableName = `test-table-${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ await dynamo.send(new DeleteTableCommand({ TableName: tableName }));+ } catch {+ // ignore+ }+ });++ it('should create table', async () => {+ await dynamo.send(+ new CreateTableCommand({+ TableName: tableName,+ KeySchema: [+ { AttributeName: 'pk', KeyType: 'HASH' },+ { AttributeName: 'sk', KeyType: 'RANGE' },+ ],+ AttributeDefinitions: [+ { AttributeName: 'pk', AttributeType: 'S' },+ { AttributeName: 'sk', AttributeType: 'S' },+ ],+ BillingMode: 'PAY_PER_REQUEST',+ })+ );+ });++ it('should describe table', async () => {+ const response = await dynamo.send(new DescribeTableCommand({ TableName: tableName }));+ expect(response.Table?.TableStatus).toBe('ACTIVE');+ });++ it('should list tables', async () => {+ const response = await dynamo.send(new ListTablesCommand({}));+ expect(response.TableNames?.includes(tableName)).toBe(true);+ });++ it('should put item', async () => {+ await dynamo.send(+ new PutItemCommand({+ TableName: tableName,+ Item: {+ pk: { S: 'user#1' },+ sk: { S: 'profile' },+ name: { S: 'Alice' },+ age: { N: '30' },+ },+ })+ );+ });++ it('should get item', async () => {+ const response = await dynamo.send(+ new GetItemCommand({+ TableName: tableName,+ Key: { pk: { S: 'user#1' }, sk: { S: 'profile' } },+ })+ );+ expect(response.Item?.name?.S).toBe('Alice');+ });++ it('should update item', async () => {+ await dynamo.send(+ new UpdateItemCommand({+ TableName: tableName,+ Key: { pk: { S: 'user#1' }, sk: { S: 'profile' } },+ UpdateExpression: 'SET #n = :v',+ ExpressionAttributeNames: { '#n': 'name' },+ ExpressionAttributeValues: { ':v': { S: 'Bob' } },+ })+ );++ const response = await dynamo.send(+ new GetItemCommand({+ TableName: tableName,+ Key: { pk: { S: 'user#1' }, sk: { S: 'profile' } },+ })+ );+ expect(response.Item?.name?.S).toBe('Bob');+ });++ it('should put second item', async () => {+ await dynamo.send(+ new PutItemCommand({+ TableName: tableName,+ Item: {+ pk: { S: 'user#2' },+ sk: { S: 'profile' },+ name: { S: 'Carol' },+ age: { N: '25' },+ },+ })+ );+ });++ it('should scan table', async () => {+ const response = await dynamo.send(new ScanCommand({ TableName: tableName }));+ expect(response.Count).toBeGreaterThanOrEqual(2);+ });++ it('should query table', async () => {+ const response = await dynamo.send(+ new QueryCommand({+ TableName: tableName,+ KeyConditionExpression: 'pk = :pk',+ ExpressionAttributeValues: { ':pk': { S: 'user#1' } },+ })+ );+ expect(response.Count).toBeGreaterThanOrEqual(1);+ });++ it('should delete items', async () => {+ await dynamo.send(+ new DeleteItemCommand({+ TableName: tableName,+ Key: { pk: { S: 'user#1' }, sk: { S: 'profile' } },+ })+ );+ await dynamo.send(+ new DeleteItemCommand({+ TableName: tableName,+ Key: { pk: { S: 'user#2' }, sk: { S: 'profile' } },+ })+ );+ });++ it('should delete table', async () => {+ await dynamo.send(new DeleteTableCommand({ TableName: tableName }));+ tableName = '';+ });+});++describe('DynamoDB GSI/LSI', () => {+ let dynamo: DynamoDBClient;+ let tableName: string;++ beforeAll(() => {+ dynamo = makeClient(DynamoDBClient);+ tableName = `test-gsi-table-${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ await dynamo.send(new DeleteTableCommand({ TableName: tableName }));+ } catch {+ // ignore+ }+ });++ it('should create table with GSI and LSI', async () => {+ await dynamo.send(+ new CreateTableCommand({+ TableName: tableName,+ KeySchema: [+ { AttributeName: 'pk', KeyType: 'HASH' },+ { AttributeName: 'sk', KeyType: 'RANGE' },+ ],+ AttributeDefinitions: [+ { AttributeName: 'pk', AttributeType: 'S' },+ { AttributeName: 'sk', AttributeType: 'S' },+ { AttributeName: 'gsiPk', AttributeType: 'S' },+ { AttributeName: 'lsiSk', AttributeType: 'S' },+ ],+ GlobalSecondaryIndexes: [+ {+ IndexName: 'gsi-1',+ KeySchema: [+ { AttributeName: 'gsiPk', KeyType: 'HASH' },+ { AttributeName: 'sk', KeyType: 'RANGE' },+ ],+ Projection: { ProjectionType: 'ALL' },+ ProvisionedThroughput: { ReadCapacityUnits: 5, WriteCapacityUnits: 5 },+ },+ ],+ LocalSecondaryIndexes: [+ {+ IndexName: 'lsi-1',+ KeySchema: [+ { AttributeName: 'pk', KeyType: 'HASH' },+ { AttributeName: 'lsiSk', KeyType: 'RANGE' },+ ],+ Projection: { ProjectionType: 'KEYS_ONLY' },+ },+ ],+ ProvisionedThroughput: { ReadCapacityUnits: 5, WriteCapacityUnits: 5 },+ })+ );+ });++ it('should verify indexes via DescribeTable', async () => {+ const desc = await dynamo.send(new DescribeTableCommand({ TableName: tableName }));+ const gsis = desc.Table?.GlobalSecondaryIndexes || [];+ const lsis = desc.Table?.LocalSecondaryIndexes || [];++ expect(gsis.length).toBe(1);+ expect(gsis[0]?.IndexName).toBe('gsi-1');+ expect(gsis[0]?.Projection?.ProjectionType).toBe('ALL');+ expect(lsis.length).toBe(1);+ expect(lsis[0]?.IndexName).toBe('lsi-1');+ expect(lsis[0]?.Projection?.ProjectionType).toBe('KEYS_ONLY');+ });++ it('should put items with GSI attributes', async () => {+ await dynamo.send(+ new PutItemCommand({+ TableName: tableName,+ Item: {+ pk: { S: 'item-1' },+ sk: { S: 'rev-1' },+ gsiPk: { S: 'group-A' },+ lsiSk: { S: '2024-01-01' },+ },+ })+ );+ await dynamo.send(+ new PutItemCommand({+ TableName: tableName,+ Item: {+ pk: { S: 'item-2' },+ sk: { S: 'rev-1' },+ gsiPk: { S: 'group-A' },+ lsiSk: { S: '2024-01-02' },+ },+ })+ );+ await dynamo.send(+ new PutItemCommand({+ TableName: tableName,+ Item: { pk: { S: 'item-3' }, sk: { S: 'rev-1' }, data: { S: 'no-gsi-attrs' } },+ })+ );+ });++ it('should query GSI', async () => {+ const resp = await dynamo.send(+ new QueryCommand({+ TableName: tableName,+ IndexName: 'gsi-1',+ KeyConditionExpression: 'gsiPk = :gpk',+ ExpressionAttributeValues: { ':gpk': { S: 'group-A' } },+ })+ );+ expect(resp.Count).toBe(2);+ const pks = new Set(resp.Items?.map((i) => i.pk.S));+ expect(pks.has('item-3')).toBe(false);+ });++ it('should query LSI', async () => {+ const resp = await dynamo.send(+ new QueryCommand({+ TableName: tableName,+ IndexName: 'lsi-1',+ KeyConditionExpression: 'pk = :pk AND lsiSk > :d',+ ExpressionAttributeValues: { ':pk': { S: 'item-1' }, ':d': { S: '2024-01-00' } },+ })+ );+ expect(resp.Count).toBe(1);+ });++ it('should delete table', async () => {+ await dynamo.send(new DeleteTableCommand({ TableName: tableName }));+ tableName = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/iam.test.ts b/compatibility-tests/sdk-test-node/tests/iam.test.tsnew file mode 100644index 0000000000..276941452d--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/iam.test.ts@@ -0,0 +1,113 @@+/**+ * IAM integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ IAMClient,+ CreateRoleCommand,+ GetRoleCommand,+ DeleteRoleCommand,+ ListRolesCommand,+ CreatePolicyCommand,+ DeletePolicyCommand,+ AttachRolePolicyCommand,+ DetachRolePolicyCommand,+} from '@aws-sdk/client-iam';+import { makeClient, uniqueName, ENDPOINT } from './setup';++describe('IAM', () => {+ let iam: IAMClient;+ let roleName: string;+ let policyArn: string;++ beforeAll(() => {+ iam = makeClient(IAMClient, { endpoint: ENDPOINT });+ roleName = `test-role-${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ if (policyArn) {+ await iam.send(new DetachRolePolicyCommand({ RoleName: roleName, PolicyArn: policyArn }));+ }+ } catch {+ // ignore+ }+ try {+ if (policyArn) {+ await iam.send(new DeletePolicyCommand({ PolicyArn: policyArn }));+ }+ } catch {+ // ignore+ }+ try {+ await iam.send(new DeleteRoleCommand({ RoleName: roleName }));+ } catch {+ // ignore+ }+ });++ it('should create role', async () => {+ const policyDoc = JSON.stringify({+ Version: '2012-10-17',+ Statement: [+ {+ Effect: 'Allow',+ Principal: { Service: 'lambda.amazonaws.com' },+ Action: 'sts:AssumeRole',+ },+ ],+ });++ const response = await iam.send(+ new CreateRoleCommand({ RoleName: roleName, AssumeRolePolicyDocument: policyDoc })+ );+ expect(response.Role?.Arn).toBeTruthy();+ });++ it('should get role', async () => {+ const response = await iam.send(new GetRoleCommand({ RoleName: roleName }));+ expect(response.Role?.RoleName).toBe(roleName);+ });++ it('should list roles', async () => {+ const response = await iam.send(new ListRolesCommand({}));+ expect(response.Roles?.some((r) => r.RoleName === roleName)).toBe(true);+ });++ it('should create policy', async () => {+ const response = await iam.send(+ new CreatePolicyCommand({+ PolicyName: `test-policy-${uniqueName()}`,+ PolicyDocument: JSON.stringify({+ Version: '2012-10-17',+ Statement: [{ Effect: 'Allow', Action: 's3:GetObject', Resource: '*' }],+ }),+ })+ );+ policyArn = response.Policy!.Arn!;+ expect(policyArn).toBeTruthy();+ });++ it('should attach role policy', async () => {+ await iam.send(+ new AttachRolePolicyCommand({ RoleName: roleName, PolicyArn: policyArn })+ );+ });++ it('should detach role policy', async () => {+ await iam.send(+ new DetachRolePolicyCommand({ RoleName: roleName, PolicyArn: policyArn })+ );+ });++ it('should delete policy', async () => {+ await iam.send(new DeletePolicyCommand({ PolicyArn: policyArn }));+ policyArn = '';+ });++ it('should delete role', async () => {+ await iam.send(new DeleteRoleCommand({ RoleName: roleName }));+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/kinesis.test.ts b/compatibility-tests/sdk-test-node/tests/kinesis.test.tsnew file mode 100644index 0000000000..8e84928787--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/kinesis.test.ts@@ -0,0 +1,87 @@+/**+ * Kinesis integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ KinesisClient,+ CreateStreamCommand,+ DescribeStreamCommand,+ PutRecordCommand,+ GetShardIteratorCommand,+ GetRecordsCommand,+ DeleteStreamCommand,+ ListStreamsCommand,+} from '@aws-sdk/client-kinesis';+import { makeClient, uniqueName } from './setup';++describe('Kinesis', () => {+ let kinesis: KinesisClient;+ let streamName: string;++ beforeAll(() => {+ kinesis = makeClient(KinesisClient);+ streamName = `test-stream-${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ await kinesis.send(new DeleteStreamCommand({ StreamName: streamName }));+ } catch {+ // ignore+ }+ });++ it('should create stream', async () => {+ await kinesis.send(new CreateStreamCommand({ StreamName: streamName, ShardCount: 1 }));+ });++ it('should describe stream', async () => {+ const response = await kinesis.send(new DescribeStreamCommand({ StreamName: streamName }));+ expect(['ACTIVE', 'CREATING']).toContain(response.StreamDescription?.StreamStatus);+ });++ it('should list streams', async () => {+ const response = await kinesis.send(new ListStreamsCommand({}));+ expect(response.StreamNames?.includes(streamName)).toBe(true);+ });++ it('should put record', async () => {+ const response = await kinesis.send(+ new PutRecordCommand({+ StreamName: streamName,+ Data: Buffer.from('kinesis-test-record'),+ PartitionKey: 'pk1',+ })+ );+ expect(response.SequenceNumber).toBeTruthy();+ });++ it('should get records', async () => {+ const descr = await kinesis.send(new DescribeStreamCommand({ StreamName: streamName }));+ const shardId = descr.StreamDescription!.Shards![0].ShardId!;++ const iterResult = await kinesis.send(+ new GetShardIteratorCommand({+ StreamName: streamName,+ ShardId: shardId,+ ShardIteratorType: 'TRIM_HORIZON',+ })+ );++ const recordsResult = await kinesis.send(+ new GetRecordsCommand({+ ShardIterator: iterResult.ShardIterator!,+ Limit: 10,+ })+ );+ expect(recordsResult.Records?.length).toBeGreaterThan(0);+ const data = Buffer.from(recordsResult.Records![0].Data!).toString();+ expect(data).toBe('kinesis-test-record');+ });++ it('should delete stream', async () => {+ await kinesis.send(new DeleteStreamCommand({ StreamName: streamName }));+ streamName = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/kms.test.ts b/compatibility-tests/sdk-test-node/tests/kms.test.tsnew file mode 100644index 0000000000..a0ca391a34--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/kms.test.ts@@ -0,0 +1,68 @@+/**+ * KMS integration tests.+ */++import { describe, it, expect, beforeAll } from 'vitest';+import {+ KMSClient,+ CreateKeyCommand,+ ListKeysCommand,+ DescribeKeyCommand,+ EncryptCommand,+ DecryptCommand,+ GenerateDataKeyCommand,+} from '@aws-sdk/client-kms';+import { makeClient, uniqueName } from './setup';++describe('KMS', () => {+ let kms: KMSClient;+ let keyId: string;+ let ciphertext: Uint8Array;++ beforeAll(() => {+ kms = makeClient(KMSClient);+ });++ it('should create key', async () => {+ const response = await kms.send(+ new CreateKeyCommand({ Description: `test-key-${uniqueName()}` })+ );+ keyId = response.KeyMetadata!.KeyId!;+ expect(keyId).toBeTruthy();+ });++ it('should describe key', async () => {+ const response = await kms.send(new DescribeKeyCommand({ KeyId: keyId }));+ expect(response.KeyMetadata?.Enabled).toBe(true);+ });++ it('should list keys', async () => {+ const response = await kms.send(new ListKeysCommand({}));+ expect(response.Keys?.some((k) => k.KeyId === keyId)).toBe(true);+ });++ it('should encrypt data', async () => {+ const response = await kms.send(+ new EncryptCommand({+ KeyId: keyId,+ Plaintext: Buffer.from('hello from test'),+ })+ );+ ciphertext = response.CiphertextBlob!;+ expect(ciphertext).toBeTruthy();+ });++ it('should decrypt data', async () => {+ const response = await kms.send(new DecryptCommand({ CiphertextBlob: ciphertext }));+ const plaintext = Buffer.from(response.Plaintext!).toString();+ expect(plaintext).toBe('hello from test');+ });++ it('should generate data key', async () => {+ const response = await kms.send(+ new GenerateDataKeyCommand({ KeyId: keyId, KeySpec: 'AES_256' })+ );+ expect(response.Plaintext).toBeTruthy();+ expect(response.CiphertextBlob).toBeTruthy();+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/lambda.test.ts b/compatibility-tests/sdk-test-node/tests/lambda.test.tsnew file mode 100644index 0000000000..0874a52526--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/lambda.test.ts@@ -0,0 +1,130 @@+/**+ * Lambda integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ LambdaClient,+ CreateFunctionCommand,+ GetFunctionCommand,+ ListFunctionsCommand,+ DeleteFunctionCommand,+ CreateAliasCommand,+ GetAliasCommand,+ ListAliasesCommand,+ UpdateAliasCommand,+ DeleteAliasCommand,+ PublishVersionCommand,+} from '@aws-sdk/client-lambda';+import { makeClient, uniqueName, ACCOUNT, buildMinimalZip } from './setup';++describe('Lambda', () => {+ let lambda: LambdaClient;+ let fnName: string;++ beforeAll(() => {+ lambda = makeClient(LambdaClient);+ fnName = `test-fn-${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ await lambda.send(new DeleteAliasCommand({ FunctionName: fnName, Name: 'live' }));+ } catch {+ // ignore+ }+ try {+ await lambda.send(new DeleteFunctionCommand({ FunctionName: fnName }));+ } catch {+ // ignore+ }+ });++ it('should create function', async () => {+ const handlerCode = "exports.handler = async (event) => ({ statusCode: 200, body: 'ok' });";+ const zipBuffer = buildMinimalZip('index.js', Buffer.from(handlerCode));++ await lambda.send(+ new CreateFunctionCommand({+ FunctionName: fnName,+ Runtime: 'nodejs18.x',+ Role: `arn:aws:iam::${ACCOUNT}:role/lambda-role`,+ Handler: 'index.handler',+ Code: { ZipFile: zipBuffer },+ })+ );+ });++ it('should get function', async () => {+ const response = await lambda.send(new GetFunctionCommand({ FunctionName: fnName }));+ expect(response.Configuration?.FunctionName).toBe(fnName);+ });++ it('should list functions', async () => {+ const response = await lambda.send(new ListFunctionsCommand({}));+ expect(response.Functions?.some((f) => f.FunctionName === fnName)).toBe(true);+ });++ it('should publish version', async () => {+ const response = await lambda.send(+ new PublishVersionCommand({ FunctionName: fnName, Description: 'v1' })+ );+ expect(response.Version).toBeTruthy();+ });++ it('should create alias', async () => {+ const response = await lambda.send(+ new CreateAliasCommand({+ FunctionName: fnName,+ Name: 'live',+ FunctionVersion: '$LATEST',+ Description: 'live alias',+ })+ );+ expect(response.AliasArn).toBeTruthy();+ });++ it('should get alias', async () => {+ const response = await lambda.send(+ new GetAliasCommand({ FunctionName: fnName, Name: 'live' })+ );+ expect(response.Name).toBe('live');+ });++ it('should list aliases', async () => {+ const response = await lambda.send(new ListAliasesCommand({ FunctionName: fnName }));+ expect(response.Aliases?.some((a) => a.Name === 'live')).toBe(true);+ });++ it('should update alias', async () => {+ const response = await lambda.send(+ new UpdateAliasCommand({+ FunctionName: fnName,+ Name: 'live',+ Description: 'updated description',+ })+ );+ expect(response.Description).toBe('updated description');+ });++ it('should delete alias', async () => {+ await lambda.send(new DeleteAliasCommand({ FunctionName: fnName, Name: 'live' }));+ });++ it('should fail to get deleted alias', async () => {+ await expect(+ lambda.send(new GetAliasCommand({ FunctionName: fnName, Name: 'live' }))+ ).rejects.toThrow();+ });++ it('should delete function', async () => {+ await lambda.send(new DeleteFunctionCommand({ FunctionName: fnName }));+ fnName = '';+ });++ it('should fail to get deleted function', async () => {+ await expect(+ lambda.send(new GetFunctionCommand({ FunctionName: `test-fn-${uniqueName()}` }))+ ).rejects.toThrow();+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/s3-cors.test.ts b/compatibility-tests/sdk-test-node/tests/s3-cors.test.tsnew file mode 100644index 0000000000..7c6862ca45--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/s3-cors.test.ts@@ -0,0 +1,225 @@+/**+ * S3 CORS enforcement integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ S3Client,+ CreateBucketCommand,+ PutObjectCommand,+ DeleteObjectCommand,+ DeleteBucketCommand,+ PutBucketCorsCommand,+ DeleteBucketCorsCommand,+} from '@aws-sdk/client-s3';+import { makeClient, uniqueName, ENDPOINT } from './setup';++describe('S3 CORS Enforcement', () => {+ let s3: S3Client;+ let bucketName: string;++ async function rawRequest(+ method: string,+ path: string,+ extraHeaders: Record<string, string> = {}+ ) {+ const url = `${ENDPOINT}/${bucketName}${path}`;+ const resp = await fetch(url, { method, headers: extraHeaders });+ const headers: Record<string, string> = {};+ resp.headers.forEach((v, k) => {+ headers[k.toLowerCase()] = v;+ });+ return { status: resp.status, headers };+ }++ beforeAll(async () => {+ s3 = makeClient(S3Client, { forcePathStyle: true });+ bucketName = `cors-test-bucket-${uniqueName()}`;++ await s3.send(new CreateBucketCommand({ Bucket: bucketName }));+ await s3.send(+ new PutObjectCommand({ Bucket: bucketName, Key: 'cors-test.txt', Body: 'hello cors' })+ );+ });++ afterAll(async () => {+ try {+ await s3.send(new DeleteBucketCorsCommand({ Bucket: bucketName }));+ } catch {+ // ignore+ }+ try {+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: 'cors-test.txt' }));+ } catch {+ // ignore+ }+ try {+ await s3.send(new DeleteBucketCommand({ Bucket: bucketName }));+ } catch {+ // ignore+ }+ });++ it('should reject preflight without CORS config', async () => {+ const { status } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'http://localhost:3000',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(403);+ });++ it('should set wildcard CORS config', async () => {+ await s3.send(+ new PutBucketCorsCommand({+ Bucket: bucketName,+ CORSConfiguration: {+ CORSRules: [+ {+ AllowedOrigins: ['*'],+ AllowedMethods: ['GET', 'PUT', 'POST', 'DELETE', 'HEAD'],+ AllowedHeaders: ['*'],+ ExposeHeaders: ['ETag'],+ MaxAgeSeconds: 3000,+ },+ ],+ },+ })+ );+ });++ it('should allow wildcard preflight', async () => {+ const { status, headers } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'http://localhost:3000',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(200);+ expect(headers['access-control-allow-origin']).toBe('*');+ expect(headers['access-control-max-age']).toBe('3000');+ expect(headers['access-control-allow-methods']?.toUpperCase()).toContain('GET');+ });++ it('should return CORS headers on actual GET with Origin', async () => {+ const { headers } = await rawRequest('GET', '/cors-test.txt', {+ Origin: 'http://localhost:3000',+ });+ expect(headers['access-control-allow-origin']).toBe('*');+ expect(headers['vary']?.toLowerCase()).toContain('origin');+ expect(headers['access-control-expose-headers']).toContain('ETag');+ });++ it('should not return CORS headers without Origin', async () => {+ const { headers } = await rawRequest('GET', '/cors-test.txt');+ expect(headers['access-control-allow-origin']).toBeUndefined();+ });++ it('should set specific origin CORS config', async () => {+ await s3.send(+ new PutBucketCorsCommand({+ Bucket: bucketName,+ CORSConfiguration: {+ CORSRules: [+ {+ AllowedOrigins: ['https://example.com'],+ AllowedMethods: ['GET', 'PUT'],+ AllowedHeaders: ['Content-Type', 'Authorization'],+ ExposeHeaders: ['ETag', 'x-amz-request-id'],+ MaxAgeSeconds: 600,+ },+ ],+ },+ })+ );+ });++ it('should allow matching origin preflight', async () => {+ const { status, headers } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'https://example.com',+ 'Access-Control-Request-Method': 'GET',+ 'Access-Control-Request-Headers': 'Content-Type',+ });+ expect(status).toBe(200);+ expect(headers['access-control-allow-origin']).toBe('https://example.com');+ expect(headers['access-control-max-age']).toBe('600');+ });++ it('should reject non-matching origin', async () => {+ const { status } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'https://attacker.evil.com',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(403);+ });++ it('should reject non-matching method', async () => {+ const { status } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'https://example.com',+ 'Access-Control-Request-Method': 'DELETE',+ });+ expect(status).toBe(403);+ });++ it('should echo origin for matching actual GET', async () => {+ const { headers } = await rawRequest('GET', '/cors-test.txt', {+ Origin: 'https://example.com',+ });+ expect(headers['access-control-allow-origin']).toBe('https://example.com');+ });++ it('should not include CORS headers for non-matching origin GET', async () => {+ const { headers } = await rawRequest('GET', '/cors-test.txt', {+ Origin: 'https://not-allowed.com',+ });+ expect(headers['access-control-allow-origin']).toBeUndefined();+ });++ it('should reject preflight after CORS config deleted', async () => {+ await s3.send(new DeleteBucketCorsCommand({ Bucket: bucketName }));++ const { status } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'http://localhost:3000',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(403);+ });++ it('should support subdomain wildcard pattern', async () => {+ await s3.send(+ new PutBucketCorsCommand({+ Bucket: bucketName,+ CORSConfiguration: {+ CORSRules: [+ {+ AllowedOrigins: ['http://*.example.com'],+ AllowedMethods: ['GET'],+ AllowedHeaders: ['*'],+ MaxAgeSeconds: 120,+ },+ ],+ },+ })+ );++ const { status, headers } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'http://app.example.com',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(200);+ expect(headers['access-control-allow-origin']).toBe('http://app.example.com');+ });++ it('should reject https with http wildcard pattern', async () => {+ const { status } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'https://app.example.com',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(403);+ });++ it('should reject different domain with subdomain wildcard', async () => {+ const { status } = await rawRequest('OPTIONS', '/cors-test.txt', {+ Origin: 'http://app.other.com',+ 'Access-Control-Request-Method': 'GET',+ });+ expect(status).toBe(403);+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/s3-notifications.test.ts b/compatibility-tests/sdk-test-node/tests/s3-notifications.test.tsnew file mode 100644index 0000000000..caacb67ed8--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/s3-notifications.test.ts@@ -0,0 +1,162 @@+/**+ * S3 Notifications integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ S3Client,+ CreateBucketCommand,+ PutObjectCommand,+ DeleteObjectCommand,+ DeleteBucketCommand,+ PutBucketNotificationConfigurationCommand,+ GetBucketNotificationConfigurationCommand,+} from '@aws-sdk/client-s3';+import {+ SQSClient,+ CreateQueueCommand,+ GetQueueAttributesCommand,+ DeleteQueueCommand,+} from '@aws-sdk/client-sqs';+import { SNSClient, CreateTopicCommand, DeleteTopicCommand } from '@aws-sdk/client-sns';+import { makeClient, uniqueName } from './setup';++describe('S3 Notifications', () => {+ let s3: S3Client;+ let sqs: SQSClient;+ let sns: SNSClient;+ let bucketName: string;+ let queueUrl: string;+ let queueArn: string;+ let topicArn: string;++ beforeAll(async () => {+ s3 = makeClient(S3Client, { forcePathStyle: true });+ sqs = makeClient(SQSClient);+ sns = makeClient(SNSClient);++ bucketName = `notif-test-bucket-${uniqueName()}`;++ // Create SQS queue+ const queueResult = await sqs.send(+ new CreateQueueCommand({ QueueName: `notif-queue-${uniqueName()}` })+ );+ queueUrl = queueResult.QueueUrl!;+ const attrs = await sqs.send(+ new GetQueueAttributesCommand({ QueueUrl: queueUrl, AttributeNames: ['QueueArn'] })+ );+ queueArn = attrs.Attributes!.QueueArn!;++ // Create SNS topic+ const topicResult = await sns.send(+ new CreateTopicCommand({ Name: `notif-topic-${uniqueName()}` })+ );+ topicArn = topicResult.TopicArn!;++ // Create S3 bucket+ await s3.send(new CreateBucketCommand({ Bucket: bucketName }));+ });++ afterAll(async () => {+ try {+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: 'test-object.txt' }));+ } catch {+ // ignore+ }+ try {+ await s3.send(new DeleteBucketCommand({ Bucket: bucketName }));+ } catch {+ // ignore+ }+ try {+ await sqs.send(new DeleteQueueCommand({ QueueUrl: queueUrl }));+ } catch {+ // ignore+ }+ try {+ await sns.send(new DeleteTopicCommand({ TopicArn: topicArn }));+ } catch {+ // ignore+ }+ });++ it('should put bucket notification configuration', async () => {+ await s3.send(+ new PutBucketNotificationConfigurationCommand({+ Bucket: bucketName,+ NotificationConfiguration: {+ QueueConfigurations: [+ {+ Id: 'sqs-filtered',+ QueueArn: queueArn,+ Events: ['s3:ObjectCreated:*'],+ Filter: {+ Key: {+ FilterRules: [+ { Name: 'prefix', Value: 'incoming/' },+ { Name: 'suffix', Value: '.csv' },+ ],+ },+ },+ },+ ],+ TopicConfigurations: [+ {+ Id: 'sns-filtered',+ TopicArn: topicArn,+ Events: ['s3:ObjectRemoved:*'],+ Filter: {+ Key: {+ FilterRules: [+ { Name: 'prefix', Value: '' },+ { Name: 'suffix', Value: '.txt' },+ ],+ },+ },+ },+ ],+ },+ })+ );+ });++ it('should get bucket notification configuration', async () => {+ const response = await s3.send(+ new GetBucketNotificationConfigurationCommand({ Bucket: bucketName })+ );++ // Verify SQS configuration+ const sqsConfig = response.QueueConfigurations?.find((c) => c.Id === 'sqs-filtered');+ expect(sqsConfig).toBeTruthy();+ expect(sqsConfig?.QueueArn).toBe(queueArn);+ expect(sqsConfig?.Events).toContain('s3:ObjectCreated:*');++ const sqsRules = sqsConfig?.Filter?.Key?.FilterRules || [];+ expect(sqsRules.some((r) => r.Name === 'prefix' && r.Value === 'incoming/')).toBe(true);+ expect(sqsRules.some((r) => r.Name === 'suffix' && r.Value === '.csv')).toBe(true);++ // Verify SNS configuration+ const snsConfig = response.TopicConfigurations?.find((c) => c.Id === 'sns-filtered');+ expect(snsConfig).toBeTruthy();+ expect(snsConfig?.TopicArn).toBe(topicArn);+ expect(snsConfig?.Events).toContain('s3:ObjectRemoved:*');++ const snsRules = snsConfig?.Filter?.Key?.FilterRules || [];+ expect(snsRules.some((r) => r.Name === 'suffix' && r.Value === '.txt')).toBe(true);+ });++ it('should clear notification configuration', async () => {+ await s3.send(+ new PutBucketNotificationConfigurationCommand({+ Bucket: bucketName,+ NotificationConfiguration: {},+ })+ );++ const response = await s3.send(+ new GetBucketNotificationConfigurationCommand({ Bucket: bucketName })+ );+ expect(response.QueueConfigurations?.length || 0).toBe(0);+ expect(response.TopicConfigurations?.length || 0).toBe(0);+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/s3.test.ts b/compatibility-tests/sdk-test-node/tests/s3.test.tsnew file mode 100644index 0000000000..ae2b792f44--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/s3.test.ts@@ -0,0 +1,277 @@+/**+ * S3 integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ S3Client,+ CreateBucketCommand,+ PutObjectCommand,+ GetObjectCommand,+ DeleteObjectCommand,+ ListObjectsV2Command,+ DeleteBucketCommand,+ HeadObjectCommand,+ HeadBucketCommand,+ ListBucketsCommand,+ CopyObjectCommand,+ GetBucketLocationCommand,+ CreateMultipartUploadCommand,+ UploadPartCopyCommand,+ CompleteMultipartUploadCommand,+ AbortMultipartUploadCommand,+} from '@aws-sdk/client-s3';+import { makeClient, uniqueName, CLIENT_CONFIG } from './setup';++describe('S3', () => {+ let s3: S3Client;+ let euS3: S3Client;+ let bucketName: string;+ let euBucketName: string;+ let signedRegionBucket: string;++ beforeAll(() => {+ s3 = makeClient(S3Client, { forcePathStyle: true });+ euS3 = new S3Client({ ...CLIENT_CONFIG, region: 'eu-central-1', forcePathStyle: true });+ bucketName = `test-bucket-${uniqueName()}`;+ euBucketName = `test-bucket-eu-${uniqueName()}`;+ signedRegionBucket = `test-bucket-signed-${uniqueName()}`;+ });++ afterAll(async () => {+ // Cleanup buckets+ for (const bucket of [bucketName, euBucketName, signedRegionBucket]) {+ try {+ const list = await s3.send(new ListObjectsV2Command({ Bucket: bucket }));+ for (const obj of list.Contents || []) {+ await s3.send(new DeleteObjectCommand({ Bucket: bucket, Key: obj.Key }));+ }+ await s3.send(new DeleteBucketCommand({ Bucket: bucket }));+ } catch {+ // ignore+ }+ }+ });++ it('should create bucket', async () => {+ const response = await s3.send(new CreateBucketCommand({ Bucket: bucketName }));+ expect(response.Location).toBe(`/${bucketName}`);+ });++ it('should create bucket with LocationConstraint', async () => {+ const response = await s3.send(+ new CreateBucketCommand({+ Bucket: euBucketName,+ CreateBucketConfiguration: { LocationConstraint: 'eu-central-1' },+ })+ );+ expect(response.Location).toBe(`/${euBucketName}`);+ });++ it('should get bucket location', async () => {+ const response = await s3.send(new GetBucketLocationCommand({ Bucket: euBucketName }));+ expect(response.LocationConstraint).toBe('eu-central-1');+ });++ it('should create bucket using signing region when body empty', async () => {+ await euS3.send(new CreateBucketCommand({ Bucket: signedRegionBucket }));+ const head = await euS3.send(new HeadBucketCommand({ Bucket: signedRegionBucket }));+ expect(head.BucketRegion).toBe('eu-central-1');+ const loc = await euS3.send(new GetBucketLocationCommand({ Bucket: signedRegionBucket }));+ expect(loc.LocationConstraint).toBe('eu-central-1');+ });++ it('should reject explicit us-east-1 LocationConstraint', async () => {+ await expect(+ s3.send(+ new CreateBucketCommand({+ Bucket: `invalid-loc-${uniqueName()}`,+ CreateBucketConfiguration: { LocationConstraint: 'us-east-1' },+ })+ )+ ).rejects.toThrow();+ });++ it('should list buckets', async () => {+ const response = await s3.send(new ListBucketsCommand({}));+ expect(response.Buckets?.some((b) => b.Name === bucketName)).toBe(true);+ });++ it('should put object', async () => {+ await s3.send(+ new PutObjectCommand({ Bucket: bucketName, Key: 'test.txt', Body: 'hello from test' })+ );+ });++ it('should head object', async () => {+ const response = await s3.send(+ new HeadObjectCommand({ Bucket: bucketName, Key: 'test.txt' })+ );+ expect(response.ContentLength).toBeGreaterThan(0);+ expect(response.LastModified).toBeInstanceOf(Date);+ });++ it('should get object', async () => {+ const response = await s3.send(+ new GetObjectCommand({ Bucket: bucketName, Key: 'test.txt' })+ );+ const body = await response.Body?.transformToString();+ expect(body).toBe('hello from test');+ });++ it('should copy object', async () => {+ await s3.send(+ new CopyObjectCommand({+ CopySource: `${bucketName}/test.txt`,+ Bucket: bucketName,+ Key: 'test-copy.txt',+ })+ );+ });++ it('should copy object with non-ASCII key', async () => {+ const nonAsciiKey = 'src/テスト画像.png';+ const nonAsciiDst = 'dst/テスト画像.png';++ await s3.send(+ new PutObjectCommand({+ Bucket: bucketName,+ Key: nonAsciiKey,+ Body: Buffer.from('non-ascii content'),+ })+ );+ await s3.send(+ new CopyObjectCommand({+ CopySource: `${bucketName}/${encodeURIComponent(nonAsciiKey)}`,+ Bucket: bucketName,+ Key: nonAsciiDst,+ })+ );+ const response = await s3.send(+ new GetObjectCommand({ Bucket: bucketName, Key: nonAsciiDst })+ );+ const body = await response.Body?.transformToString();+ expect(body).toBe('non-ascii content');++ // Cleanup+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: nonAsciiKey }));+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: nonAsciiDst }));+ });++ it('should multipart copy object with non-ASCII key', async () => {+ const srcKey = 'src/テスト画像.bin';+ const dstKey = 'dst/テスト画像.bin';+ const body = Buffer.alloc(6 * 1024 * 1024, 'a');+ let uploadId: string | undefined;++ try {+ await s3.send(+ new PutObjectCommand({+ Bucket: bucketName,+ Key: srcKey,+ Body: body,+ })+ );++ const create = await s3.send(+ new CreateMultipartUploadCommand({+ Bucket: bucketName,+ Key: dstKey,+ })+ );+ uploadId = create.UploadId;+ expect(uploadId).toBeTruthy();++ const part = await s3.send(+ new UploadPartCopyCommand({+ Bucket: bucketName,+ Key: dstKey,+ UploadId: uploadId,+ PartNumber: 1,+ CopySource: `${bucketName}/${encodeURIComponent(srcKey)}`,+ })+ );+ expect(part.CopyPartResult?.ETag).toBeTruthy();++ await s3.send(+ new CompleteMultipartUploadCommand({+ Bucket: bucketName,+ Key: dstKey,+ UploadId: uploadId,+ MultipartUpload: {+ Parts: [+ {+ ETag: part.CopyPartResult?.ETag,+ PartNumber: 1,+ },+ ],+ },+ })+ );+ uploadId = undefined;++ const response = await s3.send(+ new GetObjectCommand({ Bucket: bucketName, Key: dstKey })+ );+ const copied = await response.Body?.transformToByteArray();+ expect(copied && Buffer.from(copied)).toEqual(body);+ } finally {+ if (uploadId) {+ await s3.send(+ new AbortMultipartUploadCommand({+ Bucket: bucketName,+ Key: dstKey,+ UploadId: uploadId,+ })+ ).catch(() => {});+ }+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: srcKey })).catch(() => {});+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: dstKey })).catch(() => {});+ }+ });++ it('should list objects', async () => {+ const response = await s3.send(new ListObjectsV2Command({ Bucket: bucketName }));+ expect(response.KeyCount).toBeGreaterThanOrEqual(2);+ });++ it('should upload large object (25 MB)', async () => {+ await s3.send(+ new PutObjectCommand({+ Bucket: bucketName,+ Key: 'large-object-25mb.bin',+ Body: Buffer.alloc(25 * 1024 * 1024),+ ContentType: 'application/octet-stream',+ })+ );++ const response = await s3.send(+ new HeadObjectCommand({ Bucket: bucketName, Key: 'large-object-25mb.bin' })+ );+ expect(response.ContentLength).toBe(25 * 1024 * 1024);++ await s3.send(+ new DeleteObjectCommand({ Bucket: bucketName, Key: 'large-object-25mb.bin' })+ );+ });++ it('should delete object', async () => {+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: 'test.txt' }));+ await s3.send(new DeleteObjectCommand({ Bucket: bucketName, Key: 'test-copy.txt' }));+ });++ it('should fail for missing object', async () => {+ await expect(+ s3.send(new GetObjectCommand({ Bucket: bucketName, Key: 'missing.txt' }))+ ).rejects.toThrow();+ });++ it('should delete bucket', async () => {+ await s3.send(new DeleteBucketCommand({ Bucket: bucketName }));+ await s3.send(new DeleteBucketCommand({ Bucket: euBucketName }));+ await euS3.send(new DeleteBucketCommand({ Bucket: signedRegionBucket }));+ bucketName = '';+ euBucketName = '';+ signedRegionBucket = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/secretsmanager.test.ts b/compatibility-tests/sdk-test-node/tests/secretsmanager.test.tsnew file mode 100644index 0000000000..04c83f1c2e--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/secretsmanager.test.ts@@ -0,0 +1,73 @@+/**+ * Secrets Manager integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ SecretsManagerClient,+ CreateSecretCommand,+ GetSecretValueCommand,+ UpdateSecretCommand,+ DeleteSecretCommand,+ ListSecretsCommand,+} from '@aws-sdk/client-secrets-manager';+import { makeClient, uniqueName } from './setup';++describe('Secrets Manager', () => {+ let sm: SecretsManagerClient;+ let secretName: string;++ beforeAll(() => {+ sm = makeClient(SecretsManagerClient);+ secretName = `test/secret/${uniqueName()}`;+ });++ afterAll(async () => {+ try {+ await sm.send(+ new DeleteSecretCommand({ SecretId: secretName, ForceDeleteWithoutRecovery: true })+ );+ } catch {+ // ignore+ }+ });++ it('should create secret', async () => {+ const response = await sm.send(+ new CreateSecretCommand({ Name: secretName, SecretString: '{"key":"value"}' })+ );+ expect(response.ARN).toBeTruthy();+ });++ it('should get secret value', async () => {+ const response = await sm.send(new GetSecretValueCommand({ SecretId: secretName }));+ expect(response.SecretString).toBe('{"key":"value"}');+ });++ it('should update secret', async () => {+ await sm.send(+ new UpdateSecretCommand({ SecretId: secretName, SecretString: '{"key":"updated"}' })+ );++ const response = await sm.send(new GetSecretValueCommand({ SecretId: secretName }));+ expect(response.SecretString).toBe('{"key":"updated"}');+ });++ it('should list secrets', async () => {+ const response = await sm.send(new ListSecretsCommand({}));+ expect(response.SecretList?.some((s) => s.Name === secretName)).toBe(true);+ });++ it('should delete secret', async () => {+ await sm.send(+ new DeleteSecretCommand({ SecretId: secretName, ForceDeleteWithoutRecovery: true })+ );+ secretName = '';+ });++ it('should fail to get deleted secret', async () => {+ await expect(+ sm.send(new GetSecretValueCommand({ SecretId: `test/secret/${uniqueName()}` }))+ ).rejects.toThrow();+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/setup.ts b/compatibility-tests/sdk-test-node/tests/setup.tsnew file mode 100644index 0000000000..9219dbbcab--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/setup.ts@@ -0,0 +1,110 @@+/**+ * Common test setup and utilities for floci SDK tests.+ */++import { randomUUID } from 'node:crypto';++export const ENDPOINT = process.env.FLOCI_ENDPOINT || 'http://localhost:4566';+export const REGION = process.env.AWS_DEFAULT_REGION || 'us-east-1';+export const ACCOUNT = '000000000000';+export const CREDS = {+ accessKeyId: process.env.AWS_ACCESS_KEY_ID || 'test',+ secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY || 'test',+};++export const CLIENT_CONFIG = {+ endpoint: ENDPOINT,+ region: REGION,+ credentials: CREDS,+ forcePathStyle: true,+};++export function makeClient<T>(+ ClientClass: new (config: typeof CLIENT_CONFIG) => T,+ extra: Record<string, unknown> = {}+): T {+ return new ClientClass({ ...CLIENT_CONFIG, ...extra });+}++export function uniqueName(prefix = 'test'): string {+ return `${prefix}-${randomUUID().slice(0, 8)}`;+}++export function sleep(ms: number): Promise<void> {+ return new Promise((r) => setTimeout(r, ms));+}++// Build a minimal ZIP file for Lambda functions+export function buildMinimalZip(filename: string, content: Buffer): Buffer {+ const filenameBytes = Buffer.from(filename);+ const crc = crc32(content);++ // Local file header+ const localHeader = Buffer.alloc(30 + filenameBytes.length);+ localHeader.writeUInt32LE(0x04034b50, 0); // signature+ localHeader.writeUInt16LE(20, 4); // version needed+ localHeader.writeUInt16LE(0, 6); // flags+ localHeader.writeUInt16LE(0, 8); // compression: store+ localHeader.writeUInt16LE(0, 10); // mod time+ localHeader.writeUInt16LE(0, 12); // mod date+ localHeader.writeUInt32LE(crc, 14); // crc32+ localHeader.writeUInt32LE(content.length, 18); // compressed size+ localHeader.writeUInt32LE(content.length, 22); // uncompressed size+ localHeader.writeUInt16LE(filenameBytes.length, 26); // filename len+ localHeader.writeUInt16LE(0, 28); // extra field len+ filenameBytes.copy(localHeader, 30);++ const centralDir = Buffer.alloc(46 + filenameBytes.length);+ centralDir.writeUInt32LE(0x02014b50, 0); // signature+ centralDir.writeUInt16LE(20, 4); // version made by+ centralDir.writeUInt16LE(20, 6); // version needed+ centralDir.writeUInt16LE(0, 8); // flags+ centralDir.writeUInt16LE(0, 10); // compression+ centralDir.writeUInt16LE(0, 12); // mod time+ centralDir.writeUInt16LE(0, 14); // mod date+ centralDir.writeUInt32LE(crc, 16); // crc32+ centralDir.writeUInt32LE(content.length, 20); // compressed size+ centralDir.writeUInt32LE(content.length, 24); // uncompressed size+ centralDir.writeUInt16LE(filenameBytes.length, 28); // filename len+ centralDir.writeUInt16LE(0, 30); // extra+ centralDir.writeUInt16LE(0, 32); // comment+ centralDir.writeUInt16LE(0, 34); // disk start+ centralDir.writeUInt16LE(0, 36); // int attributes+ centralDir.writeUInt32LE(0, 38); // ext attributes+ centralDir.writeUInt32LE(0, 42); // local header offset+ filenameBytes.copy(centralDir, 46);++ const centralDirOffset = localHeader.length + content.length;+ const eocd = Buffer.alloc(22);+ eocd.writeUInt32LE(0x06054b50, 0); // signature+ eocd.writeUInt16LE(0, 4); // disk num+ eocd.writeUInt16LE(0, 6); // disk with cd+ eocd.writeUInt16LE(1, 8); // total entries on disk+ eocd.writeUInt16LE(1, 10); // total entries+ eocd.writeUInt32LE(centralDir.length, 12); // cd size+ eocd.writeUInt32LE(centralDirOffset, 16); // cd offset+ eocd.writeUInt16LE(0, 20); // comment len++ return Buffer.concat([localHeader, content, centralDir, eocd]);+}++function makeCrcTable(): Uint32Array {+ const table = new Uint32Array(256);+ for (let i = 0; i < 256; i++) {+ let c = i;+ for (let j = 0; j < 8; j++) {+ c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;+ }+ table[i] = c;+ }+ return table;+}++function crc32(buf: Buffer): number {+ const table = makeCrcTable();+ let crc = 0xffffffff;+ for (let i = 0; i < buf.length; i++) {+ crc = (crc >>> 8) ^ table[(crc ^ buf[i]) & 0xff];+ }+ return (crc ^ 0xffffffff) >>> 0;+}diff --git a/compatibility-tests/sdk-test-node/tests/sns.test.ts b/compatibility-tests/sdk-test-node/tests/sns.test.tsnew file mode 100644index 0000000000..276b82d7ed--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/sns.test.ts@@ -0,0 +1,153 @@+/**+ * SNS integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ SNSClient,+ CreateTopicCommand,+ SubscribeCommand,+ PublishCommand,+ ListTopicsCommand,+ ListSubscriptionsByTopicCommand,+ UnsubscribeCommand,+ DeleteTopicCommand,+ GetSubscriptionAttributesCommand,+ SetSubscriptionAttributesCommand,+ PublishBatchCommand,+} from '@aws-sdk/client-sns';+import {+ SQSClient,+ CreateQueueCommand,+ GetQueueAttributesCommand,+ DeleteQueueCommand,+} from '@aws-sdk/client-sqs';+import { makeClient, uniqueName } from './setup';++describe('SNS', () => {+ let sns: SNSClient;+ let sqs: SQSClient;+ let topicArn: string;+ let subscriptionArn: string;+ let queueUrl: string;+ let queueArn: string;++ beforeAll(async () => {+ sns = makeClient(SNSClient);+ sqs = makeClient(SQSClient);++ // Create backing SQS queue for subscription+ const queueResult = await sqs.send(+ new CreateQueueCommand({ QueueName: `sns-target-${uniqueName()}` })+ );+ queueUrl = queueResult.QueueUrl!;+ const queueAttr = await sqs.send(+ new GetQueueAttributesCommand({ QueueUrl: queueUrl, AttributeNames: ['QueueArn'] })+ );+ queueArn = queueAttr.Attributes!.QueueArn!;+ });++ afterAll(async () => {+ try {+ if (subscriptionArn) {+ await sns.send(new UnsubscribeCommand({ SubscriptionArn: subscriptionArn }));+ }+ } catch {+ // ignore+ }+ try {+ if (topicArn) {+ await sns.send(new DeleteTopicCommand({ TopicArn: topicArn }));+ }+ } catch {+ // ignore+ }+ try {+ if (queueUrl) {+ await sqs.send(new DeleteQueueCommand({ QueueUrl: queueUrl }));+ }+ } catch {+ // ignore+ }+ });++ it('should create a topic', async () => {+ const response = await sns.send(+ new CreateTopicCommand({ Name: `test-topic-${uniqueName()}` })+ );+ topicArn = response.TopicArn!;+ expect(topicArn).toBeTruthy();+ });++ it('should list topics', async () => {+ const response = await sns.send(new ListTopicsCommand({}));+ expect(response.Topics?.some((t) => t.TopicArn === topicArn)).toBe(true);+ });++ it('should subscribe SQS to topic', async () => {+ const response = await sns.send(+ new SubscribeCommand({+ TopicArn: topicArn,+ Protocol: 'sqs',+ Endpoint: queueArn,+ })+ );+ subscriptionArn = response.SubscriptionArn!;+ expect(subscriptionArn).toBeTruthy();+ });++ it('should list subscriptions by topic', async () => {+ const response = await sns.send(+ new ListSubscriptionsByTopicCommand({ TopicArn: topicArn })+ );+ expect(response.Subscriptions?.length).toBeGreaterThan(0);+ });++ it('should get subscription attributes', async () => {+ const response = await sns.send(+ new GetSubscriptionAttributesCommand({ SubscriptionArn: subscriptionArn })+ );+ expect(response.Attributes?.Protocol).toBe('sqs');+ expect(response.Attributes?.TopicArn).toBe(topicArn);+ });++ it('should set subscription attributes', async () => {+ await sns.send(+ new SetSubscriptionAttributesCommand({+ SubscriptionArn: subscriptionArn,+ AttributeName: 'RawMessageDelivery',+ AttributeValue: 'true',+ })+ );+ });++ it('should publish message', async () => {+ const response = await sns.send(+ new PublishCommand({ TopicArn: topicArn, Message: 'test-sns-message' })+ );+ expect(response.MessageId).toBeTruthy();+ });++ it('should publish batch messages', async () => {+ const response = await sns.send(+ new PublishBatchCommand({+ TopicArn: topicArn,+ PublishBatchRequestEntries: [+ { Id: '1', Message: 'batch-msg-1' },+ { Id: '2', Message: 'batch-msg-2' },+ ],+ })+ );+ expect(response.Successful?.length).toBe(2);+ });++ it('should unsubscribe', async () => {+ await sns.send(new UnsubscribeCommand({ SubscriptionArn: subscriptionArn }));+ subscriptionArn = '';+ });++ it('should delete topic', async () => {+ await sns.send(new DeleteTopicCommand({ TopicArn: topicArn }));+ topicArn = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/sqs.test.ts b/compatibility-tests/sdk-test-node/tests/sqs.test.tsnew file mode 100644index 0000000000..f59e218a05--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/sqs.test.ts@@ -0,0 +1,125 @@+/**+ * SQS integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ SQSClient,+ CreateQueueCommand,+ GetQueueUrlCommand,+ SendMessageCommand,+ ReceiveMessageCommand,+ DeleteMessageCommand,+ GetQueueAttributesCommand,+ DeleteQueueCommand,+ SendMessageBatchCommand,+ SetQueueAttributesCommand,+} from '@aws-sdk/client-sqs';+import { makeClient, uniqueName, ENDPOINT, ACCOUNT } from './setup';++describe('SQS', () => {+ let sqs: SQSClient;+ let queueName: string;+ let queueUrl: string;+ let fifoQueueName: string;++ beforeAll(() => {+ sqs = makeClient(SQSClient);+ queueName = `test-queue-${uniqueName()}`;+ fifoQueueName = `test-fifo-${uniqueName()}.fifo`;+ });++ afterAll(async () => {+ try {+ await sqs.send(new DeleteQueueCommand({ QueueUrl: queueUrl }));+ } catch {+ // ignore+ }+ try {+ await sqs.send(+ new DeleteQueueCommand({ QueueUrl: `${ENDPOINT}/${ACCOUNT}/${fifoQueueName}` })+ );+ } catch {+ // ignore+ }+ });++ it('should create a queue', async () => {+ const response = await sqs.send(new CreateQueueCommand({ QueueName: queueName }));+ queueUrl = response.QueueUrl!;+ expect(queueUrl).toBeTruthy();+ });++ it('should get queue URL', async () => {+ const response = await sqs.send(new GetQueueUrlCommand({ QueueName: queueName }));+ expect(response.QueueUrl).toBe(queueUrl);+ });++ it('should get queue attributes', async () => {+ const response = await sqs.send(+ new GetQueueAttributesCommand({ QueueUrl: queueUrl, AttributeNames: ['All'] })+ );+ expect(response.Attributes?.QueueArn).toBeTruthy();+ });++ it('should send and receive message', async () => {+ await sqs.send(+ new SendMessageCommand({ QueueUrl: queueUrl, MessageBody: 'test-message' })+ );++ const response = await sqs.send(+ new ReceiveMessageCommand({+ QueueUrl: queueUrl,+ MaxNumberOfMessages: 1,+ WaitTimeSeconds: 1,+ })+ );+ expect(response.Messages?.length).toBeGreaterThan(0);+ expect(response.Messages?.[0].Body).toBe('test-message');++ // Delete the message+ await sqs.send(+ new DeleteMessageCommand({+ QueueUrl: queueUrl,+ ReceiptHandle: response.Messages![0].ReceiptHandle!,+ })+ );+ });++ it('should send batch messages', async () => {+ await sqs.send(+ new SendMessageBatchCommand({+ QueueUrl: queueUrl,+ Entries: [+ { Id: '1', MessageBody: 'batch-msg-1' },+ { Id: '2', MessageBody: 'batch-msg-2' },+ ],+ })+ );+ });++ it('should create FIFO queue', async () => {+ const response = await sqs.send(+ new CreateQueueCommand({+ QueueName: fifoQueueName,+ Attributes: { FifoQueue: 'true', ContentBasedDeduplication: 'true' },+ })+ );+ expect(response.QueueUrl).toContain('.fifo');+ });++ it('should set queue attributes', async () => {+ await sqs.send(+ new SetQueueAttributesCommand({+ QueueUrl: queueUrl,+ Attributes: { VisibilityTimeout: '60' },+ })+ );+ });++ it('should delete queue', async () => {+ await sqs.send(new DeleteQueueCommand({ QueueUrl: queueUrl }));+ // Reset for cleanup+ queueUrl = '';+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/ssm.test.ts b/compatibility-tests/sdk-test-node/tests/ssm.test.tsnew file mode 100644index 0000000000..39849677e3--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/ssm.test.ts@@ -0,0 +1,100 @@+/**+ * SSM Parameter Store integration tests.+ */++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import {+ SSMClient,+ PutParameterCommand,+ GetParameterCommand,+ DeleteParameterCommand,+ GetParametersByPathCommand,+ DescribeParametersCommand,+} from '@aws-sdk/client-ssm';+import { makeClient, uniqueName } from './setup';++describe('SSM', () => {+ let ssm: SSMClient;+ let paramPath: string;++ beforeAll(() => {+ ssm = makeClient(SSMClient);+ paramPath = `/floci/test/${uniqueName()}`;+ });++ afterAll(async () => {+ // Cleanup any remaining parameters+ try {+ await ssm.send(new DeleteParameterCommand({ Name: `${paramPath}/p1` }));+ } catch {+ // ignore+ }+ try {+ await ssm.send(new DeleteParameterCommand({ Name: `${paramPath}/secret` }));+ } catch {+ // ignore+ }+ });++ it('should put and get a String parameter', async () => {+ const name = `${paramPath}/p1`;+ await ssm.send(+ new PutParameterCommand({ Name: name, Value: 'hello', Type: 'String' })+ );++ const response = await ssm.send(new GetParameterCommand({ Name: name }));+ expect(response.Parameter?.Value).toBe('hello');+ });++ it('should put and get a SecureString parameter', async () => {+ const name = `${paramPath}/secret`;+ await ssm.send(+ new PutParameterCommand({ Name: name, Value: 's3cr3t', Type: 'SecureString' })+ );++ const response = await ssm.send(+ new GetParameterCommand({ Name: name, WithDecryption: true })+ );+ expect(response.Parameter?.Value).toBe('s3cr3t');+ });++ it('should get parameters by path', async () => {+ const response = await ssm.send(+ new GetParametersByPathCommand({ Path: paramPath, Recursive: true })+ );+ expect(response.Parameters?.length).toBeGreaterThanOrEqual(2);+ });++ it('should describe parameters', async () => {+ const response = await ssm.send(new DescribeParametersCommand({}));+ expect(response.Parameters?.length).toBeGreaterThanOrEqual(2);+ });++ it('should overwrite parameter', async () => {+ const name = `${paramPath}/p1`;+ await ssm.send(+ new PutParameterCommand({+ Name: name,+ Value: 'updated',+ Type: 'String',+ Overwrite: true,+ })+ );++ const response = await ssm.send(new GetParameterCommand({ Name: name }));+ expect(response.Parameter?.Value).toBe('updated');+ });++ it('should fail for missing parameter', async () => {+ await expect(+ ssm.send(new GetParameterCommand({ Name: `${paramPath}/missing` }))+ ).rejects.toThrow();+ });++ it('should delete parameter', async () => {+ const name = `${paramPath}/p1`;+ await ssm.send(new DeleteParameterCommand({ Name: name }));++ await expect(ssm.send(new GetParameterCommand({ Name: name }))).rejects.toThrow();+ });+});diff --git a/compatibility-tests/sdk-test-node/tests/sts.test.ts b/compatibility-tests/sdk-test-node/tests/sts.test.tsnew file mode 100644index 0000000000..f4b5ac920d--- /dev/null+++ b/compatibility-tests/sdk-test-node/tests/sts.test.ts@@ -0,0 +1,31 @@+/**+ * STS integration tests.+ */++import { describe, it, expect, beforeAll } from 'vitest';+import { STSClient, GetCallerIdentityCommand, AssumeRoleCommand } from '@aws-sdk/client-sts';+import { makeClient, ACCOUNT } from './setup';++describe('STS', () => {+ let sts: STSClient;++ beforeAll(() => {+ sts = makeClient(STSClient);+ });++ it('should get caller identity', async () => {+ const response = await sts.send(new GetCallerIdentityCommand({}));+ expect(response.Account).toBeTruthy();+ expect(response.UserId).toBeTruthy();+ });++ it('should assume role', async () => {+ const response = await sts.send(+ new AssumeRoleCommand({+ RoleArn: `arn:aws:iam::${ACCOUNT}:role/test-role`,+ RoleSessionName: 'test-session',+ })+ );+ expect(response.Credentials?.AccessKeyId).toBeTruthy();+ });+});diff --git a/compatibility-tests/sdk-test-node/tsconfig.json b/compatibility-tests/sdk-test-node/tsconfig.jsonnew file mode 100644index 0000000000..817a7979c2--- /dev/null+++ b/compatibility-tests/sdk-test-node/tsconfig.json@@ -0,0 +1,21 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "module": "ESNext",+ "moduleResolution": "bundler",+ "lib": ["ES2020"],+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "resolveJsonModule": true,+ "declaration": true,+ "declarationMap": true,+ "sourceMap": true,+ "outDir": "./dist",+ "rootDir": ".",+ "types": ["node", "vitest/globals"]+ },+ "include": ["tests/**/*", "vitest.config.ts"],+ "exclude": ["node_modules", "dist"]+}diff --git a/compatibility-tests/sdk-test-node/vitest.config.ts b/compatibility-tests/sdk-test-node/vitest.config.tsnew file mode 100644index 0000000000..8b6527f5ef--- /dev/null+++ b/compatibility-tests/sdk-test-node/vitest.config.ts@@ -0,0 +1,23 @@+import { defineConfig } from 'vitest/config';++const resultsDir = process.env.TEST_RESULTS_DIR || 'test-results';++export default defineConfig({+ test: {+ environment: 'node',+ globals: true,+ testTimeout: 60000,+ hookTimeout: 30000,+ include: ['tests/**/*.test.ts'],+ reporters: ['default', 'junit'],+ outputFile: {+ junit: `${resultsDir}/junit.xml`,+ },+ pool: 'forks',+ poolOptions: {+ forks: {+ singleFork: true,+ },+ },+ },+});diff --git a/compatibility-tests/sdk-test-python/Dockerfile b/compatibility-tests/sdk-test-python/Dockerfilenew file mode 100644index 0000000000..be1834747f--- /dev/null+++ b/compatibility-tests/sdk-test-python/Dockerfile@@ -0,0 +1,13 @@+FROM python:3.12-slim+WORKDIR /app++COPY requirements.txt .+RUN pip install --no-cache-dir -r requirements.txt++COPY conftest.py pytest.ini ./+COPY tests/ tests/++ENV FLOCI_ENDPOINT=http://floci:4566++RUN mkdir -p /results+ENTRYPOINT ["pytest", "tests/", "-v", "--junit-xml=/results/junit.xml"]diff --git a/compatibility-tests/sdk-test-python/README.md b/compatibility-tests/sdk-test-python/README.mdnew file mode 100644index 0000000000..3b99f4fcfc--- /dev/null+++ b/compatibility-tests/sdk-test-python/README.md@@ -0,0 +1,62 @@+# 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+```diff --git a/compatibility-tests/sdk-test-python/conftest.py b/compatibility-tests/sdk-test-python/conftest.pynew file mode 100644index 0000000000..f5126a74d3--- /dev/null+++ b/compatibility-tests/sdk-test-python/conftest.py@@ -0,0 +1,236 @@+"""Shared fixtures for AWS service integration tests."""++import os+import uuid+import io+import zipfile++import boto3+import pytest+from botocore.config import Config++[email protected](scope="session")+def endpoint_url():+ """Return the Floci endpoint URL."""+ return os.environ.get("FLOCI_ENDPOINT", "http://localhost:4566")++[email protected](scope="session")+def aws_config(endpoint_url):+ """Common AWS configuration from environment variables."""+ return {+ "endpoint_url": endpoint_url,+ "region_name": os.environ.get("AWS_DEFAULT_REGION", "us-east-1"),+ "aws_access_key_id": os.environ.get("AWS_ACCESS_KEY_ID", "test"),+ "aws_secret_access_key": os.environ.get("AWS_SECRET_ACCESS_KEY", "test"),+ }++[email protected](scope="session")+def client_config():+ """Botocore client configuration with retry settings."""+ return Config(retries={"max_attempts": 1})+++# ============================================+# Service Client Fixtures+# ============================================+++def ssm_client(aws_config, client_config):+ """Create SSM client."""+ return boto3.client("ssm", config=client_config, **aws_config)+++def sqs_client(aws_config, client_config):+ """Create SQS client."""+ return boto3.client("sqs", config=client_config, **aws_config)+++def sns_client(aws_config, client_config):+ """Create SNS client."""+ return boto3.client("sns", config=client_config, **aws_config)+++def s3_client(aws_config, client_config):+ """Create S3 client."""+ return boto3.client("s3", config=client_config, **aws_config)+++def dynamodb_client(aws_config, client_config):+ """Create DynamoDB client."""+ return boto3.client("dynamodb", config=client_config, **aws_config)+++def lambda_client(aws_config, client_config):+ """Create Lambda client."""+ return boto3.client("lambda", config=client_config, **aws_config)+++def iam_client(aws_config, client_config):+ """Create IAM client."""+ return boto3.client("iam", config=client_config, **aws_config)+++def sts_client(aws_config, client_config):+ """Create STS client."""+ return boto3.client("sts", config=client_config, **aws_config)+++def secretsmanager_client(aws_config, client_config):+ """Create Secrets Manager client."""+ return boto3.client("secretsmanager", config=client_config, **aws_config)+++def kms_client(aws_config, client_config):+ """Create KMS client."""+ return boto3.client("kms", config=client_config, **aws_config)+++def kinesis_client(aws_config, client_config):+ """Create Kinesis client."""+ return boto3.client("kinesis", config=client_config, **aws_config)+++def cloudwatch_client(aws_config, client_config):+ """Create CloudWatch client."""+ return boto3.client("cloudwatch", config=client_config, **aws_config)+++def logs_client(aws_config, client_config):+ """Create CloudWatch Logs client."""+ return boto3.client("logs", config=client_config, **aws_config)+++def cognito_client(aws_config, client_config):+ """Create Cognito Identity Provider client."""+ return boto3.client("cognito-idp", config=client_config, **aws_config)+++def cloudformation_client(aws_config, client_config):+ """Create CloudFormation client."""+ return boto3.client("cloudformation", config=client_config, **aws_config)+++# ============================================+# Utility Fixtures+# ============================================+++def unique_name():+ """Generate a unique name for test resources."""+ return f"pytest-{uuid.uuid4().hex[:8]}"+++def minimal_lambda_zip():+ """Create a minimal Node.js Lambda deployment package."""+ code = (+ "exports.handler = async (event) => {\n"+ " console.log('[handler] event:', JSON.stringify(event));\n"+ " const name = (event && event.name) ? event.name : 'World';\n"+ " return { statusCode: 200, body: JSON.stringify({ message: `Hello, ${name}!`, input: event }) };\n"+ "};\n"+ )+ buf = io.BytesIO()+ with zipfile.ZipFile(buf, "w") as zf:+ zf.writestr("index.js", code)+ return buf.getvalue()+++# ============================================+# Resource Fixtures with Cleanup+# ============================================+++def test_bucket(s3_client, unique_name):+ """Create and cleanup a test S3 bucket."""+ bucket_name = f"test-bucket-{unique_name}"+ s3_client.create_bucket(Bucket=bucket_name)++ yield bucket_name++ # Cleanup: empty and delete bucket+ try:+ paginator = s3_client.get_paginator("list_objects_v2")+ for page in paginator.paginate(Bucket=bucket_name):+ if "Contents" in page:+ for obj in page["Contents"]:+ s3_client.delete_object(Bucket=bucket_name, Key=obj["Key"])+ s3_client.delete_bucket(Bucket=bucket_name)+ except Exception:+ pass+++def test_queue(sqs_client, unique_name):+ """Create and cleanup a test SQS queue."""+ queue_name = f"test-queue-{unique_name}"+ response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = response["QueueUrl"]++ yield queue_url++ # Cleanup+ try:+ sqs_client.delete_queue(QueueUrl=queue_url)+ except Exception:+ pass+++def test_topic(sns_client, unique_name):+ """Create and cleanup a test SNS topic."""+ topic_name = f"test-topic-{unique_name}"+ response = sns_client.create_topic(Name=topic_name)+ topic_arn = response["TopicArn"]++ yield topic_arn++ # Cleanup+ try:+ sns_client.delete_topic(TopicArn=topic_arn)+ except Exception:+ pass+++def test_table(dynamodb_client, unique_name):+ """Create and cleanup a test DynamoDB table."""+ table_name = f"test-table-{unique_name}"+ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],+ AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],+ BillingMode="PAY_PER_REQUEST",+ )++ # Wait for table to be active+ waiter = dynamodb_client.get_waiter("table_exists")+ waiter.wait(TableName=table_name, WaiterConfig={"Delay": 1, "MaxAttempts": 30})++ yield table_name++ # Cleanup+ try:+ dynamodb_client.delete_table(TableName=table_name)+ except Exception:+ passdiff --git a/compatibility-tests/sdk-test-python/pytest.ini b/compatibility-tests/sdk-test-python/pytest.ininew file mode 100644index 0000000000..d3854cf44d--- /dev/null+++ b/compatibility-tests/sdk-test-python/pytest.ini@@ -0,0 +1,5 @@+[pytest]+testpaths = tests+python_files = test_*.py+python_functions = test_*+addopts = -v --tb=short --junit-xml=test-results/junit.xmldiff --git a/compatibility-tests/sdk-test-python/requirements.txt b/compatibility-tests/sdk-test-python/requirements.txtnew file mode 100644index 0000000000..2c0b4d68d4--- /dev/null+++ b/compatibility-tests/sdk-test-python/requirements.txt@@ -0,0 +1,3 @@+boto3==1.37.1+botocore==1.37.1+pytest>=8.0.0diff --git a/compatibility-tests/sdk-test-python/tests/test_cloudformation_naming.py b/compatibility-tests/sdk-test-python/tests/test_cloudformation_naming.pynew file mode 100644index 0000000000..ba5138b885--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_cloudformation_naming.py@@ -0,0 +1,382 @@+"""CloudFormation resource naming compatibility tests.++Tests that CloudFormation correctly handles:+- Auto-generated resource names (when no explicit name is provided)+- Explicit resource names (when specified in Properties)+- Cross-stack references using intrinsic functions+"""++import json+import time++import pytest+++def wait_for_stack_terminal_state(cfn_client, stack_name, timeout=60):+ """Wait for stack to reach a terminal state.++ Returns (success: bool, status: str).+ """+ success_states = {"CREATE_COMPLETE", "UPDATE_COMPLETE"}+ failure_states = {+ "CREATE_FAILED",+ "ROLLBACK_IN_PROGRESS",+ "ROLLBACK_FAILED",+ "ROLLBACK_COMPLETE",+ "DELETE_FAILED",+ "DELETE_COMPLETE",+ }++ start = time.time()+ while time.time() - start < timeout:+ resp = cfn_client.describe_stacks(StackName=stack_name)+ status = resp.get("Stacks", [{}])[0].get("StackStatus", "")+ if status in success_states:+ return True, status+ if status in failure_states:+ return False, status+ time.sleep(1)+ return False, "TIMEOUT"+++def get_physical_id(resources, logical_id):+ """Get PhysicalResourceId for a given LogicalResourceId."""+ for resource in resources:+ if resource.get("LogicalResourceId") == logical_id:+ return resource.get("PhysicalResourceId")+ return None+++class TestCloudFormationAutoNaming:+ """Test CloudFormation auto-generated resource names."""++ @pytest.fixture+ def auto_naming_stack(self, cloudformation_client, unique_name):+ """Create a stack with auto-generated resource names."""+ stack_name = f"cfn-auto-naming-{unique_name}"+ template = {+ "Resources": {+ "AutoBucket": {"Type": "AWS::S3::Bucket"},+ "AutoQueue": {"Type": "AWS::SQS::Queue"},+ "AutoTopic": {"Type": "AWS::SNS::Topic"},+ "AutoParameter": {+ "Type": "AWS::SSM::Parameter",+ "Properties": {"Type": "String", "Value": "v1"},+ },+ "CrossRefQueue": {+ "Type": "AWS::SQS::Queue",+ "Properties": {"QueueName": {"Fn::Sub": "${AutoBucket}-cross"}},+ },+ }+ }++ cloudformation_client.create_stack(+ StackName=stack_name,+ TemplateBody=json.dumps(template),+ )++ yield stack_name++ # Cleanup+ try:+ cloudformation_client.delete_stack(StackName=stack_name)+ except Exception:+ pass++ def test_auto_naming_create_stack(self, cloudformation_client, auto_naming_stack):+ """Test CreateStack succeeds with auto-named resources."""+ ok, status = wait_for_stack_terminal_state(+ cloudformation_client, auto_naming_stack+ )+ assert ok, f"Stack creation failed with status: {status}"++ def test_auto_naming_describe_stack_resources(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test DescribeStackResources returns created resources."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ assert len(resources) > 0, "No resources found in stack"++ def test_auto_naming_s3_bucket_generated(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test S3 bucket gets auto-generated name."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ bucket_name = get_physical_id(resources, "AutoBucket")+ assert bucket_name, "S3 bucket physical ID not found"++ def test_auto_naming_s3_bucket_constraints(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test S3 bucket name follows naming constraints."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ bucket_name = get_physical_id(resources, "AutoBucket")+ assert bucket_name, "S3 bucket physical ID not found"++ # S3 bucket naming constraints+ assert 3 <= len(bucket_name) <= 63, f"Bucket name length invalid: {len(bucket_name)}"+ assert bucket_name == bucket_name.lower(), "Bucket name must be lowercase"+ assert all(+ ch.islower() or ch.isdigit() or ch in ".-" for ch in bucket_name+ ), "Bucket name contains invalid characters"++ def test_auto_naming_sqs_queue_generated(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test SQS queue gets auto-generated name."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ queue_url = get_physical_id(resources, "AutoQueue")+ assert queue_url, "SQS queue physical ID not found"++ def test_auto_naming_sqs_queue_constraints(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test SQS queue name follows naming constraints."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ queue_url = get_physical_id(resources, "AutoQueue")+ assert queue_url, "SQS queue physical ID not found"++ # Extract queue name from URL+ queue_name = queue_url.rsplit("/", 1)[-1]+ assert 0 < len(queue_name) <= 80, f"Queue name length invalid: {len(queue_name)}"++ def test_auto_naming_sns_topic_generated(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test SNS topic gets auto-generated name."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ topic_arn = get_physical_id(resources, "AutoTopic")+ assert topic_arn, "SNS topic physical ID not found"++ def test_auto_naming_sns_topic_constraints(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test SNS topic name follows naming constraints."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ topic_arn = get_physical_id(resources, "AutoTopic")+ assert topic_arn, "SNS topic physical ID not found"++ # Extract topic name from ARN+ topic_name = topic_arn.rsplit(":", 1)[-1]+ assert 0 < len(topic_name) <= 256, f"Topic name length invalid: {len(topic_name)}"++ def test_auto_naming_ssm_parameter_generated(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test SSM parameter gets auto-generated name."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ param_name = get_physical_id(resources, "AutoParameter")+ assert param_name, "SSM parameter physical ID not found"++ def test_auto_naming_ssm_parameter_constraints(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test SSM parameter name follows naming constraints."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ param_name = get_physical_id(resources, "AutoParameter")+ assert param_name, "SSM parameter physical ID not found"+ assert len(param_name) <= 2048, f"Parameter name too long: {len(param_name)}"++ def test_auto_naming_cross_reference_queue_generated(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test cross-reference queue gets generated with Fn::Sub."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ cross_queue = get_physical_id(resources, "CrossRefQueue")+ assert cross_queue, "Cross-reference queue physical ID not found"++ def test_auto_naming_cross_reference_uses_bucket_name(+ self, cloudformation_client, auto_naming_stack+ ):+ """Test cross-reference queue name includes auto-generated bucket name."""+ wait_for_stack_terminal_state(cloudformation_client, auto_naming_stack)++ resources = cloudformation_client.describe_stack_resources(+ StackName=auto_naming_stack+ ).get("StackResources", [])++ bucket_name = get_physical_id(resources, "AutoBucket")+ cross_queue = get_physical_id(resources, "CrossRefQueue")++ assert bucket_name and cross_queue, "Missing resource physical IDs"++ cross_queue_name = cross_queue.rsplit("/", 1)[-1]+ assert cross_queue_name.startswith(+ f"{bucket_name}-cross"+ ), f"Cross-ref queue '{cross_queue_name}' should start with '{bucket_name}-cross'"+++class TestCloudFormationExplicitNaming:+ """Test CloudFormation explicit resource names."""++ @pytest.fixture+ def explicit_naming_stack(self, cloudformation_client, unique_name):+ """Create a stack with explicit resource names."""+ stack_name = f"cfn-explicit-naming-{unique_name}"+ explicit_bucket = f"cfn-explicit-{unique_name}"+ explicit_queue = f"cfn-explicit-{unique_name}"+ explicit_topic = f"cfn-explicit-{unique_name}"+ explicit_param = f"/cfn-explicit/{unique_name}"++ template = {+ "Resources": {+ "NamedBucket": {+ "Type": "AWS::S3::Bucket",+ "Properties": {"BucketName": explicit_bucket},+ },+ "NamedQueue": {+ "Type": "AWS::SQS::Queue",+ "Properties": {"QueueName": explicit_queue},+ },+ "NamedTopic": {+ "Type": "AWS::SNS::Topic",+ "Properties": {"TopicName": explicit_topic},+ },+ "NamedParameter": {+ "Type": "AWS::SSM::Parameter",+ "Properties": {+ "Name": explicit_param,+ "Type": "String",+ "Value": "explicit",+ },+ },+ }+ }++ cloudformation_client.create_stack(+ StackName=stack_name,+ TemplateBody=json.dumps(template),+ )++ yield {+ "stack_name": stack_name,+ "expected_bucket": explicit_bucket,+ "expected_queue": explicit_queue,+ "expected_topic": explicit_topic,+ "expected_param": explicit_param,+ }++ # Cleanup+ try:+ cloudformation_client.delete_stack(StackName=stack_name)+ except Exception:+ pass++ def test_explicit_naming_create_stack(+ self, cloudformation_client, explicit_naming_stack+ ):+ """Test CreateStack succeeds with explicit resource names."""+ ok, status = wait_for_stack_terminal_state(+ cloudformation_client, explicit_naming_stack["stack_name"]+ )+ assert ok, f"Stack creation failed with status: {status}"++ def test_explicit_naming_s3_bucket(+ self, cloudformation_client, explicit_naming_stack+ ):+ """Test S3 bucket uses explicit name."""+ wait_for_stack_terminal_state(+ cloudformation_client, explicit_naming_stack["stack_name"]+ )++ resources = cloudformation_client.describe_stack_resources(+ StackName=explicit_naming_stack["stack_name"]+ ).get("StackResources", [])++ actual_bucket = get_physical_id(resources, "NamedBucket")+ assert actual_bucket == explicit_naming_stack["expected_bucket"]++ def test_explicit_naming_sqs_queue(+ self, cloudformation_client, explicit_naming_stack+ ):+ """Test SQS queue uses explicit name."""+ wait_for_stack_terminal_state(+ cloudformation_client, explicit_naming_stack["stack_name"]+ )++ resources = cloudformation_client.describe_stack_resources(+ StackName=explicit_naming_stack["stack_name"]+ ).get("StackResources", [])++ actual_queue = get_physical_id(resources, "NamedQueue")+ assert actual_queue and explicit_naming_stack["expected_queue"] in actual_queue++ def test_explicit_naming_sns_topic(+ self, cloudformation_client, explicit_naming_stack+ ):+ """Test SNS topic uses explicit name."""+ wait_for_stack_terminal_state(+ cloudformation_client, explicit_naming_stack["stack_name"]+ )++ resources = cloudformation_client.describe_stack_resources(+ StackName=explicit_naming_stack["stack_name"]+ ).get("StackResources", [])++ actual_topic = get_physical_id(resources, "NamedTopic")+ assert actual_topic and explicit_naming_stack["expected_topic"] in actual_topic++ def test_explicit_naming_ssm_parameter(+ self, cloudformation_client, explicit_naming_stack+ ):+ """Test SSM parameter uses explicit name."""+ wait_for_stack_terminal_state(+ cloudformation_client, explicit_naming_stack["stack_name"]+ )++ resources = cloudformation_client.describe_stack_resources(+ StackName=explicit_naming_stack["stack_name"]+ ).get("StackResources", [])++ actual_param = get_physical_id(resources, "NamedParameter")+ assert actual_param == explicit_naming_stack["expected_param"]diff --git a/compatibility-tests/sdk-test-python/tests/test_cloudwatch.py b/compatibility-tests/sdk-test-python/tests/test_cloudwatch.pynew file mode 100644index 0000000000..9a674cf1ed--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_cloudwatch.py@@ -0,0 +1,254 @@+"""CloudWatch Metrics integration tests."""++import datetime++import pytest+++class TestCloudWatchMetrics:+ """Test CloudWatch metrics operations."""++ def test_put_metric_data(self, cloudwatch_client, unique_name):+ """Test PutMetricData writes metric."""+ namespace = f"TestApp/PytestMetrics/{unique_name}"+ now = datetime.datetime.now(datetime.timezone.utc)++ cloudwatch_client.put_metric_data(+ Namespace=namespace,+ MetricData=[+ {+ "MetricName": "RequestCount",+ "Value": 42.0,+ "Unit": "Count",+ "Timestamp": now,+ }+ ],+ )+ # If no exception, test passes++ def test_put_metric_data_with_dimensions(self, cloudwatch_client, unique_name):+ """Test PutMetricData with dimensions."""+ namespace = f"TestApp/PytestMetrics/{unique_name}"+ now = datetime.datetime.now(datetime.timezone.utc)++ cloudwatch_client.put_metric_data(+ Namespace=namespace,+ MetricData=[+ {+ "MetricName": "Latency",+ "Value": 125.5,+ "Unit": "Milliseconds",+ "Timestamp": now,+ "Dimensions": [{"Name": "Host", "Value": "web01"}],+ }+ ],+ )+ # If no exception, test passes++ def test_list_metrics(self, cloudwatch_client, unique_name):+ """Test ListMetrics returns written metrics."""+ namespace = f"TestApp/PytestMetrics/{unique_name}"+ now = datetime.datetime.now(datetime.timezone.utc)++ cloudwatch_client.put_metric_data(+ Namespace=namespace,+ MetricData=[+ {"MetricName": "RequestCount", "Value": 42.0, "Unit": "Count", "Timestamp": now},+ {"MetricName": "Latency", "Value": 125.5, "Unit": "Milliseconds", "Timestamp": now},+ ],+ )++ response = cloudwatch_client.list_metrics(Namespace=namespace)+ has_rc = any(m["MetricName"] == "RequestCount" for m in response["Metrics"])+ has_lat = any(m["MetricName"] == "Latency" for m in response["Metrics"])+ assert has_rc and has_lat++ def test_list_metrics_namespace_isolation(self, cloudwatch_client, unique_name):+ """Test ListMetrics respects namespace isolation."""+ namespace_a = f"TestApp/PytestMetricsA/{unique_name}"+ namespace_b = f"TestApp/PytestMetricsB/{unique_name}"+ now = datetime.datetime.now(datetime.timezone.utc)++ cloudwatch_client.put_metric_data(+ Namespace=namespace_a,+ MetricData=[{"MetricName": "MetricA", "Value": 1.0, "Unit": "Count", "Timestamp": now}],+ )+ cloudwatch_client.put_metric_data(+ Namespace=namespace_b,+ MetricData=[{"MetricName": "MetricB", "Value": 1.0, "Unit": "Count", "Timestamp": now}],+ )++ response_a = cloudwatch_client.list_metrics(Namespace=namespace_a)+ response_b = cloudwatch_client.list_metrics(Namespace=namespace_b)++ no_a_in_b = all(m["Namespace"] != namespace_a for m in response_b["Metrics"])+ no_b_in_a = all(m["Namespace"] != namespace_b for m in response_a["Metrics"])+ assert no_a_in_b and no_b_in_a++ def test_get_metric_statistics(self, cloudwatch_client, unique_name):+ """Test GetMetricStatistics returns aggregated data."""+ namespace = f"TestApp/PytestMetrics/{unique_name}"+ now = datetime.datetime.now(datetime.timezone.utc)++ # Put 5 data points+ data_points = [+ {+ "MetricName": "CPUUtil",+ "Value": v,+ "Unit": "Percent",+ "Timestamp": now - datetime.timedelta(seconds=s),+ }+ for v, s in [(10.0, 250), (20.0, 200), (30.0, 150), (40.0, 100), (50.0, 50)]+ ]+ cloudwatch_client.put_metric_data(Namespace=namespace, MetricData=data_points)++ response = cloudwatch_client.get_metric_statistics(+ Namespace=namespace,+ MetricName="CPUUtil",+ StartTime=now - datetime.timedelta(hours=1),+ EndTime=now + datetime.timedelta(seconds=60),+ Period=3600,+ Statistics=["Sum", "SampleCount"],+ )++ assert len(response["Datapoints"]) > 0+ total_sum = sum(dp["Sum"] for dp in response["Datapoints"])+ total_sc = sum(dp["SampleCount"] for dp in response["Datapoints"])+ assert abs(total_sum - 150.0) < 0.001+ assert abs(total_sc - 5.0) < 0.001++ def test_put_metric_data_with_statistic_values(self, cloudwatch_client, unique_name):+ """Test PutMetricData with pre-calculated StatisticValues."""+ namespace = f"TestApp/StatisticValues/{unique_name}"+ now = datetime.datetime.now(datetime.timezone.utc)++ # Put metric data with pre-calculated statistics+ cloudwatch_client.put_metric_data(+ Namespace=namespace,+ MetricData=[+ {+ "MetricName": "AggregatedMetric",+ "StatisticValues": {+ "SampleCount": 5,+ "Sum": 150.0,+ "Minimum": 20.0,+ "Maximum": 40.0,+ },+ "Unit": "Count",+ }+ ],+ )++ # Query back the statistics+ response = cloudwatch_client.get_metric_statistics(+ Namespace=namespace,+ MetricName="AggregatedMetric",+ StartTime=now - datetime.timedelta(hours=1),+ EndTime=now + datetime.timedelta(seconds=60),+ Period=3600,+ Statistics=["Sum", "Average", "Minimum", "Maximum", "SampleCount"],+ )++ assert response["Datapoints"]+ dp = response["Datapoints"][0]+ assert dp["Sum"] == 150.0+ assert dp["SampleCount"] == 5+ assert dp["Minimum"] == 20.0+ assert dp["Maximum"] == 40.0+ assert dp["Average"] == 30.0 # sum / sampleCount+++class TestCloudWatchAlarms:+ """Test CloudWatch alarm operations."""++ def test_put_metric_alarm(self, cloudwatch_client, unique_name):+ """Test PutMetricAlarm creates an alarm."""+ alarm_name = f"pytest-alarm-{unique_name}"++ try:+ cloudwatch_client.put_metric_alarm(+ AlarmName=alarm_name,+ MetricName="CPUUtilization",+ Namespace="AWS/EC2",+ Statistic="Average",+ Period=60,+ Threshold=80.0,+ ComparisonOperator="GreaterThanThreshold",+ EvaluationPeriods=1,+ AlarmActions=["arn:aws:sns:us-east-1:000000000000:my-topic"],+ )+ # If no exception, test passes+ finally:+ cloudwatch_client.delete_alarms(AlarmNames=[alarm_name])++ def test_describe_alarms(self, cloudwatch_client, unique_name):+ """Test DescribeAlarms returns alarm details."""+ alarm_name = f"pytest-alarm-{unique_name}"++ cloudwatch_client.put_metric_alarm(+ AlarmName=alarm_name,+ MetricName="CPUUtilization",+ Namespace="AWS/EC2",+ Statistic="Average",+ Period=60,+ Threshold=80.0,+ ComparisonOperator="GreaterThanThreshold",+ EvaluationPeriods=1,+ )++ try:+ response = cloudwatch_client.describe_alarms(AlarmNames=[alarm_name])+ alarms = response["MetricAlarms"]+ assert any(a["AlarmName"] == alarm_name for a in alarms)++ alarm = next(a for a in alarms if a["AlarmName"] == alarm_name)+ assert alarm["StateValue"] == "INSUFFICIENT_DATA"+ finally:+ cloudwatch_client.delete_alarms(AlarmNames=[alarm_name])++ def test_set_alarm_state(self, cloudwatch_client, unique_name):+ """Test SetAlarmState changes alarm state."""+ alarm_name = f"pytest-alarm-{unique_name}"++ cloudwatch_client.put_metric_alarm(+ AlarmName=alarm_name,+ MetricName="CPUUtilization",+ Namespace="AWS/EC2",+ Statistic="Average",+ Period=60,+ Threshold=80.0,+ ComparisonOperator="GreaterThanThreshold",+ EvaluationPeriods=1,+ )++ try:+ cloudwatch_client.set_alarm_state(+ AlarmName=alarm_name,+ StateValue="ALARM",+ StateReason="Threshold breached",+ )++ response = cloudwatch_client.describe_alarms(AlarmNames=[alarm_name])+ assert response["MetricAlarms"][0]["StateValue"] == "ALARM"+ finally:+ cloudwatch_client.delete_alarms(AlarmNames=[alarm_name])++ def test_delete_alarms(self, cloudwatch_client, unique_name):+ """Test DeleteAlarms removes alarms."""+ alarm_name = f"pytest-alarm-{unique_name}"++ cloudwatch_client.put_metric_alarm(+ AlarmName=alarm_name,+ MetricName="CPUUtilization",+ Namespace="AWS/EC2",+ Statistic="Average",+ Period=60,+ Threshold=80.0,+ ComparisonOperator="GreaterThanThreshold",+ EvaluationPeriods=1,+ )++ cloudwatch_client.delete_alarms(AlarmNames=[alarm_name])++ response = cloudwatch_client.describe_alarms(AlarmNames=[alarm_name])+ assert len(response["MetricAlarms"]) == 0diff --git a/compatibility-tests/sdk-test-python/tests/test_cognito.py b/compatibility-tests/sdk-test-python/tests/test_cognito.pynew file mode 100644index 0000000000..0c9b176ad5--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_cognito.py@@ -0,0 +1,191 @@+"""Cognito Identity Provider integration tests."""++import pytest+++class TestCognitoUserPool:+ """Test Cognito user pool operations."""++ def test_create_user_pool(self, cognito_client, unique_name):+ """Test CreateUserPool creates a pool."""+ pool_name = f"pytest-pool-{unique_name}"++ try:+ response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = response["UserPool"]["Id"]+ assert pool_id+ finally:+ cognito_client.delete_user_pool(UserPoolId=response["UserPool"]["Id"])++ def test_delete_user_pool(self, cognito_client, unique_name):+ """Test DeleteUserPool removes pool."""+ pool_name = f"pytest-pool-{unique_name}"++ response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = response["UserPool"]["Id"]++ cognito_client.delete_user_pool(UserPoolId=pool_id)+ # If no exception, test passes+++class TestCognitoUserPoolClient:+ """Test Cognito user pool client operations."""++ def test_create_user_pool_client(self, cognito_client, unique_name):+ """Test CreateUserPoolClient creates a client."""+ pool_name = f"pytest-pool-{unique_name}"+ client_name = f"pytest-client-{unique_name}"++ response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = response["UserPool"]["Id"]++ try:+ response = cognito_client.create_user_pool_client(+ UserPoolId=pool_id, ClientName=client_name+ )+ client_id = response["UserPoolClient"]["ClientId"]+ assert client_id+ finally:+ cognito_client.delete_user_pool(UserPoolId=pool_id)++ def test_delete_user_pool_client(self, cognito_client, unique_name):+ """Test DeleteUserPoolClient removes client."""+ pool_name = f"pytest-pool-{unique_name}"+ client_name = f"pytest-client-{unique_name}"++ pool_response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = pool_response["UserPool"]["Id"]++ client_response = cognito_client.create_user_pool_client(+ UserPoolId=pool_id, ClientName=client_name+ )+ client_id = client_response["UserPoolClient"]["ClientId"]++ try:+ cognito_client.delete_user_pool_client(+ UserPoolId=pool_id, ClientId=client_id+ )+ # If no exception, test passes+ finally:+ cognito_client.delete_user_pool(UserPoolId=pool_id)+++class TestCognitoUser:+ """Test Cognito user operations."""++ def test_admin_create_user(self, cognito_client, unique_name):+ """Test AdminCreateUser creates a user."""+ pool_name = f"pytest-pool-{unique_name}"+ username = f"pytest-user-{unique_name}"++ pool_response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = pool_response["UserPool"]["Id"]++ try:+ response = cognito_client.admin_create_user(+ UserPoolId=pool_id,+ Username=username,+ UserAttributes=[{"Name": "email", "Value": "[email protected]"}],+ )+ assert response["User"]["Username"] == username+ finally:+ cognito_client.admin_delete_user(UserPoolId=pool_id, Username=username)+ cognito_client.delete_user_pool(UserPoolId=pool_id)++ def test_admin_delete_user(self, cognito_client, unique_name):+ """Test AdminDeleteUser removes user."""+ pool_name = f"pytest-pool-{unique_name}"+ username = f"pytest-user-{unique_name}"++ pool_response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = pool_response["UserPool"]["Id"]++ cognito_client.admin_create_user(+ UserPoolId=pool_id,+ Username=username,+ UserAttributes=[{"Name": "email", "Value": "[email protected]"}],+ )++ try:+ cognito_client.admin_delete_user(UserPoolId=pool_id, Username=username)+ # If no exception, test passes+ finally:+ cognito_client.delete_user_pool(UserPoolId=pool_id)+++class TestCognitoAuth:+ """Test Cognito authentication operations."""++ def test_admin_initiate_auth(self, cognito_client, unique_name):+ """Test AdminInitiateAuth returns tokens."""+ pool_name = f"pytest-pool-{unique_name}"+ client_name = f"pytest-client-{unique_name}"+ username = f"pytest-user-{unique_name}"++ pool_response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = pool_response["UserPool"]["Id"]++ client_response = cognito_client.create_user_pool_client(+ UserPoolId=pool_id, ClientName=client_name+ )+ client_id = client_response["UserPoolClient"]["ClientId"]++ cognito_client.admin_create_user(+ UserPoolId=pool_id,+ Username=username,+ UserAttributes=[{"Name": "email", "Value": "[email protected]"}],+ )++ try:+ response = cognito_client.admin_initiate_auth(+ UserPoolId=pool_id,+ ClientId=client_id,+ AuthFlow="ADMIN_NO_SRP_AUTH",+ AuthParameters={"USERNAME": username, "PASSWORD": "any"},+ )+ access_token = response["AuthenticationResult"]["AccessToken"]+ assert access_token+ finally:+ cognito_client.admin_delete_user(UserPoolId=pool_id, Username=username)+ cognito_client.delete_user_pool_client(+ UserPoolId=pool_id, ClientId=client_id+ )+ cognito_client.delete_user_pool(UserPoolId=pool_id)++ def test_get_user(self, cognito_client, unique_name):+ """Test GetUser returns user details from access token."""+ pool_name = f"pytest-pool-{unique_name}"+ client_name = f"pytest-client-{unique_name}"+ username = f"pytest-user-{unique_name}"++ pool_response = cognito_client.create_user_pool(PoolName=pool_name)+ pool_id = pool_response["UserPool"]["Id"]++ client_response = cognito_client.create_user_pool_client(+ UserPoolId=pool_id, ClientName=client_name+ )+ client_id = client_response["UserPoolClient"]["ClientId"]++ cognito_client.admin_create_user(+ UserPoolId=pool_id,+ Username=username,+ UserAttributes=[{"Name": "email", "Value": "[email protected]"}],+ )++ auth_response = cognito_client.admin_initiate_auth(+ UserPoolId=pool_id,+ ClientId=client_id,+ AuthFlow="ADMIN_NO_SRP_AUTH",+ AuthParameters={"USERNAME": username, "PASSWORD": "any"},+ )+ access_token = auth_response["AuthenticationResult"]["AccessToken"]++ try:+ response = cognito_client.get_user(AccessToken=access_token)+ assert response["Username"] == username+ finally:+ cognito_client.admin_delete_user(UserPoolId=pool_id, Username=username)+ cognito_client.delete_user_pool_client(+ UserPoolId=pool_id, ClientId=client_id+ )+ cognito_client.delete_user_pool(UserPoolId=pool_id)diff --git a/compatibility-tests/sdk-test-python/tests/test_dynamodb.py b/compatibility-tests/sdk-test-python/tests/test_dynamodb.pynew file mode 100644index 0000000000..95ef51eb59--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_dynamodb.py@@ -0,0 +1,556 @@+"""DynamoDB table and item integration tests."""++import pytest+++class TestDynamoDBTable:+ """Test DynamoDB table operations."""++ def test_create_table(self, dynamodb_client, unique_name):+ """Test CreateTable creates a table."""+ table_name = f"pytest-ddb-{unique_name}"++ try:+ response = dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ AttributeDefinitions=[+ {"AttributeName": "pk", "AttributeType": "S"},+ {"AttributeName": "sk", "AttributeType": "S"},+ ],+ BillingMode="PAY_PER_REQUEST",+ )+ assert response["TableDescription"]["TableStatus"] == "ACTIVE"+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_describe_table(self, dynamodb_client, test_table):+ """Test DescribeTable returns table info."""+ response = dynamodb_client.describe_table(TableName=test_table)+ assert response["Table"]["TableName"] == test_table++ def test_list_tables(self, dynamodb_client, test_table):+ """Test ListTables includes created table."""+ response = dynamodb_client.list_tables()+ assert test_table in response["TableNames"]++ def test_update_table(self, dynamodb_client, unique_name):+ """Test UpdateTable modifies provisioned throughput."""+ table_name = f"pytest-ddb-{unique_name}"++ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],+ AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],+ ProvisionedThroughput={"ReadCapacityUnits": 5, "WriteCapacityUnits": 5},+ )++ try:+ response = dynamodb_client.update_table(+ TableName=table_name,+ ProvisionedThroughput={"ReadCapacityUnits": 10, "WriteCapacityUnits": 10},+ )+ assert (+ response["TableDescription"]["ProvisionedThroughput"]["ReadCapacityUnits"]+ == 10+ )+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_describe_time_to_live(self, dynamodb_client, test_table):+ """Test DescribeTimeToLive returns TTL status."""+ response = dynamodb_client.describe_time_to_live(TableName=test_table)+ assert response["TimeToLiveDescription"]["TimeToLiveStatus"] == "DISABLED"++ def test_delete_table(self, dynamodb_client, unique_name):+ """Test DeleteTable removes table."""+ table_name = f"pytest-ddb-{unique_name}"++ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],+ AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],+ BillingMode="PAY_PER_REQUEST",+ )++ dynamodb_client.delete_table(TableName=table_name)++ response = dynamodb_client.list_tables()+ assert table_name not in response["TableNames"]+++class TestDynamoDBItem:+ """Test DynamoDB item operations."""++ def test_put_item(self, dynamodb_client, test_table):+ """Test PutItem adds item to table."""+ dynamodb_client.put_item(+ TableName=test_table,+ Item={"pk": {"S": "user-1"}, "data": {"S": "value-1"}},+ )++ response = dynamodb_client.get_item(+ TableName=test_table, Key={"pk": {"S": "user-1"}}+ )+ assert response.get("Item", {}).get("data", {}).get("S") == "value-1"++ def test_get_item(self, dynamodb_client, test_table):+ """Test GetItem retrieves item."""+ dynamodb_client.put_item(+ TableName=test_table,+ Item={"pk": {"S": "user-1"}, "data": {"S": "test-value"}},+ )++ response = dynamodb_client.get_item(+ TableName=test_table, Key={"pk": {"S": "user-1"}}+ )+ assert response.get("Item", {}).get("data", {}).get("S") == "test-value"++ def test_update_item(self, dynamodb_client, test_table):+ """Test UpdateItem modifies item."""+ dynamodb_client.put_item(+ TableName=test_table,+ Item={"pk": {"S": "user-1"}, "data": {"S": "original"}},+ )++ response = dynamodb_client.update_item(+ TableName=test_table,+ Key={"pk": {"S": "user-1"}},+ UpdateExpression="SET #d = :newVal",+ ExpressionAttributeNames={"#d": "data"},+ ExpressionAttributeValues={":newVal": {"S": "updated"}},+ ReturnValues="ALL_NEW",+ )+ assert response["Attributes"]["data"]["S"] == "updated"++ def test_delete_item(self, dynamodb_client, test_table):+ """Test DeleteItem removes item."""+ dynamodb_client.put_item(+ TableName=test_table,+ Item={"pk": {"S": "to-delete"}, "data": {"S": "value"}},+ )++ dynamodb_client.delete_item(+ TableName=test_table, Key={"pk": {"S": "to-delete"}}+ )++ response = dynamodb_client.get_item(+ TableName=test_table, Key={"pk": {"S": "to-delete"}}+ )+ assert "Item" not in response+++class TestDynamoDBQuery:+ """Test DynamoDB query and scan operations."""++ def test_query(self, dynamodb_client, unique_name):+ """Test Query returns matching items."""+ table_name = f"pytest-ddb-{unique_name}"++ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ AttributeDefinitions=[+ {"AttributeName": "pk", "AttributeType": "S"},+ {"AttributeName": "sk", "AttributeType": "S"},+ ],+ BillingMode="PAY_PER_REQUEST",+ )++ try:+ for i in range(1, 4):+ dynamodb_client.put_item(+ TableName=table_name,+ Item={+ "pk": {"S": "user-1"},+ "sk": {"S": f"item-{i}"},+ "data": {"S": f"value-{i}"},+ },+ )++ response = dynamodb_client.query(+ TableName=table_name,+ KeyConditionExpression="pk = :pk",+ ExpressionAttributeValues={":pk": {"S": "user-1"}},+ )+ assert response["Count"] == 3+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_scan(self, dynamodb_client, test_table):+ """Test Scan returns all items."""+ for i in range(1, 4):+ dynamodb_client.put_item(+ TableName=test_table,+ Item={"pk": {"S": f"user-{i}"}, "data": {"S": f"value-{i}"}},+ )++ response = dynamodb_client.scan(TableName=test_table)+ assert response["Count"] == 3+++class TestDynamoDBBatch:+ """Test DynamoDB batch operations."""++ def test_batch_write_item_put(self, dynamodb_client, test_table):+ """Test BatchWriteItem puts multiple items."""+ dynamodb_client.batch_write_item(+ RequestItems={+ test_table: [+ {+ "PutRequest": {+ "Item": {+ "pk": {"S": "batch-1"},+ "data": {"S": "value-1"},+ }+ }+ },+ {+ "PutRequest": {+ "Item": {+ "pk": {"S": "batch-2"},+ "data": {"S": "value-2"},+ }+ }+ },+ ]+ }+ )++ response = dynamodb_client.scan(TableName=test_table)+ assert response["Count"] == 2++ def test_batch_write_item_delete(self, dynamodb_client, test_table):+ """Test BatchWriteItem deletes multiple items."""+ # Setup items+ dynamodb_client.batch_write_item(+ RequestItems={+ test_table: [+ {"PutRequest": {"Item": {"pk": {"S": "del-1"}, "data": {"S": "v1"}}}},+ {"PutRequest": {"Item": {"pk": {"S": "del-2"}, "data": {"S": "v2"}}}},+ ]+ }+ )++ # Delete items+ dynamodb_client.batch_write_item(+ RequestItems={+ test_table: [+ {"DeleteRequest": {"Key": {"pk": {"S": "del-1"}}}},+ {"DeleteRequest": {"Key": {"pk": {"S": "del-2"}}}},+ ]+ }+ )++ response = dynamodb_client.scan(TableName=test_table)+ assert response["Count"] == 0++ def test_batch_get_item(self, dynamodb_client, test_table):+ """Test BatchGetItem retrieves multiple items."""+ dynamodb_client.batch_write_item(+ RequestItems={+ test_table: [+ {"PutRequest": {"Item": {"pk": {"S": "get-1"}, "data": {"S": "v1"}}}},+ {"PutRequest": {"Item": {"pk": {"S": "get-2"}, "data": {"S": "v2"}}}},+ ]+ }+ )++ response = dynamodb_client.batch_get_item(+ RequestItems={+ test_table: {+ "Keys": [+ {"pk": {"S": "get-1"}},+ {"pk": {"S": "get-2"}},+ ]+ }+ }+ )+ items = response["Responses"].get(test_table, [])+ assert len(items) == 2+++class TestDynamoDBTagging:+ """Test DynamoDB table tagging operations."""++ def test_tag_resource(self, dynamodb_client, unique_name):+ """Test TagResource adds tags to table."""+ table_name = f"pytest-ddb-{unique_name}"++ response = dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],+ AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],+ BillingMode="PAY_PER_REQUEST",+ )+ table_arn = response["TableDescription"]["TableArn"]++ try:+ dynamodb_client.tag_resource(+ ResourceArn=table_arn,+ Tags=[+ {"Key": "env", "Value": "test"},+ {"Key": "team", "Value": "backend"},+ ],+ )+ # If no exception, test passes+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_list_tags_of_resource(self, dynamodb_client, unique_name):+ """Test ListTagsOfResource returns tags."""+ table_name = f"pytest-ddb-{unique_name}"++ response = dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],+ AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],+ BillingMode="PAY_PER_REQUEST",+ )+ table_arn = response["TableDescription"]["TableArn"]++ dynamodb_client.tag_resource(+ ResourceArn=table_arn,+ Tags=[+ {"Key": "env", "Value": "test"},+ {"Key": "team", "Value": "backend"},+ ],+ )++ try:+ response = dynamodb_client.list_tags_of_resource(ResourceArn=table_arn)+ tags = {t["Key"]: t["Value"] for t in response["Tags"]}+ assert tags.get("env") == "test"+ assert tags.get("team") == "backend"+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_untag_resource(self, dynamodb_client, unique_name):+ """Test UntagResource removes tags."""+ table_name = f"pytest-ddb-{unique_name}"++ response = dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],+ AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],+ BillingMode="PAY_PER_REQUEST",+ )+ table_arn = response["TableDescription"]["TableArn"]++ dynamodb_client.tag_resource(+ ResourceArn=table_arn,+ Tags=[+ {"Key": "env", "Value": "test"},+ {"Key": "team", "Value": "backend"},+ ],+ )++ try:+ dynamodb_client.untag_resource(ResourceArn=table_arn, TagKeys=["team"])++ response = dynamodb_client.list_tags_of_resource(ResourceArn=table_arn)+ tags = {t["Key"]: t["Value"] for t in response["Tags"]}+ assert tags.get("env") == "test"+ assert "team" not in tags+ finally:+ dynamodb_client.delete_table(TableName=table_name)+++class TestDynamoDBGSI:+ """Test DynamoDB Global Secondary Index and Local Secondary Index operations."""++ def test_create_table_with_gsi_and_lsi(self, dynamodb_client, unique_name):+ """Test CreateTable with GSI and LSI."""+ table_name = f"pytest-gsi-{unique_name}"++ try:+ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ AttributeDefinitions=[+ {"AttributeName": "pk", "AttributeType": "S"},+ {"AttributeName": "sk", "AttributeType": "S"},+ {"AttributeName": "gsiPk", "AttributeType": "S"},+ {"AttributeName": "lsiSk", "AttributeType": "S"},+ ],+ GlobalSecondaryIndexes=[+ {+ "IndexName": "gsi-1",+ "KeySchema": [+ {"AttributeName": "gsiPk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ "Projection": {"ProjectionType": "ALL"},+ "ProvisionedThroughput": {+ "ReadCapacityUnits": 5,+ "WriteCapacityUnits": 5,+ },+ }+ ],+ LocalSecondaryIndexes=[+ {+ "IndexName": "lsi-1",+ "KeySchema": [+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "lsiSk", "KeyType": "RANGE"},+ ],+ "Projection": {"ProjectionType": "KEYS_ONLY"},+ }+ ],+ ProvisionedThroughput={"ReadCapacityUnits": 5, "WriteCapacityUnits": 5},+ )++ # Verify indexes exist+ desc = dynamodb_client.describe_table(TableName=table_name)["Table"]+ gsis = desc.get("GlobalSecondaryIndexes", [])+ lsis = desc.get("LocalSecondaryIndexes", [])++ assert len(gsis) == 1+ assert gsis[0]["IndexName"] == "gsi-1"+ assert gsis[0]["Projection"]["ProjectionType"] == "ALL"++ assert len(lsis) == 1+ assert lsis[0]["IndexName"] == "lsi-1"+ assert lsis[0]["Projection"]["ProjectionType"] == "KEYS_ONLY"+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_query_gsi_sparse_index(self, dynamodb_client, unique_name):+ """Test querying GSI excludes items without GSI key (sparse index)."""+ table_name = f"pytest-gsi-{unique_name}"++ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ AttributeDefinitions=[+ {"AttributeName": "pk", "AttributeType": "S"},+ {"AttributeName": "sk", "AttributeType": "S"},+ {"AttributeName": "gsiPk", "AttributeType": "S"},+ ],+ GlobalSecondaryIndexes=[+ {+ "IndexName": "gsi-1",+ "KeySchema": [+ {"AttributeName": "gsiPk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ "Projection": {"ProjectionType": "ALL"},+ "ProvisionedThroughput": {+ "ReadCapacityUnits": 5,+ "WriteCapacityUnits": 5,+ },+ }+ ],+ ProvisionedThroughput={"ReadCapacityUnits": 5, "WriteCapacityUnits": 5},+ )++ try:+ # Put 2 items with gsiPk+ dynamodb_client.put_item(+ TableName=table_name,+ Item={+ "pk": {"S": "item-1"},+ "sk": {"S": "rev-1"},+ "gsiPk": {"S": "group-A"},+ },+ )+ dynamodb_client.put_item(+ TableName=table_name,+ Item={+ "pk": {"S": "item-2"},+ "sk": {"S": "rev-1"},+ "gsiPk": {"S": "group-A"},+ },+ )+ # Put 1 item without gsiPk (sparse)+ dynamodb_client.put_item(+ TableName=table_name,+ Item={"pk": {"S": "item-3"}, "sk": {"S": "rev-1"}, "data": {"S": "no-gsi"}},+ )++ # Query GSI - should return only the 2 items with gsiPk+ resp = dynamodb_client.query(+ TableName=table_name,+ IndexName="gsi-1",+ KeyConditionExpression="gsiPk = :gpk",+ ExpressionAttributeValues={":gpk": {"S": "group-A"}},+ )++ assert resp["Count"] == 2+ pks = {item["pk"]["S"] for item in resp["Items"]}+ assert "item-3" not in pks+ finally:+ dynamodb_client.delete_table(TableName=table_name)++ def test_query_lsi(self, dynamodb_client, unique_name):+ """Test querying Local Secondary Index."""+ table_name = f"pytest-lsi-{unique_name}"++ dynamodb_client.create_table(+ TableName=table_name,+ KeySchema=[+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "sk", "KeyType": "RANGE"},+ ],+ AttributeDefinitions=[+ {"AttributeName": "pk", "AttributeType": "S"},+ {"AttributeName": "sk", "AttributeType": "S"},+ {"AttributeName": "lsiSk", "AttributeType": "S"},+ ],+ LocalSecondaryIndexes=[+ {+ "IndexName": "lsi-1",+ "KeySchema": [+ {"AttributeName": "pk", "KeyType": "HASH"},+ {"AttributeName": "lsiSk", "KeyType": "RANGE"},+ ],+ "Projection": {"ProjectionType": "KEYS_ONLY"},+ }+ ],+ ProvisionedThroughput={"ReadCapacityUnits": 5, "WriteCapacityUnits": 5},+ )++ try:+ dynamodb_client.put_item(+ TableName=table_name,+ Item={+ "pk": {"S": "item-1"},+ "sk": {"S": "rev-1"},+ "lsiSk": {"S": "2024-01-01"},+ },+ )+ dynamodb_client.put_item(+ TableName=table_name,+ Item={+ "pk": {"S": "item-1"},+ "sk": {"S": "rev-2"},+ "lsiSk": {"S": "2024-01-02"},+ },+ )++ # Query LSI with range condition+ resp = dynamodb_client.query(+ TableName=table_name,+ IndexName="lsi-1",+ KeyConditionExpression="pk = :pk AND lsiSk > :d",+ ExpressionAttributeValues={+ ":pk": {"S": "item-1"},+ ":d": {"S": "2024-01-00"},+ },+ )++ assert resp["Count"] == 2+ finally:+ dynamodb_client.delete_table(TableName=table_name)diff --git a/compatibility-tests/sdk-test-python/tests/test_iam.py b/compatibility-tests/sdk-test-python/tests/test_iam.pynew file mode 100644index 0000000000..eac4838439--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_iam.py@@ -0,0 +1,410 @@+"""IAM integration tests."""++import json++import pytest+from botocore.exceptions import ClientError+++TRUST_POLICY = json.dumps(+ {+ "Version": "2012-10-17",+ "Statement": [+ {+ "Effect": "Allow",+ "Principal": {"Service": "lambda.amazonaws.com"},+ "Action": "sts:AssumeRole",+ }+ ],+ }+)++POLICY_DOC = json.dumps(+ {+ "Version": "2012-10-17",+ "Statement": [{"Effect": "Allow", "Action": "s3:GetObject", "Resource": "*"}],+ }+)+++class TestIAMUser:+ """Test IAM user operations."""++ def test_create_user(self, iam_client, unique_name):+ """Test CreateUser creates a user."""+ user_name = f"pytest-user-{unique_name}"++ try:+ response = iam_client.create_user(UserName=user_name, Path="/")+ assert response["User"]["UserName"] == user_name+ assert response["User"]["Arn"].endswith(user_name)+ finally:+ iam_client.delete_user(UserName=user_name)++ def test_get_user(self, iam_client, unique_name):+ """Test GetUser returns user details."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ try:+ response = iam_client.get_user(UserName=user_name)+ assert response["User"]["UserName"] == user_name+ finally:+ iam_client.delete_user(UserName=user_name)++ def test_list_users(self, iam_client, unique_name):+ """Test ListUsers includes created user."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ try:+ response = iam_client.list_users()+ assert any(u["UserName"] == user_name for u in response["Users"])+ finally:+ iam_client.delete_user(UserName=user_name)++ def test_get_user_not_found(self, iam_client):+ """Test GetUser returns 404 for non-existent user."""+ with pytest.raises(ClientError) as exc_info:+ iam_client.get_user(UserName="nonexistent-user-pytest-xyz")+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 404+++class TestIAMUserTags:+ """Test IAM user tagging operations."""++ def test_tag_user(self, iam_client, unique_name):+ """Test TagUser adds tags to user."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ try:+ iam_client.tag_user(+ UserName=user_name, Tags=[{"Key": "env", "Value": "sdk-test"}]+ )+ # If no exception, test passes+ finally:+ iam_client.delete_user(UserName=user_name)++ def test_list_user_tags(self, iam_client, unique_name):+ """Test ListUserTags returns user tags."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ iam_client.tag_user(+ UserName=user_name, Tags=[{"Key": "env", "Value": "sdk-test"}]+ )+ try:+ response = iam_client.list_user_tags(UserName=user_name)+ assert any(t["Key"] == "env" for t in response["Tags"])+ finally:+ iam_client.delete_user(UserName=user_name)++ def test_untag_user(self, iam_client, unique_name):+ """Test UntagUser removes tags from user."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ iam_client.tag_user(+ UserName=user_name, Tags=[{"Key": "env", "Value": "sdk-test"}]+ )+ try:+ iam_client.untag_user(UserName=user_name, TagKeys=["env"])+ # If no exception, test passes+ finally:+ iam_client.delete_user(UserName=user_name)+++class TestIAMAccessKey:+ """Test IAM access key operations."""++ def test_create_access_key(self, iam_client, unique_name):+ """Test CreateAccessKey creates access key."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ try:+ response = iam_client.create_access_key(UserName=user_name)+ key_id = response["AccessKey"]["AccessKeyId"]+ assert key_id.startswith("AKIA")+ assert response["AccessKey"]["Status"] == "Active"++ # Cleanup+ iam_client.delete_access_key(UserName=user_name, AccessKeyId=key_id)+ finally:+ iam_client.delete_user(UserName=user_name)++ def test_list_access_keys(self, iam_client, unique_name):+ """Test ListAccessKeys returns access keys."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ response = iam_client.create_access_key(UserName=user_name)+ key_id = response["AccessKey"]["AccessKeyId"]++ try:+ response = iam_client.list_access_keys(UserName=user_name)+ assert len(response["AccessKeyMetadata"]) > 0+ finally:+ iam_client.delete_access_key(UserName=user_name, AccessKeyId=key_id)+ iam_client.delete_user(UserName=user_name)++ def test_update_access_key(self, iam_client, unique_name):+ """Test UpdateAccessKey changes key status."""+ user_name = f"pytest-user-{unique_name}"++ iam_client.create_user(UserName=user_name)+ response = iam_client.create_access_key(UserName=user_name)+ key_id = response["AccessKey"]["AccessKeyId"]++ try:+ iam_client.update_access_key(+ UserName=user_name, AccessKeyId=key_id, Status="Inactive"+ )+ # If no exception, test passes+ finally:+ iam_client.delete_access_key(UserName=user_name, AccessKeyId=key_id)+ iam_client.delete_user(UserName=user_name)+++class TestIAMGroup:+ """Test IAM group operations."""++ def test_create_group(self, iam_client, unique_name):+ """Test CreateGroup creates a group."""+ group_name = f"pytest-group-{unique_name}"++ try:+ response = iam_client.create_group(GroupName=group_name)+ assert response["Group"]["GroupName"] == group_name+ finally:+ iam_client.delete_group(GroupName=group_name)++ def test_add_user_to_group(self, iam_client, unique_name):+ """Test AddUserToGroup adds user to group."""+ user_name = f"pytest-user-{unique_name}"+ group_name = f"pytest-group-{unique_name}"++ iam_client.create_user(UserName=user_name)+ iam_client.create_group(GroupName=group_name)++ try:+ iam_client.add_user_to_group(GroupName=group_name, UserName=user_name)+ # If no exception, test passes+ finally:+ iam_client.remove_user_from_group(GroupName=group_name, UserName=user_name)+ iam_client.delete_group(GroupName=group_name)+ iam_client.delete_user(UserName=user_name)++ def test_get_group(self, iam_client, unique_name):+ """Test GetGroup returns group with users."""+ user_name = f"pytest-user-{unique_name}"+ group_name = f"pytest-group-{unique_name}"++ iam_client.create_user(UserName=user_name)+ iam_client.create_group(GroupName=group_name)+ iam_client.add_user_to_group(GroupName=group_name, UserName=user_name)++ try:+ response = iam_client.get_group(GroupName=group_name)+ assert any(u["UserName"] == user_name for u in response["Users"])+ finally:+ iam_client.remove_user_from_group(GroupName=group_name, UserName=user_name)+ iam_client.delete_group(GroupName=group_name)+ iam_client.delete_user(UserName=user_name)++ def test_list_groups_for_user(self, iam_client, unique_name):+ """Test ListGroupsForUser returns user's groups."""+ user_name = f"pytest-user-{unique_name}"+ group_name = f"pytest-group-{unique_name}"++ iam_client.create_user(UserName=user_name)+ iam_client.create_group(GroupName=group_name)+ iam_client.add_user_to_group(GroupName=group_name, UserName=user_name)++ try:+ response = iam_client.list_groups_for_user(UserName=user_name)+ assert any(g["GroupName"] == group_name for g in response["Groups"])+ finally:+ iam_client.remove_user_from_group(GroupName=group_name, UserName=user_name)+ iam_client.delete_group(GroupName=group_name)+ iam_client.delete_user(UserName=user_name)+++class TestIAMRole:+ """Test IAM role operations."""++ def test_create_role(self, iam_client, unique_name):+ """Test CreateRole creates a role."""+ role_name = f"pytest-role-{unique_name}"++ try:+ response = iam_client.create_role(+ RoleName=role_name,+ AssumeRolePolicyDocument=TRUST_POLICY,+ Description="pytest test role",+ )+ assert response["Role"]["RoleName"] == role_name+ assert role_name in response["Role"]["Arn"]+ finally:+ iam_client.delete_role(RoleName=role_name)++ def test_get_role(self, iam_client, unique_name):+ """Test GetRole returns role details."""+ role_name = f"pytest-role-{unique_name}"++ iam_client.create_role(+ RoleName=role_name, AssumeRolePolicyDocument=TRUST_POLICY+ )+ try:+ response = iam_client.get_role(RoleName=role_name)+ assert response["Role"]["RoleName"] == role_name+ finally:+ iam_client.delete_role(RoleName=role_name)++ def test_list_roles(self, iam_client, unique_name):+ """Test ListRoles includes created role."""+ role_name = f"pytest-role-{unique_name}"++ iam_client.create_role(+ RoleName=role_name, AssumeRolePolicyDocument=TRUST_POLICY+ )+ try:+ response = iam_client.list_roles()+ assert any(r["RoleName"] == role_name for r in response["Roles"])+ finally:+ iam_client.delete_role(RoleName=role_name)+++class TestIAMPolicy:+ """Test IAM policy operations."""++ def test_create_policy(self, iam_client, unique_name):+ """Test CreatePolicy creates a policy."""+ policy_name = f"pytest-policy-{unique_name}"++ try:+ response = iam_client.create_policy(+ PolicyName=policy_name,+ PolicyDocument=POLICY_DOC,+ Description="pytest test policy",+ )+ policy_arn = response["Policy"]["Arn"]+ assert response["Policy"]["PolicyName"] == policy_name+ assert policy_arn+ finally:+ iam_client.delete_policy(PolicyArn=response["Policy"]["Arn"])++ def test_get_policy(self, iam_client, unique_name):+ """Test GetPolicy returns policy details."""+ policy_name = f"pytest-policy-{unique_name}"++ response = iam_client.create_policy(+ PolicyName=policy_name, PolicyDocument=POLICY_DOC+ )+ policy_arn = response["Policy"]["Arn"]++ try:+ response = iam_client.get_policy(PolicyArn=policy_arn)+ assert response["Policy"]["PolicyName"] == policy_name+ finally:+ iam_client.delete_policy(PolicyArn=policy_arn)++ def test_attach_role_policy(self, iam_client, unique_name):+ """Test AttachRolePolicy attaches policy to role."""+ role_name = f"pytest-role-{unique_name}"+ policy_name = f"pytest-policy-{unique_name}"++ iam_client.create_role(+ RoleName=role_name, AssumeRolePolicyDocument=TRUST_POLICY+ )+ response = iam_client.create_policy(+ PolicyName=policy_name, PolicyDocument=POLICY_DOC+ )+ policy_arn = response["Policy"]["Arn"]++ try:+ iam_client.attach_role_policy(RoleName=role_name, PolicyArn=policy_arn)++ response = iam_client.list_attached_role_policies(RoleName=role_name)+ assert any(+ p["PolicyArn"] == policy_arn for p in response["AttachedPolicies"]+ )+ finally:+ iam_client.detach_role_policy(RoleName=role_name, PolicyArn=policy_arn)+ iam_client.delete_role(RoleName=role_name)+ iam_client.delete_policy(PolicyArn=policy_arn)++ def test_put_role_policy(self, iam_client, unique_name):+ """Test PutRolePolicy adds inline policy to role."""+ role_name = f"pytest-role-{unique_name}"+ inline_policy_name = "inline-exec"++ iam_client.create_role(+ RoleName=role_name, AssumeRolePolicyDocument=TRUST_POLICY+ )++ try:+ iam_client.put_role_policy(+ RoleName=role_name,+ PolicyName=inline_policy_name,+ PolicyDocument='{"Version":"2012-10-17"}',+ )++ response = iam_client.get_role_policy(+ RoleName=role_name, PolicyName=inline_policy_name+ )+ assert response["PolicyName"] == inline_policy_name++ response = iam_client.list_role_policies(RoleName=role_name)+ assert inline_policy_name in response["PolicyNames"]+ finally:+ iam_client.delete_role_policy(+ RoleName=role_name, PolicyName=inline_policy_name+ )+ iam_client.delete_role(RoleName=role_name)+++class TestIAMUserPolicy:+ """Test IAM user policy operations."""++ def test_attach_user_policy(self, iam_client, unique_name):+ """Test AttachUserPolicy attaches managed policy to user."""+ user_name = f"pytest-user-{unique_name}"+ policy_name = f"pytest-policy-{unique_name}"++ iam_client.create_user(UserName=user_name)+ response = iam_client.create_policy(+ PolicyName=policy_name, PolicyDocument=POLICY_DOC+ )+ policy_arn = response["Policy"]["Arn"]++ try:+ iam_client.attach_user_policy(UserName=user_name, PolicyArn=policy_arn)+ # If no exception, attachment succeeded+ finally:+ iam_client.detach_user_policy(UserName=user_name, PolicyArn=policy_arn)+ iam_client.delete_user(UserName=user_name)+ iam_client.delete_policy(PolicyArn=policy_arn)++ def test_list_attached_user_policies(self, iam_client, unique_name):+ """Test ListAttachedUserPolicies returns attached managed policies."""+ user_name = f"pytest-user-{unique_name}"+ policy_name = f"pytest-policy-{unique_name}"++ iam_client.create_user(UserName=user_name)+ response = iam_client.create_policy(+ PolicyName=policy_name, PolicyDocument=POLICY_DOC+ )+ policy_arn = response["Policy"]["Arn"]+ iam_client.attach_user_policy(UserName=user_name, PolicyArn=policy_arn)++ try:+ response = iam_client.list_attached_user_policies(UserName=user_name)+ assert any(+ p["PolicyArn"] == policy_arn for p in response["AttachedPolicies"]+ )+ finally:+ iam_client.detach_user_policy(UserName=user_name, PolicyArn=policy_arn)+ iam_client.delete_user(UserName=user_name)+ iam_client.delete_policy(PolicyArn=policy_arn)diff --git a/compatibility-tests/sdk-test-python/tests/test_kinesis.py b/compatibility-tests/sdk-test-python/tests/test_kinesis.pynew file mode 100644index 0000000000..b55be6ed93--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_kinesis.py@@ -0,0 +1,161 @@+"""Kinesis integration tests."""++import os++import pytest+++# Disable CBOR — use JSON 1.1 as the emulator supports+os.environ["AWS_CBOR_DISABLE"] = "true"+++class TestKinesisStream:+ """Test Kinesis stream operations."""++ def test_create_stream(self, kinesis_client, unique_name):+ """Test CreateStream creates a stream."""+ stream_name = f"pytest-stream-{unique_name}"++ try:+ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)+ # If no exception, test passes+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)++ def test_list_streams(self, kinesis_client, unique_name):+ """Test ListStreams includes created stream."""+ stream_name = f"pytest-stream-{unique_name}"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ response = kinesis_client.list_streams()+ assert stream_name in response["StreamNames"]+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)++ def test_describe_stream(self, kinesis_client, unique_name):+ """Test DescribeStream returns stream details."""+ stream_name = f"pytest-stream-{unique_name}"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ response = kinesis_client.describe_stream(StreamName=stream_name)+ assert response["StreamDescription"]["StreamName"] == stream_name+ assert response["StreamDescription"]["Shards"]+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)++ def test_describe_stream_summary(self, kinesis_client, unique_name):+ """Test DescribeStreamSummary returns summary."""+ stream_name = f"pytest-stream-{unique_name}"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ response = kinesis_client.describe_stream_summary(StreamName=stream_name)+ assert response["StreamDescriptionSummary"]["StreamName"] == stream_name+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)++ def test_delete_stream(self, kinesis_client, unique_name):+ """Test DeleteStream removes stream."""+ stream_name = f"pytest-stream-{unique_name}"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)+ kinesis_client.delete_stream(StreamName=stream_name)++ response = kinesis_client.list_streams()+ assert stream_name not in response.get("StreamNames", [])+++class TestKinesisRecords:+ """Test Kinesis record operations."""++ def test_put_record(self, kinesis_client, unique_name):+ """Test PutRecord writes record to stream."""+ stream_name = f"pytest-stream-{unique_name}"+ data = b"hello kinesis pytest"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ response = kinesis_client.put_record(+ StreamName=stream_name, Data=data, PartitionKey="pk1"+ )+ assert response.get("SequenceNumber")+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)++ def test_get_records(self, kinesis_client, unique_name):+ """Test GetRecords retrieves records from stream."""+ stream_name = f"pytest-stream-{unique_name}"+ data = b"hello kinesis pytest"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ # Put a record+ kinesis_client.put_record(+ StreamName=stream_name, Data=data, PartitionKey="pk1"+ )++ # Get shard iterator+ describe_response = kinesis_client.describe_stream(StreamName=stream_name)+ shard_id = describe_response["StreamDescription"]["Shards"][0]["ShardId"]++ iterator_response = kinesis_client.get_shard_iterator(+ StreamName=stream_name,+ ShardId=shard_id,+ ShardIteratorType="TRIM_HORIZON",+ )+ shard_iterator = iterator_response["ShardIterator"]++ # Get records+ response = kinesis_client.get_records(ShardIterator=shard_iterator)+ found = any(rec["Data"] == data for rec in response["Records"])+ assert found+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)++ def test_put_records_batch(self, kinesis_client, unique_name):+ """Test PutRecords writes multiple records."""+ stream_name = f"pytest-stream-{unique_name}"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ response = kinesis_client.put_records(+ StreamName=stream_name,+ Records=[+ {"Data": b"batch1", "PartitionKey": "pk1"},+ {"Data": b"batch2", "PartitionKey": "pk2"},+ ],+ )+ assert response["FailedRecordCount"] == 0+ assert len(response["Records"]) == 2+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)+++class TestKinesisTags:+ """Test Kinesis tagging operations."""++ def test_add_tags_to_stream(self, kinesis_client, unique_name):+ """Test AddTagsToStream adds tags."""+ stream_name = f"pytest-stream-{unique_name}"++ kinesis_client.create_stream(StreamName=stream_name, ShardCount=1)++ try:+ kinesis_client.add_tags_to_stream(+ StreamName=stream_name, Tags={"project": "floci"}+ )++ response = kinesis_client.list_tags_for_stream(StreamName=stream_name)+ assert any(+ t["Key"] == "project" and t["Value"] == "floci" for t in response["Tags"]+ )+ finally:+ kinesis_client.delete_stream(StreamName=stream_name)diff --git a/compatibility-tests/sdk-test-python/tests/test_kms.py b/compatibility-tests/sdk-test-python/tests/test_kms.pynew file mode 100644index 0000000000..c53b10fba0--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_kms.py@@ -0,0 +1,226 @@+"""KMS integration tests."""++import pytest+++class TestKMSKey:+ """Test KMS key operations."""++ def test_create_key(self, kms_client):+ """Test CreateKey creates a key."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]+ assert key_id++ # Cleanup+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_describe_key(self, kms_client):+ """Test DescribeKey returns key metadata."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]++ try:+ response = kms_client.describe_key(KeyId=key_id)+ assert response["KeyMetadata"]["KeyId"] == key_id+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_schedule_key_deletion(self, kms_client):+ """Test ScheduleKeyDeletion marks key for deletion."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]++ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ response = kms_client.describe_key(KeyId=key_id)+ assert response["KeyMetadata"]["KeyState"] == "PendingDeletion"+++class TestKMSAlias:+ """Test KMS alias operations."""++ def test_create_alias(self, kms_client, unique_name):+ """Test CreateAlias creates an alias."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]+ alias_name = f"alias/pytest-key-{unique_name}"++ try:+ kms_client.create_alias(AliasName=alias_name, TargetKeyId=key_id)+ # If no exception, test passes+ finally:+ kms_client.delete_alias(AliasName=alias_name)+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_list_aliases(self, kms_client, unique_name):+ """Test ListAliases returns aliases."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]+ alias_name = f"alias/pytest-key-{unique_name}"++ kms_client.create_alias(AliasName=alias_name, TargetKeyId=key_id)++ try:+ response = kms_client.list_aliases()+ assert any(a["AliasName"] == alias_name for a in response["Aliases"])+ finally:+ kms_client.delete_alias(AliasName=alias_name)+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_delete_alias(self, kms_client, unique_name):+ """Test DeleteAlias removes alias."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]+ alias_name = f"alias/pytest-key-{unique_name}"++ kms_client.create_alias(AliasName=alias_name, TargetKeyId=key_id)+ kms_client.delete_alias(AliasName=alias_name)++ response = kms_client.list_aliases()+ assert not any(a["AliasName"] == alias_name for a in response.get("Aliases", []))++ # Cleanup+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)+++class TestKMSEncryption:+ """Test KMS encryption operations."""++ def test_encrypt_decrypt(self, kms_client):+ """Test Encrypt and Decrypt roundtrip."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]+ plaintext = b"secret data"++ try:+ encrypt_response = kms_client.encrypt(KeyId=key_id, Plaintext=plaintext)+ ciphertext = encrypt_response["CiphertextBlob"]+ assert ciphertext++ decrypt_response = kms_client.decrypt(CiphertextBlob=ciphertext)+ assert decrypt_response["Plaintext"] == plaintext+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_encrypt_using_alias(self, kms_client, unique_name):+ """Test Encrypt using alias."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]+ alias_name = f"alias/pytest-key-{unique_name}"++ kms_client.create_alias(AliasName=alias_name, TargetKeyId=key_id)++ try:+ response = kms_client.encrypt(KeyId=alias_name, Plaintext=b"alias data")+ assert response.get("CiphertextBlob")+ finally:+ kms_client.delete_alias(AliasName=alias_name)+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_generate_data_key(self, kms_client):+ """Test GenerateDataKey generates plaintext and ciphertext."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]++ try:+ response = kms_client.generate_data_key(KeyId=key_id, KeySpec="AES_256")+ assert response.get("Plaintext")+ assert response.get("CiphertextBlob")+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_generate_data_key_without_plaintext(self, kms_client):+ """Test GenerateDataKeyWithoutPlaintext returns only ciphertext."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]++ try:+ response = kms_client.generate_data_key_without_plaintext(+ KeyId=key_id, KeySpec="AES_256"+ )+ assert response.get("CiphertextBlob")+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)++ def test_re_encrypt(self, kms_client):+ """Test ReEncrypt re-encrypts data with different key."""+ response1 = kms_client.create_key(Description="pytest-test-key-1")+ key_id1 = response1["KeyMetadata"]["KeyId"]+ response2 = kms_client.create_key(Description="pytest-test-key-2")+ key_id2 = response2["KeyMetadata"]["KeyId"]++ plaintext = b"secret data"+ encrypt_response = kms_client.encrypt(KeyId=key_id1, Plaintext=plaintext)+ ciphertext = encrypt_response["CiphertextBlob"]++ try:+ reencrypt_response = kms_client.re_encrypt(+ CiphertextBlob=ciphertext, DestinationKeyId=key_id2+ )+ new_ciphertext = reencrypt_response["CiphertextBlob"]+ assert new_ciphertext++ decrypt_response = kms_client.decrypt(CiphertextBlob=new_ciphertext)+ assert decrypt_response["Plaintext"] == plaintext+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id1, PendingWindowInDays=7)+ kms_client.schedule_key_deletion(KeyId=key_id2, PendingWindowInDays=7)+++class TestKMSSigning:+ """Test KMS signing operations."""++ def test_sign_and_verify(self, kms_client):+ """Test Sign and Verify with RSA key."""+ # Create an asymmetric signing key+ response = kms_client.create_key(+ Description="pytest-signing-key",+ KeyUsage="SIGN_VERIFY",+ KeySpec="RSA_2048",+ )+ key_id = response["KeyMetadata"]["KeyId"]+ message = b"message to sign"++ try:+ # Sign the message+ sign_response = kms_client.sign(+ KeyId=key_id,+ Message=message,+ SigningAlgorithm="RSASSA_PSS_SHA_256",+ )+ signature = sign_response["Signature"]+ assert signature++ # Verify the signature+ verify_response = kms_client.verify(+ KeyId=key_id,+ Message=message,+ Signature=signature,+ SigningAlgorithm="RSASSA_PSS_SHA_256",+ )+ assert verify_response["SignatureValid"]+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)+++class TestKMSTagging:+ """Test KMS tagging operations."""++ def test_tag_resource(self, kms_client):+ """Test TagResource and ListResourceTags."""+ response = kms_client.create_key(Description="pytest-test-key")+ key_id = response["KeyMetadata"]["KeyId"]++ try:+ kms_client.tag_resource(+ KeyId=key_id, Tags=[{"TagKey": "Project", "TagValue": "Floci"}]+ )++ response = kms_client.list_resource_tags(KeyId=key_id)+ assert any(+ t["TagKey"] == "Project" and t["TagValue"] == "Floci"+ for t in response["Tags"]+ )+ finally:+ kms_client.schedule_key_deletion(KeyId=key_id, PendingWindowInDays=7)diff --git a/compatibility-tests/sdk-test-python/tests/test_lambda.py b/compatibility-tests/sdk-test-python/tests/test_lambda.pynew file mode 100644index 0000000000..adf3ae57b0--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_lambda.py@@ -0,0 +1,222 @@+"""Lambda function integration tests."""++import pytest+from botocore.exceptions import ClientError+++class TestLambdaFunction:+ """Test Lambda function operations."""++ def test_create_function(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test CreateFunction creates a function."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ try:+ response = lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Timeout=30,+ MemorySize=256,+ Code={"ZipFile": minimal_lambda_zip},+ )+ assert response["FunctionName"] == fn_name+ assert response["FunctionArn"]+ assert fn_name in response["FunctionArn"]+ assert response["State"] == "Active"+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_get_function(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test GetFunction returns function details."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ response = lambda_client.get_function(FunctionName=fn_name)+ assert response["Configuration"]["FunctionName"] == fn_name+ assert response["Configuration"]["Role"] == role+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_get_function_configuration(+ self, lambda_client, minimal_lambda_zip, unique_name+ ):+ """Test GetFunctionConfiguration returns configuration."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Timeout=30,+ MemorySize=256,+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ response = lambda_client.get_function_configuration(FunctionName=fn_name)+ assert response["Timeout"] == 30+ assert response["MemorySize"] == 256+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_list_functions(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test ListFunctions includes created function."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ response = lambda_client.list_functions()+ assert any(f["FunctionName"] == fn_name for f in response["Functions"])+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_update_function_code(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test UpdateFunctionCode updates code."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ response = lambda_client.update_function_code(+ FunctionName=fn_name, ZipFile=minimal_lambda_zip+ )+ assert response["FunctionName"] == fn_name+ assert response.get("RevisionId")+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_delete_function(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test DeleteFunction removes function."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ lambda_client.delete_function(FunctionName=fn_name)++ with pytest.raises(ClientError) as exc_info:+ lambda_client.get_function(FunctionName=fn_name)+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 404+++class TestLambdaInvoke:+ """Test Lambda invocation."""++ def test_invoke_dry_run(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test Invoke with DryRun returns 204."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ response = lambda_client.invoke(+ FunctionName=fn_name,+ InvocationType="DryRun",+ Payload=b'{"key":"value"}',+ )+ assert response["StatusCode"] == 204+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_invoke_event_async(self, lambda_client, minimal_lambda_zip, unique_name):+ """Test Invoke with Event type returns 202."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ response = lambda_client.invoke(+ FunctionName=fn_name,+ InvocationType="Event",+ Payload=b'{"key":"async"}',+ )+ assert response["StatusCode"] == 202+ finally:+ lambda_client.delete_function(FunctionName=fn_name)+++class TestLambdaErrors:+ """Test Lambda error handling."""++ def test_create_function_duplicate(+ self, lambda_client, minimal_lambda_zip, unique_name+ ):+ """Test CreateFunction returns 409 for duplicate."""+ fn_name = f"pytest-lambda-{unique_name}"+ role = "arn:aws:iam::000000000000:role/lambda-role"++ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )++ try:+ with pytest.raises(ClientError) as exc_info:+ lambda_client.create_function(+ FunctionName=fn_name,+ Runtime="nodejs20.x",+ Role=role,+ Handler="index.handler",+ Code={"ZipFile": minimal_lambda_zip},+ )+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 409+ finally:+ lambda_client.delete_function(FunctionName=fn_name)++ def test_get_function_not_found(self, lambda_client):+ """Test GetFunction returns 404 for non-existent function."""+ with pytest.raises(ClientError) as exc_info:+ lambda_client.get_function(FunctionName="does-not-exist-pytest")+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 404diff --git a/compatibility-tests/sdk-test-python/tests/test_s3.py b/compatibility-tests/sdk-test-python/tests/test_s3.pynew file mode 100644index 0000000000..2292957d5b--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_s3.py@@ -0,0 +1,332 @@+"""S3 bucket and object integration tests."""++import pytest+from botocore.exceptions import ClientError+++class TestS3Bucket:+ """Test S3 bucket operations."""++ def test_create_bucket(self, s3_client, unique_name):+ """Test CreateBucket creates a bucket."""+ bucket_name = f"pytest-s3-{unique_name}"++ try:+ s3_client.create_bucket(Bucket=bucket_name)+ # Verify bucket exists+ s3_client.head_bucket(Bucket=bucket_name)+ finally:+ s3_client.delete_bucket(Bucket=bucket_name)++ def test_create_bucket_with_location_constraint(self, s3_client, unique_name):+ """Test CreateBucket with LocationConstraint (regression: issue #11)."""+ bucket_name = f"pytest-s3-eu-{unique_name}"++ try:+ s3_client.create_bucket(+ Bucket=bucket_name,+ CreateBucketConfiguration={"LocationConstraint": "eu-central-1"},+ )++ response = s3_client.get_bucket_location(Bucket=bucket_name)+ assert response.get("LocationConstraint") == "eu-central-1"+ finally:+ s3_client.delete_bucket(Bucket=bucket_name)++ def test_list_buckets(self, s3_client, unique_name):+ """Test ListBuckets returns created bucket."""+ bucket_name = f"pytest-s3-{unique_name}"++ s3_client.create_bucket(Bucket=bucket_name)+ try:+ response = s3_client.list_buckets()+ assert any(b["Name"] == bucket_name for b in response["Buckets"])+ finally:+ s3_client.delete_bucket(Bucket=bucket_name)++ def test_head_bucket(self, s3_client, test_bucket):+ """Test HeadBucket succeeds for existing bucket."""+ s3_client.head_bucket(Bucket=test_bucket)+ # If no exception, test passes++ def test_head_bucket_non_existent(self, s3_client):+ """Test HeadBucket returns 404 for non-existent bucket."""+ with pytest.raises(ClientError) as exc_info:+ s3_client.head_bucket(Bucket="non-existent-bucket-pytest-xyz")+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 404++ def test_get_bucket_location(self, s3_client, test_bucket):+ """Test GetBucketLocation returns location constraint."""+ response = s3_client.get_bucket_location(Bucket=test_bucket)+ assert "LocationConstraint" in response++ def test_delete_bucket(self, s3_client, unique_name):+ """Test DeleteBucket removes bucket."""+ bucket_name = f"pytest-s3-{unique_name}"++ s3_client.create_bucket(Bucket=bucket_name)+ s3_client.delete_bucket(Bucket=bucket_name)++ with pytest.raises(ClientError):+ s3_client.head_bucket(Bucket=bucket_name)+++class TestS3Object:+ """Test S3 object operations."""++ def test_put_object(self, s3_client, test_bucket):+ """Test PutObject uploads object."""+ key = "test-file.txt"+ content = b"Hello from pytest!"++ s3_client.put_object(+ Bucket=test_bucket, Key=key, Body=content, ContentType="text/plain"+ )++ # Verify object exists+ response = s3_client.head_object(Bucket=test_bucket, Key=key)+ assert response["ContentLength"] == len(content)++ def test_list_objects(self, s3_client, test_bucket):+ """Test ListObjectsV2 returns uploaded objects."""+ key = "test-file.txt"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=b"content")++ response = s3_client.list_objects_v2(Bucket=test_bucket)+ assert any(o["Key"] == key for o in response.get("Contents", []))++ def test_get_object(self, s3_client, test_bucket):+ """Test GetObject retrieves correct content."""+ key = "test-file.txt"+ content = b"Hello from pytest!"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=content)++ response = s3_client.get_object(Bucket=test_bucket, Key=key)+ data = response["Body"].read()+ assert data == content++ def test_head_object(self, s3_client, test_bucket):+ """Test HeadObject returns metadata."""+ key = "test-file.txt"+ content = b"Hello from pytest!"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=content)++ response = s3_client.head_object(Bucket=test_bucket, Key=key)+ assert response["ContentLength"] == len(content)+ # LastModified should have second precision (microsecond == 0)+ assert response["LastModified"].microsecond == 0++ def test_delete_object(self, s3_client, test_bucket):+ """Test DeleteObject removes object."""+ key = "test-file.txt"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=b"content")++ s3_client.delete_object(Bucket=test_bucket, Key=key)++ response = s3_client.list_objects_v2(Bucket=test_bucket)+ assert not any(o["Key"] == key for o in response.get("Contents", []))++ def test_delete_objects_batch(self, s3_client, test_bucket):+ """Test DeleteObjects batch deletes multiple objects."""+ for i in range(1, 4):+ s3_client.put_object(+ Bucket=test_bucket, Key=f"batch-{i}.txt", Body=f"batch {i}".encode()+ )++ response = s3_client.delete_objects(+ Bucket=test_bucket,+ Delete={"Objects": [{"Key": f"batch-{i}.txt"} for i in range(1, 4)]},+ )+ assert len(response.get("Deleted", [])) == 3+++class TestS3CopyObject:+ """Test S3 copy operations."""++ def test_copy_object_same_bucket(self, s3_client, test_bucket):+ """Test CopyObject within same bucket."""+ src_key = "src-file.txt"+ dst_key = "dst-file.txt"+ content = b"content to copy"++ s3_client.put_object(Bucket=test_bucket, Key=src_key, Body=content)++ response = s3_client.copy_object(+ CopySource={"Bucket": test_bucket, "Key": src_key},+ Bucket=test_bucket,+ Key=dst_key,+ )+ assert response.get("CopyObjectResult")++ # Verify copy+ get_response = s3_client.get_object(Bucket=test_bucket, Key=dst_key)+ assert get_response["Body"].read() == content++ def test_copy_object_cross_bucket(self, s3_client, test_bucket, unique_name):+ """Test CopyObject across buckets."""+ dest_bucket = f"pytest-s3-copy-{unique_name}"+ src_key = "src-file.txt"+ dst_key = "dst-file.txt"+ content = b"content to copy"++ s3_client.put_object(Bucket=test_bucket, Key=src_key, Body=content)+ s3_client.create_bucket(Bucket=dest_bucket)++ try:+ response = s3_client.copy_object(+ CopySource={"Bucket": test_bucket, "Key": src_key},+ Bucket=dest_bucket,+ Key=dst_key,+ )+ assert response.get("CopyObjectResult")++ # Verify copy+ get_response = s3_client.get_object(Bucket=dest_bucket, Key=dst_key)+ assert get_response["Body"].read() == content+ finally:+ s3_client.delete_object(Bucket=dest_bucket, Key=dst_key)+ s3_client.delete_bucket(Bucket=dest_bucket)++ def test_copy_object_non_ascii_key(self, s3_client, test_bucket):+ """Test CopyObject with non-ASCII characters in key."""+ src_key = "src/テスト画像.png"+ dst_key = "dst/テスト画像.png"+ content = b"non-ascii content"++ s3_client.put_object(Bucket=test_bucket, Key=src_key, Body=content)++ response = s3_client.copy_object(+ CopySource={"Bucket": test_bucket, "Key": src_key},+ Bucket=test_bucket,+ Key=dst_key,+ )+ assert response.get("CopyObjectResult")++ # Verify copy+ get_response = s3_client.get_object(Bucket=test_bucket, Key=dst_key)+ assert get_response["Body"].read() == content+++class TestS3ObjectTagging:+ """Test S3 object tagging operations."""++ def test_put_object_tagging(self, s3_client, test_bucket):+ """Test PutObjectTagging adds tags to object."""+ key = "tagged-file.txt"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=b"content")++ s3_client.put_object_tagging(+ Bucket=test_bucket,+ Key=key,+ Tagging={+ "TagSet": [+ {"Key": "env", "Value": "test"},+ {"Key": "project", "Value": "floci"},+ ]+ },+ )+ # If no exception, test passes++ def test_get_object_tagging(self, s3_client, test_bucket):+ """Test GetObjectTagging returns tags."""+ key = "tagged-file.txt"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=b"content")+ s3_client.put_object_tagging(+ Bucket=test_bucket,+ Key=key,+ Tagging={+ "TagSet": [+ {"Key": "env", "Value": "test"},+ {"Key": "project", "Value": "floci"},+ ]+ },+ )++ response = s3_client.get_object_tagging(Bucket=test_bucket, Key=key)+ tags = {t["Key"]: t["Value"] for t in response["TagSet"]}+ assert tags.get("env") == "test"+ assert tags.get("project") == "floci"++ def test_delete_object_tagging(self, s3_client, test_bucket):+ """Test DeleteObjectTagging removes tags."""+ key = "tagged-file.txt"+ s3_client.put_object(Bucket=test_bucket, Key=key, Body=b"content")+ s3_client.put_object_tagging(+ Bucket=test_bucket,+ Key=key,+ Tagging={"TagSet": [{"Key": "env", "Value": "test"}]},+ )++ s3_client.delete_object_tagging(Bucket=test_bucket, Key=key)++ response = s3_client.get_object_tagging(Bucket=test_bucket, Key=key)+ assert len(response["TagSet"]) == 0+++class TestS3BucketTagging:+ """Test S3 bucket tagging operations."""++ def test_put_bucket_tagging(self, s3_client, test_bucket):+ """Test PutBucketTagging adds tags to bucket."""+ s3_client.put_bucket_tagging(+ Bucket=test_bucket,+ Tagging={+ "TagSet": [+ {"Key": "team", "Value": "backend"},+ {"Key": "cost-center", "Value": "123"},+ ]+ },+ )+ # If no exception, test passes++ def test_get_bucket_tagging(self, s3_client, test_bucket):+ """Test GetBucketTagging returns tags."""+ s3_client.put_bucket_tagging(+ Bucket=test_bucket,+ Tagging={+ "TagSet": [+ {"Key": "team", "Value": "backend"},+ {"Key": "cost-center", "Value": "123"},+ ]+ },+ )++ response = s3_client.get_bucket_tagging(Bucket=test_bucket)+ tags = {t["Key"]: t["Value"] for t in response["TagSet"]}+ assert tags.get("team") == "backend"+ assert tags.get("cost-center") == "123"++ def test_delete_bucket_tagging(self, s3_client, test_bucket):+ """Test DeleteBucketTagging removes tags."""+ s3_client.put_bucket_tagging(+ Bucket=test_bucket,+ Tagging={"TagSet": [{"Key": "team", "Value": "backend"}]},+ )++ s3_client.delete_bucket_tagging(Bucket=test_bucket)++ # Either empty tags or NoSuchTagSet error+ try:+ response = s3_client.get_bucket_tagging(Bucket=test_bucket)+ assert len(response.get("TagSet", [])) == 0+ except ClientError:+ pass # NoSuchTagSet is also acceptable+++class TestS3LargeObject:+ """Test S3 large object operations."""++ def test_put_object_25mb(self, s3_client, test_bucket):+ """Test PutObject with 25 MB payload."""+ key = "large-object-25mb.bin"+ large_payload = b"\x00" * (25 * 1024 * 1024)++ s3_client.put_object(+ Bucket=test_bucket,+ Key=key,+ Body=large_payload,+ ContentType="application/octet-stream",+ )++ response = s3_client.head_object(Bucket=test_bucket, Key=key)+ assert response["ContentLength"] == 25 * 1024 * 1024diff --git a/compatibility-tests/sdk-test-python/tests/test_s3_cors.py b/compatibility-tests/sdk-test-python/tests/test_s3_cors.pynew file mode 100644index 0000000000..e88801aa68--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_s3_cors.py@@ -0,0 +1,331 @@+"""S3 CORS enforcement integration tests."""++import urllib.request+import urllib.error++import pytest+++class TestS3CORS:+ """Test S3 CORS enforcement."""++ @pytest.fixture(autouse=True)+ def setup_bucket(self, s3_client, unique_name, endpoint_url):+ """Set up a test bucket with an object for CORS testing."""+ self.bucket = f"pytest-cors-{unique_name}"+ self.endpoint = endpoint_url+ self.s3 = s3_client++ s3_client.create_bucket(Bucket=self.bucket)+ s3_client.put_object(+ Bucket=self.bucket,+ Key="cors-test.txt",+ Body=b"hello cors",+ ContentType="text/plain",+ )++ yield++ # Cleanup+ try:+ s3_client.delete_bucket_cors(Bucket=self.bucket)+ except Exception:+ pass+ try:+ s3_client.delete_object(Bucket=self.bucket, Key="cors-test.txt")+ s3_client.delete_bucket(Bucket=self.bucket)+ except Exception:+ pass++ def _raw_request(self, method, path, headers=None):+ """Make a raw HTTP request; returns (status_code, lowercase_headers_dict)."""+ url = f"{self.endpoint}/{self.bucket}{path}"+ req = urllib.request.Request(url, method=method)+ if headers:+ for k, v in headers.items():+ req.add_header(k, v)+ try:+ with urllib.request.urlopen(req) as resp:+ return resp.status, {k.lower(): v for k, v in resp.headers.items()}+ except urllib.error.HTTPError as e:+ return e.code, {k.lower(): v for k, v in e.headers.items()}++ def test_preflight_without_cors_config_returns_403(self):+ """Test preflight request without CORS config returns 403."""+ status, _ = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "http://localhost:3000", "Access-Control-Request-Method": "GET"},+ )+ assert status == 403++ def test_put_bucket_cors_wildcard(self):+ """Test PutBucketCors with wildcard origin."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["*"],+ "AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],+ "AllowedHeaders": ["*"],+ "ExposeHeaders": ["ETag"],+ "MaxAgeSeconds": 3000,+ }+ ]+ },+ )++ def test_wildcard_preflight_returns_200(self):+ """Test wildcard CORS preflight returns 200."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["*"],+ "AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],+ "AllowedHeaders": ["*"],+ "ExposeHeaders": ["ETag"],+ "MaxAgeSeconds": 3000,+ }+ ]+ },+ )++ status, headers = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "http://localhost:3000", "Access-Control-Request-Method": "GET"},+ )+ assert status == 200+ assert headers.get("access-control-allow-origin") == "*"+ assert headers.get("access-control-max-age") == "3000"+ assert "GET" in headers.get("access-control-allow-methods", "").upper()++ def test_wildcard_actual_get_returns_cors_headers(self):+ """Test actual GET with Origin header returns CORS headers."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ "ExposeHeaders": ["ETag"],+ "MaxAgeSeconds": 3000,+ }+ ]+ },+ )++ status, headers = self._raw_request(+ "GET", "/cors-test.txt", {"Origin": "http://localhost:3000"}+ )+ assert headers.get("access-control-allow-origin") == "*"+ vary = headers.get("vary", "")+ assert any(t.strip().lower() == "origin" for t in vary.split(","))+ assert "ETag" in headers.get("access-control-expose-headers", "")++ def test_get_without_origin_has_no_cors_headers(self):+ """Test GET without Origin header has no CORS headers."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ _, headers = self._raw_request("GET", "/cors-test.txt")+ assert "access-control-allow-origin" not in headers++ def test_options_without_origin_has_no_cors_headers(self):+ """Test OPTIONS without Origin header has no CORS headers."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ _, headers = self._raw_request("OPTIONS", "/cors-test.txt")+ assert "access-control-allow-origin" not in headers++ def test_specific_origin_echoes_origin(self):+ """Test specific origin CORS config echoes the origin."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["https://example.com"],+ "AllowedMethods": ["GET", "PUT"],+ "AllowedHeaders": ["Content-Type", "Authorization"],+ "ExposeHeaders": ["ETag", "x-amz-request-id"],+ "MaxAgeSeconds": 600,+ }+ ]+ },+ )++ status, headers = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {+ "Origin": "https://example.com",+ "Access-Control-Request-Method": "GET",+ "Access-Control-Request-Headers": "Content-Type",+ },+ )+ assert status == 200+ assert headers.get("access-control-allow-origin") == "https://example.com"+ assert headers.get("access-control-max-age") == "600"++ def test_non_matching_origin_returns_403(self):+ """Test non-matching origin returns 403."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["https://example.com"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ status, _ = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "https://attacker.evil.com", "Access-Control-Request-Method": "GET"},+ )+ assert status == 403++ def test_non_matching_method_returns_403(self):+ """Test non-matching method returns 403."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["https://example.com"],+ "AllowedMethods": ["GET", "PUT"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ status, _ = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "https://example.com", "Access-Control-Request-Method": "DELETE"},+ )+ assert status == 403++ def test_delete_bucket_cors(self):+ """Test DeleteBucketCors restores 403 on preflight."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ self.s3.delete_bucket_cors(Bucket=self.bucket)++ status, _ = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "http://localhost:3000", "Access-Control-Request-Method": "GET"},+ )+ assert status == 403++ def test_subdomain_wildcard_matches(self):+ """Test subdomain wildcard pattern matches subdomains."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["http://*.example.com"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ "MaxAgeSeconds": 120,+ }+ ]+ },+ )++ status, headers = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "http://app.example.com", "Access-Control-Request-Method": "GET"},+ )+ assert status == 200+ assert headers.get("access-control-allow-origin") == "http://app.example.com"++ def test_subdomain_wildcard_rejects_wrong_scheme(self):+ """Test subdomain wildcard rejects different scheme."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["http://*.example.com"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ status, _ = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "https://app.example.com", "Access-Control-Request-Method": "GET"},+ )+ assert status == 403++ def test_subdomain_wildcard_rejects_different_domain(self):+ """Test subdomain wildcard rejects different domain."""+ self.s3.put_bucket_cors(+ Bucket=self.bucket,+ CORSConfiguration={+ "CORSRules": [+ {+ "AllowedOrigins": ["http://*.example.com"],+ "AllowedMethods": ["GET"],+ "AllowedHeaders": ["*"],+ }+ ]+ },+ )++ status, _ = self._raw_request(+ "OPTIONS",+ "/cors-test.txt",+ {"Origin": "http://app.other.com", "Access-Control-Request-Method": "GET"},+ )+ assert status == 403diff --git a/compatibility-tests/sdk-test-python/tests/test_s3_notifications.py b/compatibility-tests/sdk-test-python/tests/test_s3_notifications.pynew file mode 100644index 0000000000..6323c6e565--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_s3_notifications.py@@ -0,0 +1,153 @@+"""S3 notification filter integration tests."""++import pytest+++class TestS3Notifications:+ """Test S3 bucket notification configuration with filters."""++ @pytest.fixture(autouse=True)+ def setup_resources(self, s3_client, sqs_client, sns_client, unique_name):+ """Set up test resources for S3 notification tests."""+ self.s3 = s3_client+ self.sqs = sqs_client+ self.sns = sns_client++ self.account_id = "000000000000"+ self.queue_name = f"s3-notif-{unique_name}-queue"+ self.topic_name = f"s3-notif-{unique_name}-topic"+ self.bucket_name = f"s3-notif-{unique_name}-bucket"+ self.queue_arn = f"arn:aws:sqs:us-east-1:{self.account_id}:{self.queue_name}"++ # Create SQS queue+ sqs_client.create_queue(QueueName=self.queue_name)++ # Create SNS topic+ response = sns_client.create_topic(Name=self.topic_name)+ self.topic_arn = response["TopicArn"]++ # Create S3 bucket+ s3_client.create_bucket(Bucket=self.bucket_name)++ yield++ # Cleanup+ try:+ s3_client.delete_bucket(Bucket=self.bucket_name)+ except Exception:+ pass+ try:+ sns_client.delete_topic(TopicArn=self.topic_arn)+ except Exception:+ pass+ try:+ queue_url = sqs_client.get_queue_url(QueueName=self.queue_name)["QueueUrl"]+ sqs_client.delete_queue(QueueUrl=queue_url)+ except Exception:+ pass++ def test_put_bucket_notification_configuration_with_filters(self):+ """Test PutBucketNotificationConfiguration with prefix/suffix filters."""+ self.s3.put_bucket_notification_configuration(+ Bucket=self.bucket_name,+ NotificationConfiguration={+ "QueueConfigurations": [+ {+ "Id": "sqs-filtered",+ "QueueArn": self.queue_arn,+ "Events": ["s3:ObjectCreated:*"],+ "Filter": {+ "Key": {+ "FilterRules": [+ {"Name": "prefix", "Value": "incoming/"},+ {"Name": "suffix", "Value": ".csv"},+ ]+ }+ },+ }+ ],+ "TopicConfigurations": [+ {+ "Id": "sns-filtered",+ "TopicArn": self.topic_arn,+ "Events": ["s3:ObjectRemoved:*"],+ "Filter": {+ "Key": {+ "FilterRules": [+ {"Name": "prefix", "Value": ""},+ {"Name": "suffix", "Value": ".txt"},+ ]+ }+ },+ }+ ],+ },+ )++ def test_get_bucket_notification_configuration_sqs_filter_roundtrip(self):+ """Test SQS notification filter configuration round-trip."""+ self.s3.put_bucket_notification_configuration(+ Bucket=self.bucket_name,+ NotificationConfiguration={+ "QueueConfigurations": [+ {+ "Id": "sqs-filtered",+ "QueueArn": self.queue_arn,+ "Events": ["s3:ObjectCreated:*"],+ "Filter": {+ "Key": {+ "FilterRules": [+ {"Name": "prefix", "Value": "incoming/"},+ {"Name": "suffix", "Value": ".csv"},+ ]+ }+ },+ }+ ],+ },+ )++ response = self.s3.get_bucket_notification_configuration(Bucket=self.bucket_name)++ queue_configs = response.get("QueueConfigurations", [])+ sqs_entry = next(+ (c for c in queue_configs if c.get("QueueArn") == self.queue_arn), None+ )+ assert sqs_entry is not None++ sqs_rules = sqs_entry.get("Filter", {}).get("Key", {}).get("FilterRules", [])+ assert len(sqs_rules) == 2++ def test_get_bucket_notification_configuration_sns_filter_roundtrip(self):+ """Test SNS notification filter configuration round-trip."""+ self.s3.put_bucket_notification_configuration(+ Bucket=self.bucket_name,+ NotificationConfiguration={+ "TopicConfigurations": [+ {+ "Id": "sns-filtered",+ "TopicArn": self.topic_arn,+ "Events": ["s3:ObjectRemoved:*"],+ "Filter": {+ "Key": {+ "FilterRules": [+ {"Name": "prefix", "Value": ""},+ {"Name": "suffix", "Value": ".txt"},+ ]+ }+ },+ }+ ],+ },+ )++ response = self.s3.get_bucket_notification_configuration(Bucket=self.bucket_name)++ topic_configs = response.get("TopicConfigurations", [])+ sns_entry = next(+ (c for c in topic_configs if c.get("TopicArn") == self.topic_arn), None+ )+ assert sns_entry is not None++ sns_rules = sns_entry.get("Filter", {}).get("Key", {}).get("FilterRules", [])+ assert len(sns_rules) == 2diff --git a/compatibility-tests/sdk-test-python/tests/test_secretsmanager.py b/compatibility-tests/sdk-test-python/tests/test_secretsmanager.pynew file mode 100644index 0000000000..cf297e0a42--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_secretsmanager.py@@ -0,0 +1,251 @@+"""Secrets Manager integration tests."""++import pytest+from botocore.exceptions import ClientError+++class TestSecretsManagerSecret:+ """Test Secrets Manager secret operations."""++ def test_create_secret(self, secretsmanager_client, unique_name):+ """Test CreateSecret creates a secret."""+ secret_name = f"pytest-secret-{unique_name}"+ secret_value = "my-super-secret-value"++ try:+ response = secretsmanager_client.create_secret(+ Name=secret_name,+ SecretString=secret_value,+ Description="Test secret",+ Tags=[{"Key": "env", "Value": "test"}],+ )+ assert response["ARN"]+ assert secret_name in response["ARN"]+ assert response["Name"] == secret_name+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_get_secret_value_by_name(self, secretsmanager_client, unique_name):+ """Test GetSecretValue by name returns secret."""+ secret_name = f"pytest-secret-{unique_name}"+ secret_value = "my-super-secret-value"++ secretsmanager_client.create_secret(Name=secret_name, SecretString=secret_value)+ try:+ response = secretsmanager_client.get_secret_value(SecretId=secret_name)+ assert response["SecretString"] == secret_value+ assert response["Name"] == secret_name+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_get_secret_value_by_arn(self, secretsmanager_client, unique_name):+ """Test GetSecretValue by ARN returns secret."""+ secret_name = f"pytest-secret-{unique_name}"+ secret_value = "my-super-secret-value"++ response = secretsmanager_client.create_secret(+ Name=secret_name, SecretString=secret_value+ )+ secret_arn = response["ARN"]++ try:+ response = secretsmanager_client.get_secret_value(SecretId=secret_arn)+ assert response["SecretString"] == secret_value+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_put_secret_value(self, secretsmanager_client, unique_name):+ """Test PutSecretValue updates secret."""+ secret_name = f"pytest-secret-{unique_name}"++ response = secretsmanager_client.create_secret(+ Name=secret_name, SecretString="original"+ )+ original_version = response["VersionId"]++ try:+ response = secretsmanager_client.put_secret_value(+ SecretId=secret_name, SecretString="updated"+ )+ new_version = response["VersionId"]+ assert new_version+ assert new_version != original_version++ response = secretsmanager_client.get_secret_value(SecretId=secret_name)+ assert response["SecretString"] == "updated"+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_describe_secret(self, secretsmanager_client, unique_name):+ """Test DescribeSecret returns secret metadata."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(+ Name=secret_name,+ SecretString="value",+ Tags=[{"Key": "env", "Value": "test"}],+ )++ try:+ response = secretsmanager_client.describe_secret(SecretId=secret_name)+ assert response.get("Tags")+ assert not response.get("RotationEnabled", True)+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_update_secret(self, secretsmanager_client, unique_name):+ """Test UpdateSecret updates secret description."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(+ Name=secret_name, SecretString="value", Description="Original"+ )++ try:+ secretsmanager_client.update_secret(+ SecretId=secret_name, Description="Updated description"+ )++ response = secretsmanager_client.describe_secret(SecretId=secret_name)+ assert response.get("Description") == "Updated description"+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_list_secrets(self, secretsmanager_client, unique_name):+ """Test ListSecrets includes created secret."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(Name=secret_name, SecretString="value")++ try:+ response = secretsmanager_client.list_secrets()+ assert any(s["Name"] == secret_name for s in response["SecretList"])+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_delete_secret(self, secretsmanager_client, unique_name):+ """Test DeleteSecret removes secret."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(Name=secret_name, SecretString="value")+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ with pytest.raises(ClientError) as exc_info:+ secretsmanager_client.get_secret_value(SecretId=secret_name)+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 400+++class TestSecretsManagerTags:+ """Test Secrets Manager tagging operations."""++ def test_tag_resource(self, secretsmanager_client, unique_name):+ """Test TagResource adds tags to secret."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(Name=secret_name, SecretString="value")++ try:+ secretsmanager_client.tag_resource(+ SecretId=secret_name, Tags=[{"Key": "team", "Value": "backend"}]+ )++ response = secretsmanager_client.describe_secret(SecretId=secret_name)+ tags = {t["Key"]: t["Value"] for t in response.get("Tags", [])}+ assert tags.get("team") == "backend"+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_untag_resource(self, secretsmanager_client, unique_name):+ """Test UntagResource removes tags from secret."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(+ Name=secret_name,+ SecretString="value",+ Tags=[{"Key": "team", "Value": "backend"}],+ )++ try:+ secretsmanager_client.untag_resource(+ SecretId=secret_name, TagKeys=["team"]+ )++ response = secretsmanager_client.describe_secret(SecretId=secret_name)+ tags = {t["Key"] for t in response.get("Tags", [])}+ assert "team" not in tags+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )+++class TestSecretsManagerVersions:+ """Test Secrets Manager version operations."""++ def test_list_secret_version_ids(self, secretsmanager_client, unique_name):+ """Test ListSecretVersionIds returns version stages."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(Name=secret_name, SecretString="v1")+ secretsmanager_client.put_secret_value(SecretId=secret_name, SecretString="v2")++ try:+ response = secretsmanager_client.list_secret_version_ids(+ SecretId=secret_name+ )+ stages = [+ stage for v in response["Versions"] for stage in v.get("VersionStages", [])+ ]+ assert "AWSCURRENT" in stages+ assert "AWSPREVIOUS" in stages+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )+++class TestSecretsManagerErrors:+ """Test Secrets Manager error handling."""++ def test_create_secret_duplicate(self, secretsmanager_client, unique_name):+ """Test CreateSecret returns error for duplicate name."""+ secret_name = f"pytest-secret-{unique_name}"++ secretsmanager_client.create_secret(Name=secret_name, SecretString="v1")++ try:+ with pytest.raises(ClientError) as exc_info:+ secretsmanager_client.create_secret(+ Name=secret_name, SecretString="v2"+ )+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 400+ finally:+ secretsmanager_client.delete_secret(+ SecretId=secret_name, ForceDeleteWithoutRecovery=True+ )++ def test_get_secret_value_non_existent(self, secretsmanager_client, unique_name):+ """Test GetSecretValue returns error for non-existent secret."""+ with pytest.raises(ClientError) as exc_info:+ secretsmanager_client.get_secret_value(+ SecretId=f"non-existent-secret-{unique_name}"+ )+ assert exc_info.value.response["ResponseMetadata"]["HTTPStatusCode"] == 400diff --git a/compatibility-tests/sdk-test-python/tests/test_sns.py b/compatibility-tests/sdk-test-python/tests/test_sns.pynew file mode 100644index 0000000000..e2cfb5c9ce--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_sns.py@@ -0,0 +1,240 @@+"""SNS topic integration tests."""++import time++import pytest+++class TestSNSTopic:+ """Test SNS topic operations."""++ def test_create_topic(self, sns_client, unique_name):+ """Test CreateTopic creates a topic with correct ARN."""+ topic_name = f"pytest-sns-{unique_name}"++ try:+ response = sns_client.create_topic(Name=topic_name)+ topic_arn = response["TopicArn"]+ assert topic_name in topic_arn+ finally:+ sns_client.delete_topic(TopicArn=response["TopicArn"])++ def test_list_topics(self, sns_client, unique_name):+ """Test ListTopics returns created topic."""+ topic_name = f"pytest-sns-{unique_name}"++ response = sns_client.create_topic(Name=topic_name)+ topic_arn = response["TopicArn"]+ try:+ response = sns_client.list_topics()+ assert any(t["TopicArn"] == topic_arn for t in response["Topics"])+ finally:+ sns_client.delete_topic(TopicArn=topic_arn)++ def test_get_topic_attributes(self, sns_client, unique_name):+ """Test GetTopicAttributes returns topic details."""+ topic_name = f"pytest-sns-{unique_name}"++ response = sns_client.create_topic(Name=topic_name)+ topic_arn = response["TopicArn"]+ try:+ response = sns_client.get_topic_attributes(TopicArn=topic_arn)+ assert "TopicArn" in response["Attributes"]+ finally:+ sns_client.delete_topic(TopicArn=topic_arn)++ def test_delete_topic(self, sns_client, unique_name):+ """Test DeleteTopic removes topic."""+ topic_name = f"pytest-sns-{unique_name}"++ response = sns_client.create_topic(Name=topic_name)+ topic_arn = response["TopicArn"]+ sns_client.delete_topic(TopicArn=topic_arn)++ # Topic should not be in list+ response = sns_client.list_topics()+ assert not any(t["TopicArn"] == topic_arn for t in response.get("Topics", []))+++class TestSNSSubscription:+ """Test SNS subscription operations."""++ def test_subscribe_sqs(self, sns_client, sqs_client, unique_name):+ """Test Subscribe with SQS endpoint."""+ topic_name = f"pytest-sns-{unique_name}"+ queue_name = f"pytest-sns-queue-{unique_name}"++ topic_response = sns_client.create_topic(Name=topic_name)+ topic_arn = topic_response["TopicArn"]++ queue_response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = queue_response["QueueUrl"]+ queue_arn = sqs_client.get_queue_attributes(+ QueueUrl=queue_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ try:+ response = sns_client.subscribe(+ TopicArn=topic_arn, Protocol="sqs", Endpoint=queue_arn+ )+ sub_arn = response["SubscriptionArn"]+ assert sub_arn+ finally:+ sns_client.delete_topic(TopicArn=topic_arn)+ sqs_client.delete_queue(QueueUrl=queue_url)++ def test_list_subscriptions_by_topic(self, sns_client, sqs_client, unique_name):+ """Test ListSubscriptionsByTopic returns subscriptions."""+ topic_name = f"pytest-sns-{unique_name}"+ queue_name = f"pytest-sns-queue-{unique_name}"++ topic_response = sns_client.create_topic(Name=topic_name)+ topic_arn = topic_response["TopicArn"]++ queue_response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = queue_response["QueueUrl"]+ queue_arn = sqs_client.get_queue_attributes(+ QueueUrl=queue_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ sub_response = sns_client.subscribe(+ TopicArn=topic_arn, Protocol="sqs", Endpoint=queue_arn+ )+ sub_arn = sub_response["SubscriptionArn"]++ try:+ response = sns_client.list_subscriptions_by_topic(TopicArn=topic_arn)+ assert any(+ s["SubscriptionArn"] == sub_arn for s in response["Subscriptions"]+ )+ finally:+ sns_client.unsubscribe(SubscriptionArn=sub_arn)+ sns_client.delete_topic(TopicArn=topic_arn)+ sqs_client.delete_queue(QueueUrl=queue_url)++ def test_unsubscribe(self, sns_client, sqs_client, unique_name):+ """Test Unsubscribe removes subscription."""+ topic_name = f"pytest-sns-{unique_name}"+ queue_name = f"pytest-sns-queue-{unique_name}"++ topic_response = sns_client.create_topic(Name=topic_name)+ topic_arn = topic_response["TopicArn"]++ queue_response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = queue_response["QueueUrl"]+ queue_arn = sqs_client.get_queue_attributes(+ QueueUrl=queue_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ sub_response = sns_client.subscribe(+ TopicArn=topic_arn, Protocol="sqs", Endpoint=queue_arn+ )+ sub_arn = sub_response["SubscriptionArn"]++ try:+ sns_client.unsubscribe(SubscriptionArn=sub_arn)+ # Unsubscribe should succeed without exception+ finally:+ sns_client.delete_topic(TopicArn=topic_arn)+ sqs_client.delete_queue(QueueUrl=queue_url)+++class TestSNSPublish:+ """Test SNS publish operations."""++ def test_publish(self, sns_client, unique_name):+ """Test Publish sends message and returns MessageId."""+ topic_name = f"pytest-sns-{unique_name}"++ topic_response = sns_client.create_topic(Name=topic_name)+ topic_arn = topic_response["TopicArn"]++ try:+ response = sns_client.publish(+ TopicArn=topic_arn,+ Message="hello from pytest sns",+ Subject="test",+ )+ assert response.get("MessageId")+ finally:+ sns_client.delete_topic(TopicArn=topic_arn)++ def test_publish_sqs_delivery(self, sns_client, sqs_client, unique_name):+ """Test message is delivered to SQS subscription."""+ topic_name = f"pytest-sns-{unique_name}"+ queue_name = f"pytest-sns-queue-{unique_name}"++ topic_response = sns_client.create_topic(Name=topic_name)+ topic_arn = topic_response["TopicArn"]++ queue_response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = queue_response["QueueUrl"]+ queue_arn = sqs_client.get_queue_attributes(+ QueueUrl=queue_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ sub_response = sns_client.subscribe(+ TopicArn=topic_arn, Protocol="sqs", Endpoint=queue_arn+ )+ sub_arn = sub_response["SubscriptionArn"]++ try:+ sns_client.publish(+ TopicArn=topic_arn,+ Message="hello from pytest sns",+ Subject="test",+ )++ time.sleep(0.5)+ response = sqs_client.receive_message(+ QueueUrl=queue_url, MaxNumberOfMessages=1, WaitTimeSeconds=2+ )+ msgs = response.get("Messages", [])+ assert len(msgs) > 0+ assert "hello from pytest sns" in msgs[0]["Body"]++ finally:+ sns_client.unsubscribe(SubscriptionArn=sub_arn)+ sns_client.delete_topic(TopicArn=topic_arn)+ sqs_client.delete_queue(QueueUrl=queue_url)++ def test_publish_with_message_attributes(self, sns_client, sqs_client, unique_name):+ """Test publish with message attributes delivered to SQS."""+ topic_name = f"pytest-sns-{unique_name}"+ queue_name = f"pytest-sns-queue-{unique_name}"++ topic_response = sns_client.create_topic(Name=topic_name)+ topic_arn = topic_response["TopicArn"]++ queue_response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = queue_response["QueueUrl"]+ queue_arn = sqs_client.get_queue_attributes(+ QueueUrl=queue_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ sub_response = sns_client.subscribe(+ TopicArn=topic_arn, Protocol="sqs", Endpoint=queue_arn+ )+ sub_arn = sub_response["SubscriptionArn"]++ try:+ sns_client.publish(+ TopicArn=topic_arn,+ Message="msg with attrs",+ MessageAttributes={+ "my-attr": {"DataType": "String", "StringValue": "my-value"}+ },+ )++ time.sleep(0.5)+ response = sqs_client.receive_message(+ QueueUrl=queue_url, MaxNumberOfMessages=1, WaitTimeSeconds=2+ )+ msgs = response.get("Messages", [])+ assert len(msgs) > 0+ assert "my-value" in msgs[0]["Body"]++ finally:+ sns_client.unsubscribe(SubscriptionArn=sub_arn)+ sns_client.delete_topic(TopicArn=topic_arn)+ sqs_client.delete_queue(QueueUrl=queue_url)diff --git a/compatibility-tests/sdk-test-python/tests/test_sqs.py b/compatibility-tests/sdk-test-python/tests/test_sqs.pynew file mode 100644index 0000000000..e1487f8625--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_sqs.py@@ -0,0 +1,301 @@+"""SQS queue integration tests."""++import json+import time++import pytest+++class TestSQSQueue:+ """Test SQS queue operations."""++ def test_create_queue(self, sqs_client, unique_name):+ """Test CreateQueue creates a queue with correct URL."""+ queue_name = f"pytest-sdk-{unique_name}"++ try:+ response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = response["QueueUrl"]+ assert queue_name in queue_url+ finally:+ sqs_client.delete_queue(QueueUrl=response["QueueUrl"])++ def test_get_queue_url(self, sqs_client, unique_name):+ """Test GetQueueUrl returns correct URL."""+ queue_name = f"pytest-sdk-{unique_name}"++ response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = response["QueueUrl"]+ try:+ response = sqs_client.get_queue_url(QueueName=queue_name)+ assert response["QueueUrl"] == queue_url+ finally:+ sqs_client.delete_queue(QueueUrl=queue_url)++ def test_list_queues(self, sqs_client, unique_name):+ """Test ListQueues returns created queue."""+ queue_name = f"pytest-sdk-{unique_name}"++ response = sqs_client.create_queue(QueueName=queue_name)+ queue_url = response["QueueUrl"]+ try:+ response = sqs_client.list_queues(QueueNamePrefix=queue_name)+ assert any(queue_name in u for u in response.get("QueueUrls", []))+ finally:+ sqs_client.delete_queue(QueueUrl=queue_url)+++class TestSQSMessages:+ """Test SQS message operations."""++ def test_send_message(self, sqs_client, test_queue):+ """Test SendMessage sends message with MessageId."""+ response = sqs_client.send_message(+ QueueUrl=test_queue, MessageBody="Hello from pytest!"+ )+ assert response.get("MessageId")++ def test_receive_message(self, sqs_client, test_queue):+ """Test ReceiveMessage receives sent message."""+ sqs_client.send_message(QueueUrl=test_queue, MessageBody="Hello from pytest!")++ response = sqs_client.receive_message(+ QueueUrl=test_queue, MaxNumberOfMessages=1+ )+ msgs = response.get("Messages", [])+ assert len(msgs) == 1+ assert msgs[0]["Body"] == "Hello from pytest!"++ # Cleanup+ sqs_client.delete_message(+ QueueUrl=test_queue, ReceiptHandle=msgs[0]["ReceiptHandle"]+ )++ def test_delete_message(self, sqs_client, test_queue):+ """Test DeleteMessage removes message from queue."""+ sqs_client.send_message(QueueUrl=test_queue, MessageBody="To delete")++ response = sqs_client.receive_message(+ QueueUrl=test_queue, MaxNumberOfMessages=1+ )+ receipt = response["Messages"][0]["ReceiptHandle"]+ sqs_client.delete_message(QueueUrl=test_queue, ReceiptHandle=receipt)++ # Queue should be empty+ response = sqs_client.receive_message(+ QueueUrl=test_queue, MaxNumberOfMessages=1+ )+ assert len(response.get("Messages", [])) == 0++ def test_send_message_batch(self, sqs_client, test_queue):+ """Test SendMessageBatch sends multiple messages."""+ response = sqs_client.send_message_batch(+ QueueUrl=test_queue,+ Entries=[+ {"Id": "m1", "MessageBody": "Batch 1"},+ {"Id": "m2", "MessageBody": "Batch 2"},+ {"Id": "m3", "MessageBody": "Batch 3"},+ ],+ )+ assert len(response["Successful"]) == 3+ assert len(response.get("Failed", [])) == 0++ def test_delete_message_batch(self, sqs_client, test_queue):+ """Test DeleteMessageBatch deletes multiple messages."""+ sqs_client.send_message_batch(+ QueueUrl=test_queue,+ Entries=[+ {"Id": "m1", "MessageBody": "Batch 1"},+ {"Id": "m2", "MessageBody": "Batch 2"},+ {"Id": "m3", "MessageBody": "Batch 3"},+ ],+ )++ response = sqs_client.receive_message(+ QueueUrl=test_queue, MaxNumberOfMessages=3+ )+ msgs = response.get("Messages", [])+ entries = [+ {"Id": f"d{i}", "ReceiptHandle": m["ReceiptHandle"]}+ for i, m in enumerate(msgs)+ ]++ response = sqs_client.delete_message_batch(QueueUrl=test_queue, Entries=entries)+ assert len(response["Successful"]) == 3++ def test_message_attributes(self, sqs_client, test_queue):+ """Test message with custom attributes."""+ sqs_client.send_message(+ QueueUrl=test_queue,+ MessageBody="msg-attrs",+ MessageAttributes={"myattr": {"DataType": "String", "StringValue": "myval"}},+ )++ response = sqs_client.receive_message(+ QueueUrl=test_queue,+ MaxNumberOfMessages=1,+ MessageAttributeNames=["All"],+ )+ msgs = response.get("Messages", [])+ assert len(msgs) == 1+ assert (+ msgs[0].get("MessageAttributes", {}).get("myattr", {}).get("StringValue")+ == "myval"+ )++ # Cleanup+ sqs_client.delete_message(+ QueueUrl=test_queue, ReceiptHandle=msgs[0]["ReceiptHandle"]+ )+++class TestSQSAttributes:+ """Test SQS queue attribute operations."""++ def test_set_queue_attributes(self, sqs_client, test_queue):+ """Test SetQueueAttributes modifies queue attributes."""+ sqs_client.set_queue_attributes(+ QueueUrl=test_queue, Attributes={"VisibilityTimeout": "60"}+ )++ response = sqs_client.get_queue_attributes(+ QueueUrl=test_queue, AttributeNames=["VisibilityTimeout"]+ )+ assert response["Attributes"].get("VisibilityTimeout") == "60"+++class TestSQSTags:+ """Test SQS queue tagging operations."""++ def test_tag_queue(self, sqs_client, test_queue):+ """Test TagQueue adds tags to queue."""+ sqs_client.tag_queue(+ QueueUrl=test_queue, Tags={"env": "test", "team": "backend"}+ )+ # If no exception, test passes++ def test_list_queue_tags(self, sqs_client, test_queue):+ """Test ListQueueTags returns queue tags."""+ sqs_client.tag_queue(+ QueueUrl=test_queue, Tags={"env": "test", "team": "backend"}+ )++ response = sqs_client.list_queue_tags(QueueUrl=test_queue)+ tags = response.get("Tags", {})+ assert tags.get("env") == "test"+ assert tags.get("team") == "backend"++ def test_untag_queue(self, sqs_client, test_queue):+ """Test UntagQueue removes tags from queue."""+ sqs_client.tag_queue(+ QueueUrl=test_queue, Tags={"env": "test", "team": "backend"}+ )+ sqs_client.untag_queue(QueueUrl=test_queue, TagKeys=["team"])++ response = sqs_client.list_queue_tags(QueueUrl=test_queue)+ tags = response.get("Tags", {})+ assert tags.get("env") == "test"+ assert "team" not in tags+++class TestSQSLongPolling:+ """Test SQS long polling behavior."""++ def test_long_polling(self, sqs_client, test_queue):+ """Test long polling waits for messages."""+ start = time.time()+ sqs_client.receive_message(+ QueueUrl=test_queue, MaxNumberOfMessages=1, WaitTimeSeconds=2+ )+ elapsed = time.time() - start+ assert elapsed >= 1.8+++class TestSQSDeadLetterQueue:+ """Test SQS dead letter queue operations."""++ def test_dlq_routing(self, sqs_client, unique_name):+ """Test messages are moved to DLQ after maxReceiveCount."""+ # Create main queue and DLQ+ main_queue_name = f"pytest-sdk-{unique_name}-main"+ dlq_name = f"pytest-sdk-{unique_name}-dlq"++ dlq_response = sqs_client.create_queue(QueueName=dlq_name)+ dlq_url = dlq_response["QueueUrl"]+ dlq_arn = sqs_client.get_queue_attributes(+ QueueUrl=dlq_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ main_response = sqs_client.create_queue(QueueName=main_queue_name)+ main_url = main_response["QueueUrl"]++ try:+ # Set redrive policy+ redrive = json.dumps(+ {"maxReceiveCount": "2", "deadLetterTargetArn": dlq_arn}+ )+ sqs_client.set_queue_attributes(+ QueueUrl=main_url, Attributes={"RedrivePolicy": redrive}+ )++ # Send message and receive twice (to exceed maxReceiveCount)+ sqs_client.send_message(QueueUrl=main_url, MessageBody="dlq-test")++ m1 = sqs_client.receive_message(QueueUrl=main_url, MaxNumberOfMessages=1)[+ "Messages"+ ][0]+ sqs_client.change_message_visibility(+ QueueUrl=main_url, ReceiptHandle=m1["ReceiptHandle"], VisibilityTimeout=0+ )++ m2 = sqs_client.receive_message(QueueUrl=main_url, MaxNumberOfMessages=1)[+ "Messages"+ ][0]+ sqs_client.change_message_visibility(+ QueueUrl=main_url, ReceiptHandle=m2["ReceiptHandle"], VisibilityTimeout=0+ )++ # Main queue should be empty now+ r3 = sqs_client.receive_message(QueueUrl=main_url, MaxNumberOfMessages=1)+ assert len(r3.get("Messages", [])) == 0++ # Message should be in DLQ+ dlq_recv = sqs_client.receive_message(+ QueueUrl=dlq_url, MaxNumberOfMessages=1+ )+ dlq_msgs = dlq_recv.get("Messages", [])+ assert len(dlq_msgs) == 1+ assert dlq_msgs[0]["Body"] == "dlq-test"++ finally:+ sqs_client.delete_queue(QueueUrl=main_url)+ sqs_client.delete_queue(QueueUrl=dlq_url)++ def test_list_dead_letter_source_queues(self, sqs_client, unique_name):+ """Test ListDeadLetterSourceQueues returns source queues."""+ main_queue_name = f"pytest-sdk-{unique_name}-main"+ dlq_name = f"pytest-sdk-{unique_name}-dlq"++ dlq_response = sqs_client.create_queue(QueueName=dlq_name)+ dlq_url = dlq_response["QueueUrl"]+ dlq_arn = sqs_client.get_queue_attributes(+ QueueUrl=dlq_url, AttributeNames=["QueueArn"]+ )["Attributes"]["QueueArn"]++ main_response = sqs_client.create_queue(QueueName=main_queue_name)+ main_url = main_response["QueueUrl"]++ try:+ redrive = json.dumps(+ {"maxReceiveCount": "2", "deadLetterTargetArn": dlq_arn}+ )+ sqs_client.set_queue_attributes(+ QueueUrl=main_url, Attributes={"RedrivePolicy": redrive}+ )++ response = sqs_client.list_dead_letter_source_queues(QueueUrl=dlq_url)+ assert any(main_url == u for u in response.get("queueUrls", []))++ finally:+ sqs_client.delete_queue(QueueUrl=main_url)+ sqs_client.delete_queue(QueueUrl=dlq_url)diff --git a/compatibility-tests/sdk-test-python/tests/test_ssm.py b/compatibility-tests/sdk-test-python/tests/test_ssm.pynew file mode 100644index 0000000000..eb2bf4d768--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_ssm.py@@ -0,0 +1,191 @@+"""SSM Parameter Store integration tests."""++import pytest+from botocore.exceptions import ClientError+++class TestSSMParameter:+ """Test SSM Parameter Store operations."""++ def test_put_parameter(self, ssm_client, unique_name):+ """Test PutParameter creates a parameter with version > 0."""+ param_name = f"/pytest-sdk-test/{unique_name}"+ param_value = "param-value-boto3"++ try:+ response = ssm_client.put_parameter(+ Name=param_name, Value=param_value, Type="String", Overwrite=True+ )+ assert response["Version"] > 0+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_get_parameter(self, ssm_client, unique_name):+ """Test GetParameter retrieves correct value."""+ param_name = f"/pytest-sdk-test/{unique_name}"+ param_value = "param-value-boto3"++ ssm_client.put_parameter(Name=param_name, Value=param_value, Type="String")+ try:+ response = ssm_client.get_parameter(Name=param_name, WithDecryption=False)+ assert response["Parameter"]["Value"] == param_value+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_label_parameter_version(self, ssm_client, unique_name):+ """Test LabelParameterVersion adds label to parameter."""+ param_name = f"/pytest-sdk-test/{unique_name}"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ try:+ ssm_client.label_parameter_version(+ Name=param_name, Labels=["py-label"], ParameterVersion=1+ )+ # If no exception, test passes+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_get_parameter_history(self, ssm_client, unique_name):+ """Test GetParameterHistory returns parameter versions."""+ param_name = f"/pytest-sdk-test/{unique_name}"+ param_value = "param-value-boto3"++ ssm_client.put_parameter(Name=param_name, Value=param_value, Type="String")+ try:+ response = ssm_client.get_parameter_history(+ Name=param_name, WithDecryption=False+ )+ found = any(p["Value"] == param_value for p in response["Parameters"])+ assert found+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_get_parameters(self, ssm_client, unique_name):+ """Test GetParameters retrieves multiple parameters."""+ param_name = f"/pytest-sdk-test/{unique_name}"+ param_value = "param-value-boto3"++ ssm_client.put_parameter(Name=param_name, Value=param_value, Type="String")+ try:+ response = ssm_client.get_parameters(Names=[param_name])+ found = any(+ p["Name"] == param_name and p["Value"] == param_value+ for p in response["Parameters"]+ )+ assert found+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_describe_parameters(self, ssm_client, unique_name):+ """Test DescribeParameters lists parameters."""+ param_name = f"/pytest-sdk-test/{unique_name}"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ try:+ response = ssm_client.describe_parameters()+ found = any(p["Name"] == param_name for p in response["Parameters"])+ assert found+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_get_parameters_by_path(self, ssm_client, unique_name):+ """Test GetParametersByPath retrieves parameters under a path."""+ path = f"/pytest-sdk-test/{unique_name}"+ param_name = f"{path}/param"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ try:+ response = ssm_client.get_parameters_by_path(Path=path, Recursive=True)+ found = any(p["Name"] == param_name for p in response["Parameters"])+ assert found+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_add_tags_to_resource(self, ssm_client, unique_name):+ """Test AddTagsToResource adds tags to parameter."""+ param_name = f"/pytest-sdk-test/{unique_name}"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ try:+ ssm_client.add_tags_to_resource(+ ResourceType="Parameter",+ ResourceId=param_name,+ Tags=[+ {"Key": "env", "Value": "test"},+ {"Key": "team", "Value": "backend"},+ ],+ )+ # If no exception, test passes+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_list_tags_for_resource(self, ssm_client, unique_name):+ """Test ListTagsForResource returns tags."""+ param_name = f"/pytest-sdk-test/{unique_name}"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ ssm_client.add_tags_to_resource(+ ResourceType="Parameter",+ ResourceId=param_name,+ Tags=[+ {"Key": "env", "Value": "test"},+ {"Key": "team", "Value": "backend"},+ ],+ )+ try:+ response = ssm_client.list_tags_for_resource(+ ResourceType="Parameter", ResourceId=param_name+ )+ tags = {t["Key"]: t["Value"] for t in response["TagList"]}+ assert tags.get("env") == "test"+ assert tags.get("team") == "backend"+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_remove_tags_from_resource(self, ssm_client, unique_name):+ """Test RemoveTagsFromResource removes tags."""+ param_name = f"/pytest-sdk-test/{unique_name}"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ ssm_client.add_tags_to_resource(+ ResourceType="Parameter",+ ResourceId=param_name,+ Tags=[+ {"Key": "env", "Value": "test"},+ {"Key": "team", "Value": "backend"},+ ],+ )+ try:+ ssm_client.remove_tags_from_resource(+ ResourceType="Parameter", ResourceId=param_name, TagKeys=["team"]+ )+ response = ssm_client.list_tags_for_resource(+ ResourceType="Parameter", ResourceId=param_name+ )+ tags = {t["Key"]: t["Value"] for t in response["TagList"]}+ assert tags.get("env") == "test"+ assert "team" not in tags+ finally:+ ssm_client.delete_parameter(Name=param_name)++ def test_delete_parameter(self, ssm_client, unique_name):+ """Test DeleteParameter removes parameter."""+ param_name = f"/pytest-sdk-test/{unique_name}"++ ssm_client.put_parameter(Name=param_name, Value="value", Type="String")+ ssm_client.delete_parameter(Name=param_name)++ with pytest.raises(ClientError) as exc_info:+ ssm_client.get_parameter(Name=param_name, WithDecryption=False)+ assert exc_info.value.response["Error"]["Code"] == "ParameterNotFound"++ def test_delete_parameters(self, ssm_client, unique_name):+ """Test DeleteParameters removes multiple parameters."""+ p1 = f"/pytest-sdk-test/{unique_name}/p1"+ p2 = f"/pytest-sdk-test/{unique_name}/p2"++ ssm_client.put_parameter(Name=p1, Value="v1", Type="String")+ ssm_client.put_parameter(Name=p2, Value="v2", Type="String")++ response = ssm_client.delete_parameters(Names=[p1, p2])+ assert len(response["DeletedParameters"]) == 2diff --git a/compatibility-tests/sdk-test-python/tests/test_sts.py b/compatibility-tests/sdk-test-python/tests/test_sts.pynew file mode 100644index 0000000000..71fb7eeaa9--- /dev/null+++ b/compatibility-tests/sdk-test-python/tests/test_sts.py@@ -0,0 +1,99 @@+"""STS integration tests."""++import pytest+from botocore.exceptions import ClientError, ParamValidationError+++class TestSTSIdentity:+ """Test STS identity operations."""++ def test_get_caller_identity(self, sts_client):+ """Test GetCallerIdentity returns identity details."""+ response = sts_client.get_caller_identity()+ assert response.get("Account")+ assert response.get("Arn")+ assert response.get("UserId")++ def test_get_caller_identity_account_id(self, sts_client):+ """Test GetCallerIdentity returns expected account ID."""+ response = sts_client.get_caller_identity()+ assert response["Account"] == "000000000000"+++class TestSTSAssumeRole:+ """Test STS assume role operations."""++ def test_assume_role(self, sts_client):+ """Test AssumeRole returns temporary credentials."""+ response = sts_client.assume_role(+ RoleArn="arn:aws:iam::000000000000:role/pytest-assumed-role",+ RoleSessionName="pytest-session",+ DurationSeconds=3600,+ )+ creds = response["Credentials"]+ assert creds["AccessKeyId"].startswith("ASIA")+ assert creds["SecretAccessKey"]+ assert creds["SessionToken"]++ def test_assume_role_assumed_role_user(self, sts_client):+ """Test AssumeRole returns AssumedRoleUser with correct ARN."""+ response = sts_client.assume_role(+ RoleArn="arn:aws:iam::000000000000:role/my-role",+ RoleSessionName="my-session",+ )+ assert "assumed-role/my-role/my-session" in response["AssumedRoleUser"]["Arn"]++ def test_assume_role_with_web_identity(self, sts_client):+ """Test AssumeRoleWithWebIdentity returns credentials."""+ response = sts_client.assume_role_with_web_identity(+ RoleArn="arn:aws:iam::000000000000:role/web-identity-role",+ RoleSessionName="web-session",+ WebIdentityToken="dummy-token",+ DurationSeconds=3600,+ )+ creds = response["Credentials"]+ assert creds["AccessKeyId"].startswith("ASIA")+ assert (+ "assumed-role/web-identity-role/web-session"+ in response["AssumedRoleUser"]["Arn"]+ )++ def test_assume_role_missing_role_arn(self, sts_client):+ """Test AssumeRole validates required RoleArn parameter."""+ with pytest.raises((ClientError, ParamValidationError)):+ sts_client.assume_role(RoleSessionName="s")+++class TestSTSSessionToken:+ """Test STS session token operations."""++ def test_get_session_token(self, sts_client):+ """Test GetSessionToken returns temporary credentials."""+ response = sts_client.get_session_token(DurationSeconds=7200)+ creds = response["Credentials"]+ assert creds["AccessKeyId"].startswith("ASIA")+ assert creds["SessionToken"]+++class TestSTSFederation:+ """Test STS federation operations."""++ def test_get_federation_token(self, sts_client):+ """Test GetFederationToken returns credentials with federated user."""+ response = sts_client.get_federation_token(+ Name="pytest-fed-user", DurationSeconds=3600+ )+ creds = response["Credentials"]+ assert creds["AccessKeyId"].startswith("ASIA")+ assert "federated-user/pytest-fed-user" in response["FederatedUser"]["Arn"]+++class TestSTSUtilities:+ """Test STS utility operations."""++ def test_decode_authorization_message(self, sts_client):+ """Test DecodeAuthorizationMessage decodes message."""+ response = sts_client.decode_authorization_message(+ EncodedMessage="test-encoded-message"+ )+ assert response.get("DecodedMessage")diff --git a/compatibility-tests/sdk-test-rust/.config/nextest.toml b/compatibility-tests/sdk-test-rust/.config/nextest.tomlnew file mode 100644index 0000000000..6209017ceb--- /dev/null+++ b/compatibility-tests/sdk-test-rust/.config/nextest.toml@@ -0,0 +1,5 @@+[profile.ci]+fail-fast = false++[profile.ci.junit]+path = "/results/junit.xml"diff --git a/compatibility-tests/sdk-test-rust/Cargo.lock b/compatibility-tests/sdk-test-rust/Cargo.locknew file mode 100644index 0000000000..aa4284f535--- /dev/null+++ b/compatibility-tests/sdk-test-rust/Cargo.lock@@ -0,0 +1,3208 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "adler2"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"++[[package]]+name = "aes"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"+dependencies = [+ "cfg-if",+ "cipher",+ "cpufeatures",+]++[[package]]+name = "allocator-api2"+version = "0.2.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"++[[package]]+name = "arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"+dependencies = [+ "derive_arbitrary",+]++[[package]]+name = "atomic-waker"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"++[[package]]+name = "autocfg"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"++[[package]]+name = "aws-config"+version = "1.8.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "11493b0bad143270fb8ad284a096dd529ba91924c5409adeac856cc1bf047dbc"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-sdk-sso",+ "aws-sdk-ssooidc",+ "aws-sdk-sts",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "hex",+ "http 1.4.0",+ "sha1",+ "time",+ "tokio",+ "tracing",+ "url",+ "zeroize",+]++[[package]]+name = "aws-credential-types"+version = "1.2.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f20799b373a1be121fe3005fba0c2090af9411573878f224df44b42727fcaf7"+dependencies = [+ "aws-smithy-async",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "zeroize",+]++[[package]]+name = "aws-lc-rs"+version = "1.16.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a054912289d18629dc78375ba2c3726a3afe3ff71b4edba9dedfca0e3446d1fc"+dependencies = [+ "aws-lc-sys",+ "zeroize",+]++[[package]]+name = "aws-lc-sys"+version = "0.39.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fa7e52a4c5c547c741610a2c6f123f3881e409b714cd27e6798ef020c514f0a"+dependencies = [+ "cc",+ "cmake",+ "dunce",+ "fs_extra",+]++[[package]]+name = "aws-runtime"+version = "1.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5fc0651c57e384202e47153c1260b84a9936e19803d747615edf199dc3b98d17"+dependencies = [+ "aws-credential-types",+ "aws-sigv4",+ "aws-smithy-async",+ "aws-smithy-eventstream",+ "aws-smithy-http",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "bytes-utils",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "http-body 0.4.6",+ "http-body 1.0.1",+ "percent-encoding",+ "pin-project-lite",+ "tracing",+ "uuid",+]++[[package]]+name = "aws-sdk-cloudformation"+version = "1.110.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4687fe4ff3ed2764592177371a4a52348201dbea1e38eaed33a0cd7f3e303f74"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-query",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-smithy-xml",+ "aws-types",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-cloudwatch"+version = "1.109.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4cfc81e3e55ba1c1faec11b4d938b611c7f4890df46cd1b348bb917b7d1d3d7"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-cbor",+ "aws-smithy-compression",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "fastrand",+ "flate2",+ "http 0.2.12",+ "http 1.4.0",+ "http-body 1.0.1",+ "http-body-util",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-cognitoidentityprovider"+version = "1.113.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6df7edb40b8bf37221da2139b460b80fae93dc95f5801305692a8ed11868386c"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-dynamodb"+version = "1.110.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c597424385739456cd04535982831c15bd58f97ca28c5bcb232c0d730d5cb39"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-iam"+version = "1.107.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2fb72c86b8b7aeb3967a3a9cebcb773d88350c04b9d0770ad75bea8f76c89bfa"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-query",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-smithy-xml",+ "aws-types",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-kinesis"+version = "1.103.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3756f0a1e0dd2974b83bea6e4967dad47f832c023009468b0bf8efa43e4ed4f9"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-eventstream",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-kms"+version = "1.104.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c41ae6a33da941457e89075ef8ca5b4870c8009fe4dceeba82fce2f30f313ac6"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-lambda"+version = "1.119.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9bcacc7c2d94698c49fb73086d16ccdff68442ed21a70fbaa924c46158e37a93"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-eventstream",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-s3"+version = "1.127.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "151783f64e0dcddeb4965d08e36c276b4400a46caa88805a2e36d497deaf031a"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-sigv4",+ "aws-smithy-async",+ "aws-smithy-checksums",+ "aws-smithy-eventstream",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-smithy-xml",+ "aws-types",+ "bytes",+ "fastrand",+ "hex",+ "hmac",+ "http 0.2.12",+ "http 1.4.0",+ "http-body 1.0.1",+ "lru",+ "percent-encoding",+ "regex-lite",+ "sha2",+ "tracing",+ "url",+]++[[package]]+name = "aws-sdk-secretsmanager"+version = "1.103.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae64963d3d16d8070aaa2fb79c11cd3b13f44d2f13bba3fe8f49dcd2c42f2987"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-sns"+version = "1.98.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "caa03e65dbad2dd07b57bcd44f48dbd65283b71ee33ea7e6efe8dcc26b82e98e"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-query",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-smithy-xml",+ "aws-types",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-sqs"+version = "1.97.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4d497fb382b906b04167e62848ad00e56c5ad523791a461d5a5611c186531d81"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-ssm"+version = "1.108.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2b1fe76483d66e14a1b2c70f2f8af5902794d8a4787eeb705957d4f0b57cee1e"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-sso"+version = "1.97.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aadc669e184501caaa6beafb28c6267fc1baef0810fb58f9b205485ca3f2567"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-ssooidc"+version = "1.99.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1342a7db8f358d3de0aed2007a0b54e875458e39848d54cc1d46700b2bfcb0a8"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sdk-sts"+version = "1.101.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ab41ad64e4051ecabeea802d6a17845a91e83287e1dd249e6963ea1ba78c428a"+dependencies = [+ "aws-credential-types",+ "aws-runtime",+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-json",+ "aws-smithy-observability",+ "aws-smithy-query",+ "aws-smithy-runtime",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "aws-smithy-xml",+ "aws-types",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "regex-lite",+ "tracing",+]++[[package]]+name = "aws-sigv4"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b0b660013a6683ab23797778e21f1f854744fdf05f68204b4cca4c8c04b5d1f4"+dependencies = [+ "aws-credential-types",+ "aws-smithy-eventstream",+ "aws-smithy-http",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "bytes",+ "crypto-bigint 0.5.5",+ "form_urlencoded",+ "hex",+ "hmac",+ "http 0.2.12",+ "http 1.4.0",+ "p256",+ "percent-encoding",+ "ring",+ "sha2",+ "subtle",+ "time",+ "tracing",+ "zeroize",+]++[[package]]+name = "aws-smithy-async"+version = "1.2.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2ffcaf626bdda484571968400c326a244598634dc75fd451325a54ad1a59acfc"+dependencies = [+ "futures-util",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "aws-smithy-cbor"+version = "0.61.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9364e2fe90e1d5323a6ab452eda10cfebc00499a20c14e4e14a9f369b15422c6"+dependencies = [+ "aws-smithy-types",+ "minicbor",+]++[[package]]+name = "aws-smithy-checksums"+version = "0.64.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6750f3dd509b0694a4377f0293ed2f9630d710b1cebe281fa8bac8f099f88bc6"+dependencies = [+ "aws-smithy-http",+ "aws-smithy-types",+ "bytes",+ "crc-fast",+ "hex",+ "http 1.4.0",+ "http-body 1.0.1",+ "http-body-util",+ "md-5",+ "pin-project-lite",+ "sha1",+ "sha2",+ "tracing",+]++[[package]]+name = "aws-smithy-compression"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0e3cba0f1e060e0025523d3965f4967e668f9bbf7342c09427a1ad110437f4bb"+dependencies = [+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "bytes",+ "flate2",+ "futures-util",+ "http 1.4.0",+ "http-body 1.0.1",+ "http-body-util",+ "pin-project-lite",+ "tracing",+]++[[package]]+name = "aws-smithy-eventstream"+version = "0.60.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "faf09d74e5e32f76b8762da505a3cd59303e367a664ca67295387baa8c1d7548"+dependencies = [+ "aws-smithy-types",+ "bytes",+ "crc32fast",+]++[[package]]+name = "aws-smithy-http"+version = "0.63.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba1ab2dc1c2c3749ead27180d333c42f11be8b0e934058fb4b2258ee8dbe5231"+dependencies = [+ "aws-smithy-eventstream",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "bytes",+ "bytes-utils",+ "futures-core",+ "futures-util",+ "http 1.4.0",+ "http-body 1.0.1",+ "http-body-util",+ "percent-encoding",+ "pin-project-lite",+ "pin-utils",+ "tracing",+]++[[package]]+name = "aws-smithy-http-client"+version = "1.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6a2f165a7feee6f263028b899d0a181987f4fa7179a6411a32a439fba7c5f769"+dependencies = [+ "aws-smithy-async",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "h2 0.3.27",+ "h2 0.4.13",+ "http 0.2.12",+ "http 1.4.0",+ "http-body 0.4.6",+ "hyper 0.14.32",+ "hyper 1.8.1",+ "hyper-rustls 0.24.2",+ "hyper-rustls 0.27.7",+ "hyper-util",+ "pin-project-lite",+ "rustls 0.21.12",+ "rustls 0.23.37",+ "rustls-native-certs",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls 0.26.4",+ "tower",+ "tracing",+]++[[package]]+name = "aws-smithy-json"+version = "0.62.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9648b0bb82a2eedd844052c6ad2a1a822d1f8e3adee5fbf668366717e428856a"+dependencies = [+ "aws-smithy-types",+]++[[package]]+name = "aws-smithy-observability"+version = "0.2.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a06c2315d173edbf1920da8ba3a7189695827002e4c0fc961973ab1c54abca9c"+dependencies = [+ "aws-smithy-runtime-api",+]++[[package]]+name = "aws-smithy-query"+version = "0.60.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a56d79744fb3edb5d722ef79d86081e121d3b9422cb209eb03aea6aa4f21ebd"+dependencies = [+ "aws-smithy-types",+ "urlencoding",+]++[[package]]+name = "aws-smithy-runtime"+version = "1.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "028999056d2d2fd58a697232f9eec4a643cf73a71cf327690a7edad1d2af2110"+dependencies = [+ "aws-smithy-async",+ "aws-smithy-http",+ "aws-smithy-http-client",+ "aws-smithy-observability",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "bytes",+ "fastrand",+ "http 0.2.12",+ "http 1.4.0",+ "http-body 0.4.6",+ "http-body 1.0.1",+ "http-body-util",+ "pin-project-lite",+ "pin-utils",+ "tokio",+ "tracing",+]++[[package]]+name = "aws-smithy-runtime-api"+version = "1.11.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "876ab3c9c29791ba4ba02b780a3049e21ec63dabda09268b175272c3733a79e6"+dependencies = [+ "aws-smithy-async",+ "aws-smithy-types",+ "bytes",+ "http 0.2.12",+ "http 1.4.0",+ "pin-project-lite",+ "tokio",+ "tracing",+ "zeroize",+]++[[package]]+name = "aws-smithy-types"+version = "1.4.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d73dbfbaa8e4bc57b9045137680b958d274823509a360abfd8e1d514d40c95c"+dependencies = [+ "base64-simd",+ "bytes",+ "bytes-utils",+ "futures-core",+ "http 0.2.12",+ "http 1.4.0",+ "http-body 0.4.6",+ "http-body 1.0.1",+ "http-body-util",+ "itoa",+ "num-integer",+ "pin-project-lite",+ "pin-utils",+ "ryu",+ "serde",+ "time",+ "tokio",+ "tokio-util",+]++[[package]]+name = "aws-smithy-xml"+version = "0.60.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ce02add1aa3677d022f8adf81dcbe3046a95f17a1b1e8979c145cd21d3d22b3"+dependencies = [+ "xmlparser",+]++[[package]]+name = "aws-types"+version = "1.3.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "47c8323699dd9b3c8d5b3c13051ae9cdef58fd179957c882f8374dd8725962d9"+dependencies = [+ "aws-credential-types",+ "aws-smithy-async",+ "aws-smithy-runtime-api",+ "aws-smithy-types",+ "rustc_version",+ "tracing",+]++[[package]]+name = "base16ct"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce"++[[package]]+name = "base64"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"++[[package]]+name = "base64-simd"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195"+dependencies = [+ "outref",+ "vsimd",+]++[[package]]+name = "base64ct"+version = "1.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"++[[package]]+name = "bitflags"+version = "2.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"++[[package]]+name = "block-buffer"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"+dependencies = [+ "generic-array",+]++[[package]]+name = "bumpalo"+version = "3.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"++[[package]]+name = "byteorder"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"++[[package]]+name = "bytes"+version = "1.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"++[[package]]+name = "bytes-utils"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dafe3a8757b027e2be6e4e5601ed563c55989fcf1546e933c66c8eb3a058d35"+dependencies = [+ "bytes",+ "either",+]++[[package]]+name = "bzip2"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49ecfb22d906f800d4fe833b6282cf4dc1c298f5057ca0b5445e5c209735ca47"+dependencies = [+ "bzip2-sys",+]++[[package]]+name = "bzip2-sys"+version = "0.1.13+1.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14"+dependencies = [+ "cc",+ "pkg-config",+]++[[package]]+name = "cc"+version = "1.2.57"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423"+dependencies = [+ "find-msvc-tools",+ "jobserver",+ "libc",+ "shlex",+]++[[package]]+name = "cfg-if"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"++[[package]]+name = "cipher"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"+dependencies = [+ "crypto-common",+ "inout",+]++[[package]]+name = "cmake"+version = "0.1.57"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d"+dependencies = [+ "cc",+]++[[package]]+name = "const-oid"+version = "0.9.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"++[[package]]+name = "constant_time_eq"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"++[[package]]+name = "core-foundation"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "core-foundation-sys"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"++[[package]]+name = "cpufeatures"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"+dependencies = [+ "libc",+]++[[package]]+name = "crc"+version = "3.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9710d3b3739c2e349eb44fe848ad0b7c8cb1e42bd87ee49371df2f7acaf3e675"+dependencies = [+ "crc-catalog",+]++[[package]]+name = "crc-catalog"+version = "2.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"++[[package]]+name = "crc-fast"+version = "1.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2fd92aca2c6001b1bf5ba0ff84ee74ec8501b52bbef0cac80bf25a6c1d87a83d"+dependencies = [+ "crc",+ "digest",+ "rustversion",+ "spin",+]++[[package]]+name = "crc32fast"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"+dependencies = [+ "cfg-if",+]++[[package]]+name = "crossbeam-utils"+version = "0.8.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"++[[package]]+name = "crunchy"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"++[[package]]+name = "crypto-bigint"+version = "0.4.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef"+dependencies = [+ "generic-array",+ "rand_core",+ "subtle",+ "zeroize",+]++[[package]]+name = "crypto-bigint"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76"+dependencies = [+ "rand_core",+ "subtle",+]++[[package]]+name = "crypto-common"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "deflate64"+version = "0.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac6b926516df9c60bfa16e107b21086399f8285a44ca9711344b9e553c5146e2"++[[package]]+name = "der"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de"+dependencies = [+ "const-oid",+ "zeroize",+]++[[package]]+name = "deranged"+version = "0.5.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"+dependencies = [+ "powerfmt",+]++[[package]]+name = "derive_arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "digest"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"+dependencies = [+ "block-buffer",+ "crypto-common",+ "subtle",+]++[[package]]+name = "displaydoc"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "dunce"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"++[[package]]+name = "ecdsa"+version = "0.14.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c"+dependencies = [+ "der",+ "elliptic-curve",+ "rfc6979",+ "signature",+]++[[package]]+name = "either"+version = "1.15.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"++[[package]]+name = "elliptic-curve"+version = "0.12.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3"+dependencies = [+ "base16ct",+ "crypto-bigint 0.4.9",+ "der",+ "digest",+ "ff",+ "generic-array",+ "group",+ "pkcs8",+ "rand_core",+ "sec1",+ "subtle",+ "zeroize",+]++[[package]]+name = "equivalent"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"++[[package]]+name = "errno"+version = "0.3.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "fastrand"+version = "2.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"++[[package]]+name = "ff"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160"+dependencies = [+ "rand_core",+ "subtle",+]++[[package]]+name = "find-msvc-tools"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"++[[package]]+name = "flate2"+version = "1.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"+dependencies = [+ "crc32fast",+ "miniz_oxide",+]++[[package]]+name = "fnv"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"++[[package]]+name = "foldhash"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"++[[package]]+name = "form_urlencoded"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"+dependencies = [+ "percent-encoding",+]++[[package]]+name = "fs_extra"+version = "1.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"++[[package]]+name = "futures"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-executor",+ "futures-io",+ "futures-sink",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-channel"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"+dependencies = [+ "futures-core",+ "futures-sink",+]++[[package]]+name = "futures-core"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"++[[package]]+name = "futures-executor"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"+dependencies = [+ "futures-core",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-io"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"++[[package]]+name = "futures-macro"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "futures-sink"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"++[[package]]+name = "futures-task"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"++[[package]]+name = "futures-util"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-macro",+ "futures-sink",+ "futures-task",+ "memchr",+ "pin-project-lite",+ "slab",+]++[[package]]+name = "generic-array"+version = "0.14.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "getrandom"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"+dependencies = [+ "cfg-if",+ "libc",+ "wasi",+]++[[package]]+name = "getrandom"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "r-efi",+ "wasip2",+ "wasm-bindgen",+]++[[package]]+name = "group"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7"+dependencies = [+ "ff",+ "rand_core",+ "subtle",+]++[[package]]+name = "h2"+version = "0.3.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d"+dependencies = [+ "bytes",+ "fnv",+ "futures-core",+ "futures-sink",+ "futures-util",+ "http 0.2.12",+ "indexmap",+ "slab",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "h2"+version = "0.4.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54"+dependencies = [+ "atomic-waker",+ "bytes",+ "fnv",+ "futures-core",+ "futures-sink",+ "http 1.4.0",+ "indexmap",+ "slab",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "half"+version = "2.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"+dependencies = [+ "cfg-if",+ "crunchy",+ "zerocopy",+]++[[package]]+name = "hashbrown"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"+dependencies = [+ "allocator-api2",+ "equivalent",+ "foldhash",+]++[[package]]+name = "hex"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"++[[package]]+name = "hmac"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"+dependencies = [+ "digest",+]++[[package]]+name = "http"+version = "0.2.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"+dependencies = [+ "bytes",+ "fnv",+ "itoa",+]++[[package]]+name = "http"+version = "1.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"+dependencies = [+ "bytes",+ "itoa",+]++[[package]]+name = "http-body"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"+dependencies = [+ "bytes",+ "http 0.2.12",+ "pin-project-lite",+]++[[package]]+name = "http-body"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"+dependencies = [+ "bytes",+ "http 1.4.0",+]++[[package]]+name = "http-body-util"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"+dependencies = [+ "bytes",+ "futures-core",+ "http 1.4.0",+ "http-body 1.0.1",+ "pin-project-lite",+]++[[package]]+name = "httparse"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"++[[package]]+name = "httpdate"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"++[[package]]+name = "hyper"+version = "0.14.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7"+dependencies = [+ "bytes",+ "futures-channel",+ "futures-core",+ "futures-util",+ "h2 0.3.27",+ "http 0.2.12",+ "http-body 0.4.6",+ "httparse",+ "httpdate",+ "itoa",+ "pin-project-lite",+ "socket2 0.5.10",+ "tokio",+ "tower-service",+ "tracing",+ "want",+]++[[package]]+name = "hyper"+version = "1.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11"+dependencies = [+ "atomic-waker",+ "bytes",+ "futures-channel",+ "futures-core",+ "h2 0.4.13",+ "http 1.4.0",+ "http-body 1.0.1",+ "httparse",+ "itoa",+ "pin-project-lite",+ "pin-utils",+ "smallvec",+ "tokio",+ "want",+]++[[package]]+name = "hyper-rustls"+version = "0.24.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"+dependencies = [+ "futures-util",+ "http 0.2.12",+ "hyper 0.14.32",+ "log",+ "rustls 0.21.12",+ "tokio",+ "tokio-rustls 0.24.1",+]++[[package]]+name = "hyper-rustls"+version = "0.27.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"+dependencies = [+ "http 1.4.0",+ "hyper 1.8.1",+ "hyper-util",+ "rustls 0.23.37",+ "rustls-native-certs",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls 0.26.4",+ "tower-service",+]++[[package]]+name = "hyper-util"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"+dependencies = [+ "base64",+ "bytes",+ "futures-channel",+ "futures-util",+ "http 1.4.0",+ "http-body 1.0.1",+ "hyper 1.8.1",+ "ipnet",+ "libc",+ "percent-encoding",+ "pin-project-lite",+ "socket2 0.6.3",+ "tokio",+ "tower-service",+ "tracing",+]++[[package]]+name = "icu_collections"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"+dependencies = [+ "displaydoc",+ "potential_utf",+ "yoke",+ "zerofrom",+ "zerovec",+]++[[package]]+name = "icu_locale_core"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"+dependencies = [+ "displaydoc",+ "litemap",+ "tinystr",+ "writeable",+ "zerovec",+]++[[package]]+name = "icu_normalizer"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"+dependencies = [+ "icu_collections",+ "icu_normalizer_data",+ "icu_properties",+ "icu_provider",+ "smallvec",+ "zerovec",+]++[[package]]+name = "icu_normalizer_data"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"++[[package]]+name = "icu_properties"+version = "2.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec"+dependencies = [+ "icu_collections",+ "icu_locale_core",+ "icu_properties_data",+ "icu_provider",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "icu_properties_data"+version = "2.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af"++[[package]]+name = "icu_provider"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"+dependencies = [+ "displaydoc",+ "icu_locale_core",+ "writeable",+ "yoke",+ "zerofrom",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "idna"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"+dependencies = [+ "idna_adapter",+ "smallvec",+ "utf8_iter",+]++[[package]]+name = "idna_adapter"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"+dependencies = [+ "icu_normalizer",+ "icu_properties",+]++[[package]]+name = "indexmap"+version = "2.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"+dependencies = [+ "equivalent",+ "hashbrown",+]++[[package]]+name = "inout"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"+dependencies = [+ "generic-array",+]++[[package]]+name = "ipnet"+version = "2.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"++[[package]]+name = "iri-string"+version = "0.7.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "25e659a4bb38e810ebc252e53b5814ff908a8c58c2a9ce2fae1bbec24cbf4e20"+dependencies = [+ "memchr",+ "serde",+]++[[package]]+name = "itoa"+version = "1.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"++[[package]]+name = "jobserver"+version = "0.1.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"+dependencies = [+ "getrandom 0.3.4",+ "libc",+]++[[package]]+name = "js-sys"+version = "0.3.91"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c"+dependencies = [+ "once_cell",+ "wasm-bindgen",+]++[[package]]+name = "libc"+version = "0.2.183"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"++[[package]]+name = "litemap"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"++[[package]]+name = "lock_api"+version = "0.4.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"+dependencies = [+ "scopeguard",+]++[[package]]+name = "log"+version = "0.4.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"++[[package]]+name = "lru"+version = "0.16.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593"+dependencies = [+ "hashbrown",+]++[[package]]+name = "lzma-rs"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e"+dependencies = [+ "byteorder",+ "crc",+]++[[package]]+name = "lzma-sys"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"+dependencies = [+ "cc",+ "libc",+ "pkg-config",+]++[[package]]+name = "md-5"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"+dependencies = [+ "cfg-if",+ "digest",+]++[[package]]+name = "memchr"+version = "2.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"++[[package]]+name = "minicbor"+version = "0.24.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29be4f60e41fde478b36998b88821946aafac540e53591e76db53921a0cc225b"+dependencies = [+ "half",+ "minicbor-derive",+]++[[package]]+name = "minicbor-derive"+version = "0.15.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd2209fff77f705b00c737016a48e73733d7fbccb8b007194db148f03561fb70"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "miniz_oxide"+version = "0.8.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"+dependencies = [+ "adler2",+ "simd-adler32",+]++[[package]]+name = "mio"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc"+dependencies = [+ "libc",+ "wasi",+ "windows-sys 0.61.2",+]++[[package]]+name = "num-conv"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050"++[[package]]+name = "num-integer"+version = "0.1.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"+dependencies = [+ "num-traits",+]++[[package]]+name = "num-traits"+version = "0.2.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"+dependencies = [+ "autocfg",+]++[[package]]+name = "once_cell"+version = "1.21.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"++[[package]]+name = "openssl-probe"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"++[[package]]+name = "outref"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"++[[package]]+name = "p256"+version = "0.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594"+dependencies = [+ "ecdsa",+ "elliptic-curve",+ "sha2",+]++[[package]]+name = "parking_lot"+version = "0.12.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"+dependencies = [+ "lock_api",+ "parking_lot_core",+]++[[package]]+name = "parking_lot_core"+version = "0.9.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"+dependencies = [+ "cfg-if",+ "libc",+ "redox_syscall",+ "smallvec",+ "windows-link",+]++[[package]]+name = "pbkdf2"+version = "0.12.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"+dependencies = [+ "digest",+ "hmac",+]++[[package]]+name = "percent-encoding"+version = "2.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"++[[package]]+name = "pin-project-lite"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"++[[package]]+name = "pin-utils"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"++[[package]]+name = "pkcs8"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba"+dependencies = [+ "der",+ "spki",+]++[[package]]+name = "pkg-config"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"++[[package]]+name = "potential_utf"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77"+dependencies = [+ "zerovec",+]++[[package]]+name = "powerfmt"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"++[[package]]+name = "proc-macro2"+version = "1.0.106"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "quote"+version = "1.0.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "r-efi"+version = "5.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"++[[package]]+name = "rand_core"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"+dependencies = [+ "getrandom 0.2.17",+]++[[package]]+name = "redox_syscall"+version = "0.5.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"+dependencies = [+ "bitflags",+]++[[package]]+name = "regex-lite"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973"++[[package]]+name = "reqwest"+version = "0.12.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"+dependencies = [+ "base64",+ "bytes",+ "futures-core",+ "http 1.4.0",+ "http-body 1.0.1",+ "http-body-util",+ "hyper 1.8.1",+ "hyper-util",+ "js-sys",+ "log",+ "percent-encoding",+ "pin-project-lite",+ "serde",+ "serde_json",+ "serde_urlencoded",+ "sync_wrapper",+ "tokio",+ "tower",+ "tower-http",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+]++[[package]]+name = "rfc6979"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb"+dependencies = [+ "crypto-bigint 0.4.9",+ "hmac",+ "zeroize",+]++[[package]]+name = "ring"+version = "0.17.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"+dependencies = [+ "cc",+ "cfg-if",+ "getrandom 0.2.17",+ "libc",+ "untrusted",+ "windows-sys 0.52.0",+]++[[package]]+name = "rustc_version"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"+dependencies = [+ "semver",+]++[[package]]+name = "rustls"+version = "0.21.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e"+dependencies = [+ "log",+ "ring",+ "rustls-webpki 0.101.7",+ "sct",+]++[[package]]+name = "rustls"+version = "0.23.37"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4"+dependencies = [+ "aws-lc-rs",+ "once_cell",+ "rustls-pki-types",+ "rustls-webpki 0.103.10",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustls-native-certs"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63"+dependencies = [+ "openssl-probe",+ "rustls-pki-types",+ "schannel",+ "security-framework",+]++[[package]]+name = "rustls-pki-types"+version = "1.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd"+dependencies = [+ "zeroize",+]++[[package]]+name = "rustls-webpki"+version = "0.101.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"+dependencies = [+ "ring",+ "untrusted",+]++[[package]]+name = "rustls-webpki"+version = "0.103.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"+dependencies = [+ "aws-lc-rs",+ "ring",+ "rustls-pki-types",+ "untrusted",+]++[[package]]+name = "rustversion"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"++[[package]]+name = "ryu"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"++[[package]]+name = "schannel"+version = "0.1.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "scopeguard"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"++[[package]]+name = "sct"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"+dependencies = [+ "ring",+ "untrusted",+]++[[package]]+name = "sdk-test-rust"+version = "0.1.0"+dependencies = [+ "aws-config",+ "aws-credential-types",+ "aws-sdk-cloudformation",+ "aws-sdk-cloudwatch",+ "aws-sdk-cognitoidentityprovider",+ "aws-sdk-dynamodb",+ "aws-sdk-iam",+ "aws-sdk-kinesis",+ "aws-sdk-kms",+ "aws-sdk-lambda",+ "aws-sdk-s3",+ "aws-sdk-secretsmanager",+ "aws-sdk-sns",+ "aws-sdk-sqs",+ "aws-sdk-ssm",+ "aws-sdk-sts",+ "aws-smithy-types",+ "aws-types",+ "bytes",+ "futures",+ "reqwest",+ "tokio",+ "tokio-test",+ "zip",+]++[[package]]+name = "sec1"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928"+dependencies = [+ "base16ct",+ "der",+ "generic-array",+ "pkcs8",+ "subtle",+ "zeroize",+]++[[package]]+name = "security-framework"+version = "3.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"+dependencies = [+ "bitflags",+ "core-foundation",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "semver"+version = "1.0.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"++[[package]]+name = "serde"+version = "1.0.228"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"+dependencies = [+ "serde_core",+ "serde_derive",+]++[[package]]+name = "serde_core"+version = "1.0.228"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde_derive"+version = "1.0.228"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "serde_json"+version = "1.0.149"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"+dependencies = [+ "itoa",+ "memchr",+ "serde",+ "serde_core",+ "zmij",+]++[[package]]+name = "serde_urlencoded"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"+dependencies = [+ "form_urlencoded",+ "itoa",+ "ryu",+ "serde",+]++[[package]]+name = "sha1"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "sha2"+version = "0.10.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "shlex"+version = "1.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"++[[package]]+name = "signal-hook-registry"+version = "1.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"+dependencies = [+ "errno",+ "libc",+]++[[package]]+name = "signature"+version = "1.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c"+dependencies = [+ "digest",+ "rand_core",+]++[[package]]+name = "simd-adler32"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"++[[package]]+name = "slab"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"++[[package]]+name = "smallvec"+version = "1.15.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"++[[package]]+name = "socket2"+version = "0.5.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"+dependencies = [+ "libc",+ "windows-sys 0.52.0",+]++[[package]]+name = "socket2"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "spin"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d5fe4ccb98d9c292d56fec89a5e07da7fc4cf0dc11e156b41793132775d3e591"++[[package]]+name = "spki"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b"+dependencies = [+ "base64ct",+ "der",+]++[[package]]+name = "stable_deref_trait"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"++[[package]]+name = "subtle"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"++[[package]]+name = "syn"+version = "2.0.117"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "sync_wrapper"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"+dependencies = [+ "futures-core",+]++[[package]]+name = "synstructure"+version = "0.13.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "thiserror"+version = "2.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"+dependencies = [+ "thiserror-impl",+]++[[package]]+name = "thiserror-impl"+version = "2.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "time"+version = "0.3.47"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"+dependencies = [+ "deranged",+ "num-conv",+ "powerfmt",+ "serde_core",+ "time-core",+ "time-macros",+]++[[package]]+name = "time-core"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"++[[package]]+name = "time-macros"+version = "0.2.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"+dependencies = [+ "num-conv",+ "time-core",+]++[[package]]+name = "tinystr"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869"+dependencies = [+ "displaydoc",+ "zerovec",+]++[[package]]+name = "tokio"+version = "1.50.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d"+dependencies = [+ "bytes",+ "libc",+ "mio",+ "parking_lot",+ "pin-project-lite",+ "signal-hook-registry",+ "socket2 0.6.3",+ "tokio-macros",+ "windows-sys 0.61.2",+]++[[package]]+name = "tokio-macros"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c55a2eff8b69ce66c84f85e1da1c233edc36ceb85a2058d11b0d6a3c7e7569c"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "tokio-rustls"+version = "0.24.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"+dependencies = [+ "rustls 0.21.12",+ "tokio",+]++[[package]]+name = "tokio-rustls"+version = "0.26.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"+dependencies = [+ "rustls 0.23.37",+ "tokio",+]++[[package]]+name = "tokio-stream"+version = "0.1.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32da49809aab5c3bc678af03902d4ccddea2a87d028d86392a4b1560c6906c70"+dependencies = [+ "futures-core",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tokio-test"+version = "0.4.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f6d24790a10a7af737693a3e8f1d03faef7e6ca0cc99aae5066f533766de545"+dependencies = [+ "futures-core",+ "tokio",+ "tokio-stream",+]++[[package]]+name = "tokio-util"+version = "0.7.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"+dependencies = [+ "bytes",+ "futures-core",+ "futures-sink",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tower"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"+dependencies = [+ "futures-core",+ "futures-util",+ "pin-project-lite",+ "sync_wrapper",+ "tokio",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-http"+version = "0.6.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8"+dependencies = [+ "bitflags",+ "bytes",+ "futures-util",+ "http 1.4.0",+ "http-body 1.0.1",+ "iri-string",+ "pin-project-lite",+ "tower",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-layer"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"++[[package]]+name = "tower-service"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"++[[package]]+name = "tracing"+version = "0.1.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"+dependencies = [+ "pin-project-lite",+ "tracing-attributes",+ "tracing-core",+]++[[package]]+name = "tracing-attributes"+version = "0.1.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "tracing-core"+version = "0.1.36"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"+dependencies = [+ "once_cell",+]++[[package]]+name = "try-lock"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"++[[package]]+name = "typenum"+version = "1.19.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"++[[package]]+name = "unicode-ident"+version = "1.0.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"++[[package]]+name = "untrusted"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"++[[package]]+name = "url"+version = "2.5.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"+dependencies = [+ "form_urlencoded",+ "idna",+ "percent-encoding",+ "serde",+]++[[package]]+name = "urlencoding"+version = "2.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"++[[package]]+name = "utf8_iter"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"++[[package]]+name = "uuid"+version = "1.22.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"++[[package]]+name = "vsimd"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"++[[package]]+name = "want"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"+dependencies = [+ "try-lock",+]++[[package]]+name = "wasi"+version = "0.11.1+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"++[[package]]+name = "wasip2"+version = "1.0.2+wasi-0.2.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"+dependencies = [+ "wit-bindgen",+]++[[package]]+name = "wasm-bindgen"+version = "0.2.114"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e"+dependencies = [+ "cfg-if",+ "once_cell",+ "rustversion",+ "wasm-bindgen-macro",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-futures"+version = "0.4.64"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8"+dependencies = [+ "cfg-if",+ "futures-util",+ "js-sys",+ "once_cell",+ "wasm-bindgen",+ "web-sys",+]++[[package]]+name = "wasm-bindgen-macro"+version = "0.2.114"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6"+dependencies = [+ "quote",+ "wasm-bindgen-macro-support",+]++[[package]]+name = "wasm-bindgen-macro-support"+version = "0.2.114"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3"+dependencies = [+ "bumpalo",+ "proc-macro2",+ "quote",+ "syn",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-shared"+version = "0.2.114"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "web-sys"+version = "0.3.91"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "windows-link"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"++[[package]]+name = "windows-sys"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"+dependencies = [+ "windows-targets",+]++[[package]]+name = "windows-sys"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"+dependencies = [+ "windows-link",+]++[[package]]+name = "windows-targets"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"+dependencies = [+ "windows_aarch64_gnullvm",+ "windows_aarch64_msvc",+ "windows_i686_gnu",+ "windows_i686_gnullvm",+ "windows_i686_msvc",+ "windows_x86_64_gnu",+ "windows_x86_64_gnullvm",+ "windows_x86_64_msvc",+]++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"++[[package]]+name = "windows_aarch64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"++[[package]]+name = "windows_i686_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"++[[package]]+name = "windows_i686_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"++[[package]]+name = "windows_i686_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"++[[package]]+name = "windows_x86_64_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"++[[package]]+name = "windows_x86_64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"++[[package]]+name = "wit-bindgen"+version = "0.51.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"++[[package]]+name = "writeable"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"++[[package]]+name = "xmlparser"+version = "0.13.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4"++[[package]]+name = "xz2"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"+dependencies = [+ "lzma-sys",+]++[[package]]+name = "yoke"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954"+dependencies = [+ "stable_deref_trait",+ "yoke-derive",+ "zerofrom",+]++[[package]]+name = "yoke-derive"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+ "synstructure",+]++[[package]]+name = "zerocopy"+version = "0.8.48"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"+dependencies = [+ "zerocopy-derive",+]++[[package]]+name = "zerocopy-derive"+version = "0.8.48"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "zerofrom"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"+dependencies = [+ "zerofrom-derive",+]++[[package]]+name = "zerofrom-derive"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+ "synstructure",+]++[[package]]+name = "zeroize"+version = "1.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"+dependencies = [+ "zeroize_derive",+]++[[package]]+name = "zeroize_derive"+version = "1.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "zerotrie"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851"+dependencies = [+ "displaydoc",+ "yoke",+ "zerofrom",+]++[[package]]+name = "zerovec"+version = "0.11.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002"+dependencies = [+ "yoke",+ "zerofrom",+ "zerovec-derive",+]++[[package]]+name = "zerovec-derive"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "zip"+version = "2.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fabe6324e908f85a1c52063ce7aa26b68dcb7eb6dbc83a2d148403c9bc3eba50"+dependencies = [+ "aes",+ "arbitrary",+ "bzip2",+ "constant_time_eq",+ "crc32fast",+ "crossbeam-utils",+ "deflate64",+ "displaydoc",+ "flate2",+ "getrandom 0.3.4",+ "hmac",+ "indexmap",+ "lzma-rs",+ "memchr",+ "pbkdf2",+ "sha1",+ "thiserror",+ "time",+ "xz2",+ "zeroize",+ "zopfli",+ "zstd",+]++[[package]]+name = "zmij"+version = "1.0.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"++[[package]]+name = "zopfli"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249"+dependencies = [+ "bumpalo",+ "crc32fast",+ "log",+ "simd-adler32",+]++[[package]]+name = "zstd"+version = "0.13.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"+dependencies = [+ "zstd-safe",+]++[[package]]+name = "zstd-safe"+version = "7.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d"+dependencies = [+ "zstd-sys",+]++[[package]]+name = "zstd-sys"+version = "2.0.16+zstd.1.5.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"+dependencies = [+ "cc",+ "pkg-config",+]diff --git a/compatibility-tests/sdk-test-rust/Cargo.toml b/compatibility-tests/sdk-test-rust/Cargo.tomlnew file mode 100644index 0000000000..f8c2b748e0--- /dev/null+++ b/compatibility-tests/sdk-test-rust/Cargo.toml@@ -0,0 +1,36 @@+[package]+name = "sdk-test-rust"+version = "0.1.0"+edition = "2021"++[lib]+name = "sdk_test_rust"+path = "src/lib.rs"++[dependencies]+aws-config = "1"+aws-credential-types = { version = "1", features = ["hardcoded-credentials"] }+aws-sdk-s3 = "1"+aws-sdk-ssm = "1"+aws-sdk-sqs = "1"+aws-sdk-sns = "1"+aws-sdk-dynamodb = "1"+aws-sdk-iam = "1"+aws-sdk-sts = "1"+aws-sdk-secretsmanager = "1"+aws-sdk-kms = "1"+aws-sdk-kinesis = "1"+aws-sdk-lambda = "1"+aws-sdk-cloudwatch = "1"+aws-sdk-cognitoidentityprovider = "1"+aws-sdk-cloudformation = "1"+aws-smithy-types = "1"+aws-types = "1"+tokio = { version = "1", features = ["full"] }+bytes = "1"+reqwest = { version = "0.12", default-features = false }+zip = "2"++[dev-dependencies]+tokio-test = "0.4"+futures = "0.3"diff --git a/compatibility-tests/sdk-test-rust/Dockerfile b/compatibility-tests/sdk-test-rust/Dockerfilenew file mode 100644index 0000000000..29584749f8--- /dev/null+++ b/compatibility-tests/sdk-test-rust/Dockerfile@@ -0,0 +1,20 @@+FROM rust:1-alpine+RUN apk add --no-cache musl-dev pkgconf openssl-dev ca-certificates+WORKDIR /app++# Install cargo-nextest+RUN cargo install cargo-nextest --locked++COPY Cargo.toml Cargo.lock ./+# pre-fetch dependencies+RUN mkdir src tests && echo "" > src/lib.rs && cargo fetch && rm -rf src tests++COPY . .++ENV FLOCI_ENDPOINT=http://floci:4566+ENV AWS_ACCESS_KEY_ID=test+ENV AWS_SECRET_ACCESS_KEY=test+ENV AWS_DEFAULT_REGION=us-east-1++RUN mkdir -p /results+ENTRYPOINT ["cargo", "nextest", "run", "--profile", "ci"]diff --git a/compatibility-tests/sdk-test-rust/README.md b/compatibility-tests/sdk-test-rust/README.mdnew file mode 100644index 0000000000..4fcf2a2d5e--- /dev/null+++ b/compatibility-tests/sdk-test-rust/README.md@@ -0,0 +1,60 @@+# 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+```diff --git a/compatibility-tests/sdk-test-rust/src/lib.rs b/compatibility-tests/sdk-test-rust/src/lib.rsnew file mode 100644index 0000000000..59164e5e71--- /dev/null+++ b/compatibility-tests/sdk-test-rust/src/lib.rs@@ -0,0 +1,113 @@+//! Shared test utilities for Floci SDK tests.++use aws_config::BehaviorVersion;+use aws_credential_types::Credentials;++/// Returns the Floci endpoint from environment or default.+pub fn endpoint() -> String {+ std::env::var("FLOCI_ENDPOINT").unwrap_or_else(|_| "http://localhost:4566".into())+}++/// Returns a base AWS SDK config for the Floci endpoint.+pub async fn base_config() -> aws_config::SdkConfig {+ let endpoint = endpoint();+ let creds = Credentials::new("test", "test", None, None, "static");+ aws_config::defaults(BehaviorVersion::latest())+ .region(aws_types::region::Region::new("us-east-1"))+ .credentials_provider(creds)+ .endpoint_url(endpoint)+ .load()+ .await+}++/// Returns an SSM client.+pub async fn ssm_client() -> aws_sdk_ssm::Client {+ aws_sdk_ssm::Client::new(&base_config().await)+}++/// Returns an SQS client.+pub async fn sqs_client() -> aws_sdk_sqs::Client {+ aws_sdk_sqs::Client::new(&base_config().await)+}++/// Returns an SNS client.+pub async fn sns_client() -> aws_sdk_sns::Client {+ aws_sdk_sns::Client::new(&base_config().await)+}++/// Returns an S3 client with path-style addressing.+pub async fn s3_client() -> aws_sdk_s3::Client {+ aws_sdk_s3::Client::from_conf(+ aws_sdk_s3::config::Builder::from(&base_config().await)+ .force_path_style(true)+ .build(),+ )+}++/// Returns a DynamoDB client.+pub async fn dynamodb_client() -> aws_sdk_dynamodb::Client {+ aws_sdk_dynamodb::Client::new(&base_config().await)+}++/// Returns a Lambda client.+pub async fn lambda_client() -> aws_sdk_lambda::Client {+ aws_sdk_lambda::Client::new(&base_config().await)+}++/// Returns an IAM client.+pub async fn iam_client() -> aws_sdk_iam::Client {+ aws_sdk_iam::Client::new(&base_config().await)+}++/// Returns an STS client.+pub async fn sts_client() -> aws_sdk_sts::Client {+ aws_sdk_sts::Client::new(&base_config().await)+}++/// Returns a Secrets Manager client.+pub async fn secretsmanager_client() -> aws_sdk_secretsmanager::Client {+ aws_sdk_secretsmanager::Client::new(&base_config().await)+}++/// Returns a KMS client.+pub async fn kms_client() -> aws_sdk_kms::Client {+ aws_sdk_kms::Client::new(&base_config().await)+}++/// Returns a Kinesis client.+pub async fn kinesis_client() -> aws_sdk_kinesis::Client {+ aws_sdk_kinesis::Client::new(&base_config().await)+}++/// Returns a CloudWatch client.+pub async fn cloudwatch_client() -> aws_sdk_cloudwatch::Client {+ aws_sdk_cloudwatch::Client::new(&base_config().await)+}++/// Returns a Cognito Identity Provider client.+pub async fn cognito_client() -> aws_sdk_cognitoidentityprovider::Client {+ aws_sdk_cognitoidentityprovider::Client::new(&base_config().await)+}++/// Returns a CloudFormation client.+pub async fn cloudformation_client() -> aws_sdk_cloudformation::Client {+ aws_sdk_cloudformation::Client::new(&base_config().await)+}++/// Returns a minimal Lambda deployment zip with a Node.js handler.+pub fn minimal_zip() -> Vec<u8> {+ use std::io::Write;+ let code = r#"exports.handler = async (event) => {+ const name = (event && event.name) ? event.name : "World";+ return { statusCode: 200, body: JSON.stringify({ message: "Hello, " + name + "!" }) };+};"#;+ let mut buf = Vec::new();+ {+ let mut zip = zip::ZipWriter::new(std::io::Cursor::new(&mut buf));+ let options = zip::write::SimpleFileOptions::default();+ zip.start_file("index.js", options).unwrap();+ zip.write_all(code.as_bytes()).unwrap();+ zip.finish().unwrap();+ }+ buf+}diff --git a/compatibility-tests/sdk-test-rust/tests/cloudformation_test.rs b/compatibility-tests/sdk-test-rust/tests/cloudformation_test.rsnew file mode 100644index 0000000000..0d99ee5918--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/cloudformation_test.rs@@ -0,0 +1,139 @@+mod common;++#[tokio::test(flavor = "multi_thread")]+async fn test_cloudformation_create_stack() {+ let cfn = common::cloudformation_client().await;+ let stack_name = "rust-test-stack";+ let template = r#"{+ "AWSTemplateFormatVersion": "2010-09-09",+ "Description": "Test stack",+ "Resources": {+ "TestQueue": {+ "Type": "AWS::SQS::Queue",+ "Properties": {+ "QueueName": "cfn-rust-queue"+ }+ }+ }+ }"#;++ let _guard = common::CleanupGuard::new({+ let cfn = cfn.clone();+ async move {+ let _ = cfn.delete_stack().stack_name(stack_name).send().await;+ }+ });++ let result = cfn+ .create_stack()+ .stack_name(stack_name)+ .template_body(template)+ .send()+ .await;+ assert!(result.is_ok(), "CreateStack failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_cloudformation_describe_stacks() {+ let cfn = common::cloudformation_client().await;+ let stack_name = "rust-test-describe-stack";+ let template = r#"{+ "AWSTemplateFormatVersion": "2010-09-09",+ "Description": "Test stack",+ "Resources": {+ "TestQueue": {+ "Type": "AWS::SQS::Queue",+ "Properties": {+ "QueueName": "cfn-rust-describe-queue"+ }+ }+ }+ }"#;++ let _guard = common::CleanupGuard::new({+ let cfn = cfn.clone();+ async move {+ let _ = cfn.delete_stack().stack_name(stack_name).send().await;+ }+ });++ // Setup+ cfn.create_stack()+ .stack_name(stack_name)+ .template_body(template)+ .send()+ .await+ .expect("setup");++ let result = cfn.describe_stacks().stack_name(stack_name).send().await;+ assert!(result.is_ok(), "DescribeStacks failed: {:?}", result.err());+ assert!(!result.unwrap().stacks().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_cloudformation_list_stacks() {+ let cfn = common::cloudformation_client().await;+ let stack_name = "rust-test-list-stacks";+ let template = r#"{+ "AWSTemplateFormatVersion": "2010-09-09",+ "Description": "Test stack",+ "Resources": {+ "TestQueue": {+ "Type": "AWS::SQS::Queue",+ "Properties": {+ "QueueName": "cfn-rust-list-queue"+ }+ }+ }+ }"#;++ let _guard = common::CleanupGuard::new({+ let cfn = cfn.clone();+ async move {+ let _ = cfn.delete_stack().stack_name(stack_name).send().await;+ }+ });++ // Setup+ cfn.create_stack()+ .stack_name(stack_name)+ .template_body(template)+ .send()+ .await+ .expect("setup");++ let result = cfn.list_stacks().send().await;+ assert!(result.is_ok(), "ListStacks failed: {:?}", result.err());+ assert!(!result.unwrap().stack_summaries().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_cloudformation_delete_stack() {+ let cfn = common::cloudformation_client().await;+ let stack_name = "rust-test-delete-stack";+ let template = r#"{+ "AWSTemplateFormatVersion": "2010-09-09",+ "Description": "Test stack",+ "Resources": {+ "TestQueue": {+ "Type": "AWS::SQS::Queue",+ "Properties": {+ "QueueName": "cfn-rust-delete-queue"+ }+ }+ }+ }"#;++ // No cleanup guard needed - test is about deletion++ // Setup+ cfn.create_stack()+ .stack_name(stack_name)+ .template_body(template)+ .send()+ .await+ .expect("setup");++ let result = cfn.delete_stack().stack_name(stack_name).send().await;+ assert!(result.is_ok(), "DeleteStack failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/cloudwatch_test.rs b/compatibility-tests/sdk-test-rust/tests/cloudwatch_test.rsnew file mode 100644index 0000000000..bbec14ce9a--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/cloudwatch_test.rs@@ -0,0 +1,143 @@+mod common;++use aws_sdk_cloudwatch::types::{MetricDatum, StandardUnit, Statistic};++#[tokio::test]+async fn test_cloudwatch_put_metric_data() {+ let cw = common::cloudwatch_client().await;+ let namespace = "RustTest";++ let result = cw+ .put_metric_data()+ .namespace(namespace)+ .metric_data(+ MetricDatum::builder()+ .metric_name("RequestCount")+ .value(42.0)+ .unit(StandardUnit::Count)+ .build(),+ )+ .send()+ .await;+ assert!(result.is_ok(), "PutMetricData failed: {:?}", result.err());+}++#[tokio::test]+async fn test_cloudwatch_list_metrics() {+ let cw = common::cloudwatch_client().await;+ let namespace = "RustTestList";++ // Setup+ cw.put_metric_data()+ .namespace(namespace)+ .metric_data(+ MetricDatum::builder()+ .metric_name("TestMetric")+ .value(1.0)+ .unit(StandardUnit::Count)+ .build(),+ )+ .send()+ .await+ .expect("setup");++ let result = cw.list_metrics().namespace(namespace).send().await;+ assert!(result.is_ok(), "ListMetrics failed: {:?}", result.err());+ assert!(!result.unwrap().metrics().is_empty());+}++#[tokio::test]+async fn test_cloudwatch_get_metric_statistics() {+ let cw = common::cloudwatch_client().await;+ let namespace = "RustTestStats";++ // Setup+ cw.put_metric_data()+ .namespace(namespace)+ .metric_data(+ MetricDatum::builder()+ .metric_name("StatsMetric")+ .value(100.0)+ .unit(StandardUnit::Count)+ .build(),+ )+ .send()+ .await+ .expect("setup");++ let now = std::time::SystemTime::now();+ let five_mins_ago = now - std::time::Duration::from_secs(300);+ let one_min_future = now + std::time::Duration::from_secs(60);++ let result = cw+ .get_metric_statistics()+ .namespace(namespace)+ .metric_name("StatsMetric")+ .start_time(aws_smithy_types::DateTime::from(five_mins_ago))+ .end_time(aws_smithy_types::DateTime::from(one_min_future))+ .period(60)+ .statistics(Statistic::Sum)+ .send()+ .await;+ assert!(result.is_ok(), "GetMetricStatistics failed: {:?}", result.err());+ assert!(!result.unwrap().datapoints().is_empty());+}++#[tokio::test]+async fn test_cloudwatch_put_statistic_values() {+ let cw = common::cloudwatch_client().await;+ let namespace = "RustTestStatisticValues";++ // Setup: Put metric data with pre-calculated statistics+ let result = cw+ .put_metric_data()+ .namespace(namespace)+ .metric_data(+ MetricDatum::builder()+ .metric_name("AggregatedMetric")+ .statistic_values(+ aws_sdk_cloudwatch::types::StatisticSet::builder()+ .sample_count(5.0)+ .sum(150.0)+ .minimum(20.0)+ .maximum(40.0)+ .build(),+ )+ .unit(StandardUnit::Count)+ .build(),+ )+ .send()+ .await;+ assert!(result.is_ok(), "PutMetricData with StatisticValues failed: {:?}", result.err());++ // Query back the statistics+ let now = std::time::SystemTime::now();+ let five_mins_ago = now - std::time::Duration::from_secs(300);+ let one_min_future = now + std::time::Duration::from_secs(60);++ let result = cw+ .get_metric_statistics()+ .namespace(namespace)+ .metric_name("AggregatedMetric")+ .start_time(aws_smithy_types::DateTime::from(five_mins_ago))+ .end_time(aws_smithy_types::DateTime::from(one_min_future))+ .period(60)+ .statistics(Statistic::Sum)+ .statistics(Statistic::SampleCount)+ .statistics(Statistic::Minimum)+ .statistics(Statistic::Maximum)+ .statistics(Statistic::Average)+ .send()+ .await;+ assert!(result.is_ok(), "GetMetricStatistics failed: {:?}", result.err());++ let response = result.unwrap();+ assert!(!response.datapoints().is_empty(), "No datapoints returned");++ let dp = &response.datapoints()[0];+ assert_eq!(dp.sample_count(), Some(5.0), "SampleCount mismatch");+ assert_eq!(dp.sum(), Some(150.0), "Sum mismatch");+ assert_eq!(dp.minimum(), Some(20.0), "Minimum mismatch");+ assert_eq!(dp.maximum(), Some(40.0), "Maximum mismatch");+ assert_eq!(dp.average(), Some(30.0), "Average mismatch"); // sum / sampleCount = 150 / 5+}diff --git a/compatibility-tests/sdk-test-rust/tests/common/mod.rs b/compatibility-tests/sdk-test-rust/tests/common/mod.rsnew file mode 100644index 0000000000..bba9701e60--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/common/mod.rs@@ -0,0 +1,65 @@+//! Shared test utilities for integration tests.++pub use sdk_test_rust::*;++use std::future::Future;+use std::pin::Pin;++// Allow unused when tests don't use CleanupGuard (sts, kms, cloudwatch)+#[allow(dead_code)]+type BoxFuture = Pin<Box<dyn Future<Output = ()> + Send>>;++/// Guard that runs async cleanup when dropped, even on test panic.+///+/// **Important**: Tests using this guard must use multi-threaded runtime:+/// `#[tokio::test(flavor = "multi_thread")]`+///+/// # Example+/// ```ignore+/// #[tokio::test(flavor = "multi_thread")]+/// async fn test_example() {+/// let s3 = common::s3_client().await;+/// let bucket = "my-test-bucket";+///+/// // Create guard - cleanup runs when guard is dropped+/// let _guard = common::CleanupGuard::new({+/// let s3 = s3.clone();+/// let bucket = bucket.to_string();+/// async move {+/// let _ = s3.delete_bucket().bucket(&bucket).send().await;+/// }+/// });+///+/// // Test code - if this panics, cleanup still runs+/// s3.create_bucket().bucket(bucket).send().await.unwrap();+/// }+/// ```+// Allow unused in tests that don't need cleanup (sts, kms, cloudwatch)+#[allow(dead_code)]+pub struct CleanupGuard {+ cleanup: Option<BoxFuture>,+}++impl CleanupGuard {+ /// Create a new cleanup guard with the given async cleanup function.+ #[allow(dead_code)]+ pub fn new<F>(cleanup: F) -> Self+ where+ F: Future<Output = ()> + Send + 'static,+ {+ Self {+ cleanup: Some(Box::pin(cleanup)),+ }+ }+}++impl Drop for CleanupGuard {+ fn drop(&mut self) {+ if let Some(fut) = self.cleanup.take() {+ // Run async cleanup synchronously using the current tokio runtime+ tokio::task::block_in_place(|| {+ tokio::runtime::Handle::current().block_on(fut);+ });+ }+ }+}diff --git a/compatibility-tests/sdk-test-rust/tests/dynamodb_test.rs b/compatibility-tests/sdk-test-rust/tests/dynamodb_test.rsnew file mode 100644index 0000000000..a3069d7267--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/dynamodb_test.rs@@ -0,0 +1,311 @@+mod common;++use aws_sdk_dynamodb::types::{+ AttributeDefinition, AttributeValue, BillingMode, KeySchemaElement, KeyType,+ ScalarAttributeType,+};++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_create_table() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-create-table";++ let _guard = common::CleanupGuard::new({+ let ddb = ddb.clone();+ async move {+ let _ = ddb.delete_table().table_name(table).send().await;+ }+ });++ let result = ddb+ .create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await;+ assert!(result.is_ok(), "CreateTable failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_describe_table() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-describe-table";++ let _guard = common::CleanupGuard::new({+ let ddb = ddb.clone();+ async move {+ let _ = ddb.delete_table().table_name(table).send().await;+ }+ });++ // Setup+ ddb.create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await+ .expect("setup");++ let result = ddb.describe_table().table_name(table).send().await;+ assert!(result.is_ok(), "DescribeTable failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_list_tables() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-list-tables";++ let _guard = common::CleanupGuard::new({+ let ddb = ddb.clone();+ async move {+ let _ = ddb.delete_table().table_name(table).send().await;+ }+ });++ // Setup+ ddb.create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await+ .expect("setup");++ let result = ddb.list_tables().send().await;+ assert!(result.is_ok(), "ListTables failed: {:?}", result.err());+ assert!(!result.unwrap().table_names().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_put_and_get_item() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-put-get";++ let _guard = common::CleanupGuard::new({+ let ddb = ddb.clone();+ async move {+ let _ = ddb.delete_table().table_name(table).send().await;+ }+ });++ // Setup+ ddb.create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await+ .expect("setup");++ // Put+ let put = ddb+ .put_item()+ .table_name(table)+ .item("pk", AttributeValue::S("user#1".into()))+ .item("name", AttributeValue::S("Alice".into()))+ .send()+ .await;+ assert!(put.is_ok(), "PutItem failed: {:?}", put.err());++ // Get+ let get = ddb+ .get_item()+ .table_name(table)+ .key("pk", AttributeValue::S("user#1".into()))+ .send()+ .await;+ assert!(get.is_ok(), "GetItem failed: {:?}", get.err());++ let item = get.unwrap().item;+ assert!(item.is_some());+ let name = item+ .as_ref()+ .and_then(|i| i.get("name"))+ .and_then(|v| v.as_s().ok());+ assert_eq!(name, Some(&"Alice".to_string()));+}++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_query() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-query";++ let _guard = common::CleanupGuard::new({+ let ddb = ddb.clone();+ async move {+ let _ = ddb.delete_table().table_name(table).send().await;+ }+ });++ // Setup+ ddb.create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await+ .expect("setup");++ ddb.put_item()+ .table_name(table)+ .item("pk", AttributeValue::S("user#1".into()))+ .send()+ .await+ .expect("put");++ let result = ddb+ .query()+ .table_name(table)+ .key_condition_expression("pk = :pk")+ .expression_attribute_values(":pk", AttributeValue::S("user#1".into()))+ .send()+ .await;+ assert!(result.is_ok(), "Query failed: {:?}", result.err());+ assert!(!result.unwrap().items().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_scan() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-scan";++ let _guard = common::CleanupGuard::new({+ let ddb = ddb.clone();+ async move {+ let _ = ddb.delete_table().table_name(table).send().await;+ }+ });++ // Setup+ ddb.create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await+ .expect("setup");++ ddb.put_item()+ .table_name(table)+ .item("pk", AttributeValue::S("item#1".into()))+ .send()+ .await+ .expect("put");++ let result = ddb.scan().table_name(table).send().await;+ assert!(result.is_ok(), "Scan failed: {:?}", result.err());+ assert!(!result.unwrap().items().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_dynamodb_delete_table() {+ let ddb = common::dynamodb_client().await;+ let table = "rust-test-delete-table";++ // No cleanup guard needed - test is about deletion++ // Setup+ ddb.create_table()+ .table_name(table)+ .billing_mode(BillingMode::PayPerRequest)+ .attribute_definitions(+ AttributeDefinition::builder()+ .attribute_name("pk")+ .attribute_type(ScalarAttributeType::S)+ .build()+ .unwrap(),+ )+ .key_schema(+ KeySchemaElement::builder()+ .attribute_name("pk")+ .key_type(KeyType::Hash)+ .build()+ .unwrap(),+ )+ .send()+ .await+ .expect("setup");++ let result = ddb.delete_table().table_name(table).send().await;+ assert!(result.is_ok(), "DeleteTable failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/iam_test.rs b/compatibility-tests/sdk-test-rust/tests/iam_test.rsnew file mode 100644index 0000000000..a817f15e4f--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/iam_test.rs@@ -0,0 +1,98 @@+mod common;++#[tokio::test(flavor = "multi_thread")]+async fn test_iam_create_role() {+ let iam = common::iam_client().await;+ let role_name = "rust-test-create-role";+ let assume_policy = r#"{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}"#;++ let _guard = common::CleanupGuard::new({+ let iam = iam.clone();+ async move {+ let _ = iam.delete_role().role_name(role_name).send().await;+ }+ });++ let result = iam+ .create_role()+ .role_name(role_name)+ .assume_role_policy_document(assume_policy)+ .send()+ .await;+ assert!(result.is_ok(), "CreateRole failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_iam_get_role() {+ let iam = common::iam_client().await;+ let role_name = "rust-test-get-role";+ let assume_policy = r#"{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}"#;++ let _guard = common::CleanupGuard::new({+ let iam = iam.clone();+ async move {+ let _ = iam.delete_role().role_name(role_name).send().await;+ }+ });++ // Setup+ iam.create_role()+ .role_name(role_name)+ .assume_role_policy_document(assume_policy)+ .send()+ .await+ .expect("setup");++ let result = iam.get_role().role_name(role_name).send().await;+ assert!(result.is_ok(), "GetRole failed: {:?}", result.err());+ assert_eq!(+ result.unwrap().role().map(|r| r.role_name()).unwrap_or(""),+ role_name+ );+}++#[tokio::test(flavor = "multi_thread")]+async fn test_iam_list_roles() {+ let iam = common::iam_client().await;+ let role_name = "rust-test-list-roles";+ let assume_policy = r#"{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}"#;++ let _guard = common::CleanupGuard::new({+ let iam = iam.clone();+ async move {+ let _ = iam.delete_role().role_name(role_name).send().await;+ }+ });++ // Setup+ iam.create_role()+ .role_name(role_name)+ .assume_role_policy_document(assume_policy)+ .send()+ .await+ .expect("setup");++ let result = iam.list_roles().send().await;+ assert!(result.is_ok(), "ListRoles failed: {:?}", result.err());+ assert!(!result.unwrap().roles().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_iam_delete_role() {+ let iam = common::iam_client().await;+ let role_name = "rust-test-delete-role";+ let assume_policy = r#"{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"},"Action":"sts:AssumeRole"}]}"#;++ // No cleanup guard needed - test is about deletion++ // Setup+ iam.create_role()+ .role_name(role_name)+ .assume_role_policy_document(assume_policy)+ .send()+ .await+ .expect("setup");++ let result = iam.delete_role().role_name(role_name).send().await;+ assert!(result.is_ok(), "DeleteRole failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/kinesis_test.rs b/compatibility-tests/sdk-test-rust/tests/kinesis_test.rsnew file mode 100644index 0000000000..fb5f044f21--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/kinesis_test.rs@@ -0,0 +1,194 @@+mod common;++use aws_sdk_kinesis::types::ShardIteratorType;++#[tokio::test(flavor = "multi_thread")]+async fn test_kinesis_create_stream() {+ let kinesis = common::kinesis_client().await;+ let stream_name = "rust-test-create-stream";++ let _guard = common::CleanupGuard::new({+ let kinesis = kinesis.clone();+ async move {+ let _ = kinesis.delete_stream().stream_name(stream_name).send().await;+ }+ });++ let result = kinesis+ .create_stream()+ .stream_name(stream_name)+ .shard_count(1)+ .send()+ .await;+ assert!(result.is_ok(), "CreateStream failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_kinesis_list_streams() {+ let kinesis = common::kinesis_client().await;+ let stream_name = "rust-test-list-streams";++ let _guard = common::CleanupGuard::new({+ let kinesis = kinesis.clone();+ async move {+ let _ = kinesis.delete_stream().stream_name(stream_name).send().await;+ }+ });++ // Setup+ kinesis+ .create_stream()+ .stream_name(stream_name)+ .shard_count(1)+ .send()+ .await+ .expect("setup");++ let result = kinesis.list_streams().send().await;+ assert!(result.is_ok(), "ListStreams failed: {:?}", result.err());+ assert!(!result.unwrap().stream_names().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_kinesis_describe_stream() {+ let kinesis = common::kinesis_client().await;+ let stream_name = "rust-test-describe-stream";++ let _guard = common::CleanupGuard::new({+ let kinesis = kinesis.clone();+ async move {+ let _ = kinesis.delete_stream().stream_name(stream_name).send().await;+ }+ });++ // Setup+ kinesis+ .create_stream()+ .stream_name(stream_name)+ .shard_count(1)+ .send()+ .await+ .expect("setup");++ let result = kinesis.describe_stream().stream_name(stream_name).send().await;+ assert!(result.is_ok(), "DescribeStream failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_kinesis_put_record() {+ let kinesis = common::kinesis_client().await;+ let stream_name = "rust-test-put-record";++ let _guard = common::CleanupGuard::new({+ let kinesis = kinesis.clone();+ async move {+ let _ = kinesis.delete_stream().stream_name(stream_name).send().await;+ }+ });++ // Setup+ kinesis+ .create_stream()+ .stream_name(stream_name)+ .shard_count(1)+ .send()+ .await+ .expect("setup");++ let result = kinesis+ .put_record()+ .stream_name(stream_name)+ .data(aws_smithy_types::Blob::new(b"{\"event\":\"rust-test\"}".to_vec()))+ .partition_key("pk1")+ .send()+ .await;+ assert!(result.is_ok(), "PutRecord failed: {:?}", result.err());+ assert!(!result.unwrap().shard_id().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_kinesis_get_records() {+ let kinesis = common::kinesis_client().await;+ let stream_name = "rust-test-get-records";++ let _guard = common::CleanupGuard::new({+ let kinesis = kinesis.clone();+ async move {+ let _ = kinesis.delete_stream().stream_name(stream_name).send().await;+ }+ });++ // Setup+ kinesis+ .create_stream()+ .stream_name(stream_name)+ .shard_count(1)+ .send()+ .await+ .expect("setup");++ // Put a record+ kinesis+ .put_record()+ .stream_name(stream_name)+ .data(aws_smithy_types::Blob::new(b"test data".to_vec()))+ .partition_key("pk1")+ .send()+ .await+ .expect("put record");++ // Get shard ID+ let desc = kinesis+ .describe_stream()+ .stream_name(stream_name)+ .send()+ .await+ .expect("describe");+ let shard_id = desc+ .stream_description()+ .and_then(|d| d.shards().first())+ .map(|s| s.shard_id())+ .unwrap_or("");++ // Get shard iterator+ let iter = kinesis+ .get_shard_iterator()+ .stream_name(stream_name)+ .shard_id(shard_id)+ .shard_iterator_type(ShardIteratorType::TrimHorizon)+ .send()+ .await+ .expect("get iterator");++ let shard_iterator = iter.shard_iterator().unwrap_or("");++ // Get records+ let result = kinesis+ .get_records()+ .shard_iterator(shard_iterator)+ .limit(10)+ .send()+ .await;+ assert!(result.is_ok(), "GetRecords failed: {:?}", result.err());+ assert!(!result.unwrap().records().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_kinesis_delete_stream() {+ let kinesis = common::kinesis_client().await;+ let stream_name = "rust-test-delete-stream";++ // No cleanup guard needed - test is about deletion++ // Setup+ kinesis+ .create_stream()+ .stream_name(stream_name)+ .shard_count(1)+ .send()+ .await+ .expect("setup");++ let result = kinesis.delete_stream().stream_name(stream_name).send().await;+ assert!(result.is_ok(), "DeleteStream failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/kms_test.rs b/compatibility-tests/sdk-test-rust/tests/kms_test.rsnew file mode 100644index 0000000000..2d13c369c6--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/kms_test.rs@@ -0,0 +1,77 @@+mod common;++#[tokio::test]+async fn test_kms_create_key() {+ let kms = common::kms_client().await;++ let result = kms.create_key().description("rust-test-key").send().await;+ assert!(result.is_ok(), "CreateKey failed: {:?}", result.err());++ let key_id = result+ .unwrap()+ .key_metadata()+ .map(|m| m.key_id().to_string())+ .unwrap_or_default();+ assert!(!key_id.is_empty());+}++#[tokio::test]+async fn test_kms_list_keys() {+ let kms = common::kms_client().await;++ // Setup - create a key first+ kms.create_key()+ .description("rust-test-list")+ .send()+ .await+ .expect("setup");++ let result = kms.list_keys().send().await;+ assert!(result.is_ok(), "ListKeys failed: {:?}", result.err());+ assert!(!result.unwrap().keys().is_empty());+}++#[tokio::test]+async fn test_kms_encrypt_decrypt() {+ let kms = common::kms_client().await;++ // Create key+ let key = kms+ .create_key()+ .description("rust-test-encrypt")+ .send()+ .await+ .expect("create key");+ let key_id = key+ .key_metadata()+ .map(|m| m.key_id().to_string())+ .unwrap_or_default();++ // Encrypt+ let plaintext = b"rust-kms-test";+ let encrypt_result = kms+ .encrypt()+ .key_id(&key_id)+ .plaintext(aws_smithy_types::Blob::new(plaintext.to_vec()))+ .send()+ .await;+ assert!(encrypt_result.is_ok(), "Encrypt failed: {:?}", encrypt_result.err());++ let ciphertext = encrypt_result+ .unwrap()+ .ciphertext_blob()+ .cloned()+ .unwrap_or_else(|| aws_smithy_types::Blob::new(vec![]));+ assert!(!ciphertext.as_ref().is_empty());++ // Decrypt+ let decrypt_result = kms.decrypt().ciphertext_blob(ciphertext).send().await;+ assert!(decrypt_result.is_ok(), "Decrypt failed: {:?}", decrypt_result.err());++ let decrypted = decrypt_result+ .unwrap()+ .plaintext()+ .cloned()+ .unwrap_or_else(|| aws_smithy_types::Blob::new(vec![]));+ assert_eq!(decrypted.as_ref(), plaintext);+}diff --git a/compatibility-tests/sdk-test-rust/tests/lambda_test.rs b/compatibility-tests/sdk-test-rust/tests/lambda_test.rsnew file mode 100644index 0000000000..11036b23af--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/lambda_test.rs@@ -0,0 +1,178 @@+mod common;++use aws_sdk_lambda::types::Runtime;++#[tokio::test(flavor = "multi_thread")]+async fn test_lambda_create_function() {+ let lambda = common::lambda_client().await;+ let func_name = "rust-test-create-func";+ let role_arn = "arn:aws:iam::000000000000:role/test-role";++ let _guard = common::CleanupGuard::new({+ let lambda = lambda.clone();+ async move {+ let _ = lambda.delete_function().function_name(func_name).send().await;+ }+ });++ let result = lambda+ .create_function()+ .function_name(func_name)+ .runtime(Runtime::Nodejs18x)+ .role(role_arn)+ .handler("index.handler")+ .code(+ aws_sdk_lambda::types::FunctionCode::builder()+ .zip_file(aws_smithy_types::Blob::new(common::minimal_zip()))+ .build(),+ )+ .send()+ .await;+ assert!(result.is_ok(), "CreateFunction failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_lambda_get_function() {+ let lambda = common::lambda_client().await;+ let func_name = "rust-test-get-func";+ let role_arn = "arn:aws:iam::000000000000:role/test-role";++ let _guard = common::CleanupGuard::new({+ let lambda = lambda.clone();+ async move {+ let _ = lambda.delete_function().function_name(func_name).send().await;+ }+ });++ // Setup+ lambda+ .create_function()+ .function_name(func_name)+ .runtime(Runtime::Nodejs18x)+ .role(role_arn)+ .handler("index.handler")+ .code(+ aws_sdk_lambda::types::FunctionCode::builder()+ .zip_file(aws_smithy_types::Blob::new(common::minimal_zip()))+ .build(),+ )+ .send()+ .await+ .expect("setup");++ let result = lambda.get_function().function_name(func_name).send().await;+ assert!(result.is_ok(), "GetFunction failed: {:?}", result.err());+ assert_eq!(+ result+ .unwrap()+ .configuration()+ .and_then(|c| c.function_name())+ .unwrap_or(""),+ func_name+ );+}++#[tokio::test(flavor = "multi_thread")]+async fn test_lambda_list_functions() {+ let lambda = common::lambda_client().await;+ let func_name = "rust-test-list-func";+ let role_arn = "arn:aws:iam::000000000000:role/test-role";++ let _guard = common::CleanupGuard::new({+ let lambda = lambda.clone();+ async move {+ let _ = lambda.delete_function().function_name(func_name).send().await;+ }+ });++ // Setup+ lambda+ .create_function()+ .function_name(func_name)+ .runtime(Runtime::Nodejs18x)+ .role(role_arn)+ .handler("index.handler")+ .code(+ aws_sdk_lambda::types::FunctionCode::builder()+ .zip_file(aws_smithy_types::Blob::new(common::minimal_zip()))+ .build(),+ )+ .send()+ .await+ .expect("setup");++ let result = lambda.list_functions().send().await;+ assert!(result.is_ok(), "ListFunctions failed: {:?}", result.err());+ assert!(!result.unwrap().functions().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_lambda_invoke() {+ let lambda = common::lambda_client().await;+ let func_name = "rust-test-invoke";+ let role_arn = "arn:aws:iam::000000000000:role/test-role";++ let _guard = common::CleanupGuard::new({+ let lambda = lambda.clone();+ async move {+ let _ = lambda.delete_function().function_name(func_name).send().await;+ }+ });++ // Setup+ lambda+ .create_function()+ .function_name(func_name)+ .runtime(Runtime::Nodejs18x)+ .role(role_arn)+ .handler("index.handler")+ .code(+ aws_sdk_lambda::types::FunctionCode::builder()+ .zip_file(aws_smithy_types::Blob::new(common::minimal_zip()))+ .build(),+ )+ .send()+ .await+ .expect("setup");++ let payload = r#"{"name":"RustTest"}"#;+ let result = lambda+ .invoke()+ .function_name(func_name)+ .payload(aws_smithy_types::Blob::new(payload.as_bytes().to_vec()))+ .send()+ .await;+ assert!(result.is_ok(), "Invoke failed: {:?}", result.err());++ let response = result.unwrap();+ assert_eq!(response.status_code(), 200);+ assert!(response.function_error().is_none());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_lambda_delete_function() {+ let lambda = common::lambda_client().await;+ let func_name = "rust-test-delete-func";+ let role_arn = "arn:aws:iam::000000000000:role/test-role";++ // No cleanup guard needed - test is about deletion++ // Setup+ lambda+ .create_function()+ .function_name(func_name)+ .runtime(Runtime::Nodejs18x)+ .role(role_arn)+ .handler("index.handler")+ .code(+ aws_sdk_lambda::types::FunctionCode::builder()+ .zip_file(aws_smithy_types::Blob::new(common::minimal_zip()))+ .build(),+ )+ .send()+ .await+ .expect("setup");++ let result = lambda.delete_function().function_name(func_name).send().await;+ assert!(result.is_ok(), "DeleteFunction failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/s3_cors_test.rs b/compatibility-tests/sdk-test-rust/tests/s3_cors_test.rsnew file mode 100644index 0000000000..1e90eaa49c--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/s3_cors_test.rs@@ -0,0 +1,610 @@+//! S3 CORS Enforcement Tests+//!+//! Tests CORS preflight and actual requests with various configurations:+//! - Wildcard origin (*)+//! - Specific origin+//! - Subdomain wildcard patterns (http://*.example.com)++mod common;++use aws_sdk_s3::types::{CorsConfiguration, CorsRule};++/// Helper to send raw HTTP requests and get (status, headers).+async fn raw_request(+ client: &reqwest::Client,+ method: &str,+ url: &str,+ headers: &[(&str, &str)],+) -> Result<(u16, reqwest::header::HeaderMap), String> {+ let method = match method {+ "GET" => reqwest::Method::GET,+ "PUT" => reqwest::Method::PUT,+ "POST" => reqwest::Method::POST,+ "DELETE" => reqwest::Method::DELETE,+ "OPTIONS" => reqwest::Method::OPTIONS,+ "HEAD" => reqwest::Method::HEAD,+ other => return Err(format!("unsupported method: {}", other)),+ };+ let mut builder = client.request(method, url);+ for (k, v) in headers {+ builder = builder.header(*k, *v);+ }+ let resp = builder.send().await.map_err(|e| e.to_string())?;+ let status = resp.status().as_u16();+ let hdrs = resp.headers().clone();+ Ok((status, hdrs))+}++/// Get header value as string, or empty string if absent.+fn hdr(map: &reqwest::header::HeaderMap, name: &str) -> String {+ map.get(name)+ .and_then(|v| v.to_str().ok())+ .unwrap_or("")+ .to_string()+}++/// Check if Vary header contains "Origin".+fn vary_has_origin(vary: &str) -> bool {+ vary.split(',')+ .any(|t| t.trim().eq_ignore_ascii_case("origin"))+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_cors_preflight_without_config_returns_403() {+ let s3 = common::s3_client().await;+ let endpoint = sdk_test_rust::endpoint();+ let bucket = format!(+ "rust-cors-noconfig-{}",+ std::time::SystemTime::now()+ .duration_since(std::time::UNIX_EPOCH)+ .unwrap()+ .as_millis()+ );+ let object_key = "cors-test.txt";+ let object_url = format!("{}/{}/{}", endpoint, bucket, object_key);++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ let bucket = bucket.clone();+ async move {+ let _ = s3.delete_object().bucket(&bucket).key(object_key).send().await;+ let _ = s3.delete_bucket().bucket(&bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(&bucket).send().await.expect("create bucket");+ s3.put_object()+ .bucket(&bucket)+ .key(object_key)+ .body(bytes::Bytes::from("hello cors").into())+ .content_type("text/plain")+ .send()+ .await+ .expect("put object");++ // No CORS config: OPTIONS preflight -> 403+ let http = reqwest::Client::builder()+ .redirect(reqwest::redirect::Policy::none())+ .build()+ .expect("reqwest client");++ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "http://localhost:3000"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight request");++ assert_eq!(status, 403, "preflight without CORS config should return 403");+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_cors_wildcard_origin() {+ let s3 = common::s3_client().await;+ let endpoint = sdk_test_rust::endpoint();+ let bucket = format!(+ "rust-cors-wildcard-{}",+ std::time::SystemTime::now()+ .duration_since(std::time::UNIX_EPOCH)+ .unwrap()+ .as_millis()+ );+ let object_key = "cors-test.txt";+ let object_url = format!("{}/{}/{}", endpoint, bucket, object_key);++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ let bucket = bucket.clone();+ async move {+ let _ = s3.delete_bucket_cors().bucket(&bucket).send().await;+ let _ = s3.delete_object().bucket(&bucket).key(object_key).send().await;+ let _ = s3.delete_bucket().bucket(&bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(&bucket).send().await.expect("create bucket");+ s3.put_object()+ .bucket(&bucket)+ .key(object_key)+ .body(bytes::Bytes::from("hello cors").into())+ .content_type("text/plain")+ .send()+ .await+ .expect("put object");++ // Configure wildcard CORS+ let wildcard_cors = CorsConfiguration::builder()+ .cors_rules(+ CorsRule::builder()+ .allowed_origins("*")+ .allowed_methods("GET")+ .allowed_methods("PUT")+ .allowed_methods("POST")+ .allowed_methods("DELETE")+ .allowed_methods("HEAD")+ .allowed_headers("*")+ .expose_headers("ETag")+ .max_age_seconds(3000)+ .build()+ .expect("valid CorsRule"),+ )+ .build()+ .expect("valid CorsConfiguration");++ s3.put_bucket_cors()+ .bucket(&bucket)+ .cors_configuration(wildcard_cors)+ .send()+ .await+ .expect("put bucket cors");++ let http = reqwest::Client::builder()+ .redirect(reqwest::redirect::Policy::none())+ .build()+ .expect("reqwest client");++ // Test: wildcard preflight -> 200+ let (status, hdrs) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "http://localhost:3000"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight request");++ assert_eq!(status, 200, "wildcard preflight should return 200");+ assert_eq!(+ hdr(&hdrs, "access-control-allow-origin"),+ "*",+ "should have Allow-Origin: *"+ );+ assert_eq!(+ hdr(&hdrs, "access-control-max-age"),+ "3000",+ "should have Max-Age: 3000"+ );+ assert!(+ hdr(&hdrs, "access-control-allow-methods")+ .to_uppercase()+ .contains("GET"),+ "Allow-Methods should contain GET"+ );++ // Test: actual GET with Origin -> CORS headers+ let (status, hdrs) = raw_request(+ &http,+ "GET",+ &object_url,+ &[("Origin", "http://localhost:3000")],+ )+ .await+ .expect("get request");++ assert_eq!(status, 200, "GET with Origin should return 200");+ assert_eq!(+ hdr(&hdrs, "access-control-allow-origin"),+ "*",+ "GET should have Allow-Origin: *"+ );+ assert!(+ vary_has_origin(&hdr(&hdrs, "vary")),+ "should have Vary: Origin"+ );+ assert!(+ hdr(&hdrs, "access-control-expose-headers").contains("ETag"),+ "Expose-Headers should contain ETag"+ );++ // Test: GET without Origin -> no CORS headers+ let (_, hdrs) = raw_request(&http, "GET", &object_url, &[])+ .await+ .expect("get request without origin");++ assert!(+ hdr(&hdrs, "access-control-allow-origin").is_empty(),+ "GET without Origin should have no Allow-Origin header"+ );++ // Test: OPTIONS without Origin -> no CORS headers+ let (_, hdrs) = raw_request(&http, "OPTIONS", &object_url, &[])+ .await+ .expect("options without origin");++ assert!(+ hdr(&hdrs, "access-control-allow-origin").is_empty(),+ "OPTIONS without Origin should have no Allow-Origin header"+ );+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_cors_specific_origin() {+ let s3 = common::s3_client().await;+ let endpoint = sdk_test_rust::endpoint();+ let bucket = format!(+ "rust-cors-specific-{}",+ std::time::SystemTime::now()+ .duration_since(std::time::UNIX_EPOCH)+ .unwrap()+ .as_millis()+ );+ let object_key = "cors-test.txt";+ let object_url = format!("{}/{}/{}", endpoint, bucket, object_key);++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ let bucket = bucket.clone();+ async move {+ let _ = s3.delete_bucket_cors().bucket(&bucket).send().await;+ let _ = s3.delete_object().bucket(&bucket).key(object_key).send().await;+ let _ = s3.delete_bucket().bucket(&bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(&bucket).send().await.expect("create bucket");+ s3.put_object()+ .bucket(&bucket)+ .key(object_key)+ .body(bytes::Bytes::from("hello cors").into())+ .content_type("text/plain")+ .send()+ .await+ .expect("put object");++ // Configure specific origin CORS+ let specific_cors = CorsConfiguration::builder()+ .cors_rules(+ CorsRule::builder()+ .allowed_origins("https://example.com")+ .allowed_methods("GET")+ .allowed_methods("PUT")+ .allowed_headers("Content-Type")+ .allowed_headers("Authorization")+ .expose_headers("ETag")+ .expose_headers("x-amz-request-id")+ .max_age_seconds(600)+ .build()+ .expect("valid CorsRule"),+ )+ .build()+ .expect("valid CorsConfiguration");++ s3.put_bucket_cors()+ .bucket(&bucket)+ .cors_configuration(specific_cors)+ .send()+ .await+ .expect("put bucket cors");++ let http = reqwest::Client::builder()+ .redirect(reqwest::redirect::Policy::none())+ .build()+ .expect("reqwest client");++ // Test: matching origin preflight -> 200, echoes origin+ let (status, hdrs) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "https://example.com"),+ ("Access-Control-Request-Method", "GET"),+ ("Access-Control-Request-Headers", "Content-Type"),+ ],+ )+ .await+ .expect("preflight request");++ assert_eq!(status, 200, "matching origin preflight should return 200");+ assert_eq!(+ hdr(&hdrs, "access-control-allow-origin"),+ "https://example.com",+ "should echo the specific origin"+ );+ assert_eq!(+ hdr(&hdrs, "access-control-max-age"),+ "600",+ "should have Max-Age: 600"+ );++ // Test: non-matching origin -> 403+ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "https://attacker.evil.com"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight with wrong origin");++ assert_eq!(status, 403, "non-matching origin should return 403");++ // Test: non-matching method -> 403+ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "https://example.com"),+ ("Access-Control-Request-Method", "DELETE"),+ ],+ )+ .await+ .expect("preflight with wrong method");++ assert_eq!(status, 403, "non-matching method should return 403");++ // Test: actual GET with matching origin -> echoes origin+ let (_, hdrs) = raw_request(+ &http,+ "GET",+ &object_url,+ &[("Origin", "https://example.com")],+ )+ .await+ .expect("get with matching origin");++ assert_eq!(+ hdr(&hdrs, "access-control-allow-origin"),+ "https://example.com",+ "GET should echo matching origin"+ );++ // Test: actual GET with non-matching origin -> no CORS headers+ let (_, hdrs) = raw_request(+ &http,+ "GET",+ &object_url,+ &[("Origin", "https://not-allowed.com")],+ )+ .await+ .expect("get with non-matching origin");++ assert!(+ hdr(&hdrs, "access-control-allow-origin").is_empty(),+ "GET with non-matching origin should have no Allow-Origin"+ );+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_cors_delete_bucket_cors() {+ let s3 = common::s3_client().await;+ let endpoint = sdk_test_rust::endpoint();+ let bucket = format!(+ "rust-cors-delete-{}",+ std::time::SystemTime::now()+ .duration_since(std::time::UNIX_EPOCH)+ .unwrap()+ .as_millis()+ );+ let object_key = "cors-test.txt";+ let object_url = format!("{}/{}/{}", endpoint, bucket, object_key);++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ let bucket = bucket.clone();+ async move {+ let _ = s3.delete_bucket_cors().bucket(&bucket).send().await;+ let _ = s3.delete_object().bucket(&bucket).key(object_key).send().await;+ let _ = s3.delete_bucket().bucket(&bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(&bucket).send().await.expect("create bucket");+ s3.put_object()+ .bucket(&bucket)+ .key(object_key)+ .body(bytes::Bytes::from("hello cors").into())+ .content_type("text/plain")+ .send()+ .await+ .expect("put object");++ // Configure CORS+ let cors = CorsConfiguration::builder()+ .cors_rules(+ CorsRule::builder()+ .allowed_origins("*")+ .allowed_methods("GET")+ .build()+ .expect("valid CorsRule"),+ )+ .build()+ .expect("valid CorsConfiguration");++ s3.put_bucket_cors()+ .bucket(&bucket)+ .cors_configuration(cors)+ .send()+ .await+ .expect("put bucket cors");++ let http = reqwest::Client::builder()+ .redirect(reqwest::redirect::Policy::none())+ .build()+ .expect("reqwest client");++ // Verify CORS works+ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "http://localhost:3000"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight");++ assert_eq!(status, 200, "preflight should work before delete");++ // Delete CORS config+ s3.delete_bucket_cors()+ .bucket(&bucket)+ .send()+ .await+ .expect("delete bucket cors");++ // Preflight should now return 403+ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "http://localhost:3000"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight after delete");++ assert_eq!(status, 403, "preflight should return 403 after CORS delete");+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_cors_subdomain_wildcard() {+ let s3 = common::s3_client().await;+ let endpoint = sdk_test_rust::endpoint();+ let bucket = format!(+ "rust-cors-subdomain-{}",+ std::time::SystemTime::now()+ .duration_since(std::time::UNIX_EPOCH)+ .unwrap()+ .as_millis()+ );+ let object_key = "cors-test.txt";+ let object_url = format!("{}/{}/{}", endpoint, bucket, object_key);++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ let bucket = bucket.clone();+ async move {+ let _ = s3.delete_bucket_cors().bucket(&bucket).send().await;+ let _ = s3.delete_object().bucket(&bucket).key(object_key).send().await;+ let _ = s3.delete_bucket().bucket(&bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(&bucket).send().await.expect("create bucket");+ s3.put_object()+ .bucket(&bucket)+ .key(object_key)+ .body(bytes::Bytes::from("hello cors").into())+ .content_type("text/plain")+ .send()+ .await+ .expect("put object");++ // Configure subdomain wildcard CORS+ let subdomain_cors = CorsConfiguration::builder()+ .cors_rules(+ CorsRule::builder()+ .allowed_origins("http://*.example.com")+ .allowed_methods("GET")+ .allowed_headers("*")+ .max_age_seconds(120)+ .build()+ .expect("valid CorsRule"),+ )+ .build()+ .expect("valid CorsConfiguration");++ s3.put_bucket_cors()+ .bucket(&bucket)+ .cors_configuration(subdomain_cors)+ .send()+ .await+ .expect("put bucket cors");++ let http = reqwest::Client::builder()+ .redirect(reqwest::redirect::Policy::none())+ .build()+ .expect("reqwest client");++ // Test: matching subdomain -> 200, echoes origin+ let (status, hdrs) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "http://app.example.com"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight with matching subdomain");++ assert_eq!(status, 200, "matching subdomain should return 200");+ assert_eq!(+ hdr(&hdrs, "access-control-allow-origin"),+ "http://app.example.com",+ "should echo the matched subdomain origin"+ );++ // Test: wrong scheme (https instead of http) -> 403+ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "https://app.example.com"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight with wrong scheme");++ assert_eq!(status, 403, "wrong scheme should return 403");++ // Test: different domain -> 403+ let (status, _) = raw_request(+ &http,+ "OPTIONS",+ &object_url,+ &[+ ("Origin", "http://app.other.com"),+ ("Access-Control-Request-Method", "GET"),+ ],+ )+ .await+ .expect("preflight with different domain");++ assert_eq!(status, 403, "different domain should return 403");+}diff --git a/compatibility-tests/sdk-test-rust/tests/s3_notifications_test.rs b/compatibility-tests/sdk-test-rust/tests/s3_notifications_test.rsnew file mode 100644index 0000000000..3501105946--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/s3_notifications_test.rs@@ -0,0 +1,196 @@+//! S3 Bucket Notification Configuration Tests+//!+//! Tests S3 notification configurations with SQS and SNS,+//! including filter rules for prefix/suffix patterns.++mod common;++use aws_sdk_s3::types::{+ Event as S3Event, FilterRule as S3FilterRule, FilterRuleName,+ NotificationConfiguration, NotificationConfigurationFilter,+ QueueConfiguration as S3QueueConfig, S3KeyFilter,+ TopicConfiguration as S3TopicConfig,+};++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_notifications_with_filters() {+ let s3 = common::s3_client().await;+ let sqs = common::sqs_client().await;+ let sns = common::sns_client().await;+ let endpoint = sdk_test_rust::endpoint();++ let bucket = "rust-s3-notif-filter-bucket";+ let queue_name = "rust-s3-notif-filter-queue";+ let topic_name = "rust-s3-notif-filter-topic";+ let account_id = "000000000000";+ let queue_arn = format!("arn:aws:sqs:us-east-1:{}:{}", account_id, queue_name);++ // Create topic first to get ARN+ let topic_result = sns.create_topic().name(topic_name).send().await;+ let topic_arn = match topic_result {+ Ok(r) => r.topic_arn.unwrap_or_default(),+ Err(e) => panic!("Failed to create SNS topic: {:?}", e),+ };++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ let sqs = sqs.clone();+ let sns = sns.clone();+ let endpoint = endpoint.clone();+ let topic_arn = topic_arn.clone();+ async move {+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ let queue_url = format!("{}/{}/{}", endpoint, account_id, queue_name);+ let _ = sqs.delete_queue().queue_url(&queue_url).send().await;+ let _ = sns.delete_topic().topic_arn(&topic_arn).send().await;+ }+ });++ // Create SQS queue+ sqs.create_queue()+ .queue_name(queue_name)+ .send()+ .await+ .expect("create queue");++ // Create S3 bucket+ s3.create_bucket()+ .bucket(bucket)+ .send()+ .await+ .expect("create bucket");++ // Configure queue notification with prefix/suffix filter+ let queue_config = S3QueueConfig::builder()+ .id("sqs-filtered")+ .queue_arn(&queue_arn)+ .events(S3Event::S3ObjectCreated)+ .filter(+ NotificationConfigurationFilter::builder()+ .key(+ S3KeyFilter::builder()+ .filter_rules(+ S3FilterRule::builder()+ .name(FilterRuleName::Prefix)+ .value("incoming/")+ .build(),+ )+ .filter_rules(+ S3FilterRule::builder()+ .name(FilterRuleName::Suffix)+ .value(".csv")+ .build(),+ )+ .build(),+ )+ .build(),+ )+ .build()+ .expect("queue config");++ // Configure topic notification with suffix filter+ let topic_config = S3TopicConfig::builder()+ .id("sns-filtered")+ .topic_arn(&topic_arn)+ .events(S3Event::S3ObjectRemoved)+ .filter(+ NotificationConfigurationFilter::builder()+ .key(+ S3KeyFilter::builder()+ .filter_rules(+ S3FilterRule::builder()+ .name(FilterRuleName::Prefix)+ .value("")+ .build(),+ )+ .filter_rules(+ S3FilterRule::builder()+ .name(FilterRuleName::Suffix)+ .value(".txt")+ .build(),+ )+ .build(),+ )+ .build(),+ )+ .build()+ .expect("topic config");++ // Put notification configuration+ let put_result = s3+ .put_bucket_notification_configuration()+ .bucket(bucket)+ .notification_configuration(+ NotificationConfiguration::builder()+ .queue_configurations(queue_config)+ .topic_configurations(topic_config)+ .build(),+ )+ .send()+ .await;++ assert!(+ put_result.is_ok(),+ "PutBucketNotificationConfiguration failed: {:?}",+ put_result.err()+ );++ // Get and verify notification configuration+ let get_result = s3+ .get_bucket_notification_configuration()+ .bucket(bucket)+ .send()+ .await;++ assert!(+ get_result.is_ok(),+ "GetBucketNotificationConfiguration failed: {:?}",+ get_result.err()+ );++ let nc = get_result.unwrap();++ // Verify queue configuration+ let queue_configs = nc.queue_configurations();+ assert!(+ !queue_configs.is_empty(),+ "should have queue configurations"+ );+ let has_queue = queue_configs.iter().any(|q| q.queue_arn() == queue_arn);+ assert!(has_queue, "queue ARN should match");++ // Verify queue filter rules+ let queue_filter_ok = queue_configs.iter().any(|q| {+ q.queue_arn() == queue_arn+ && q.filter()+ .and_then(|f| f.key())+ .map(|k| k.filter_rules().len() == 2)+ .unwrap_or(false)+ });+ assert!(+ queue_filter_ok,+ "queue should have 2 filter rules (prefix and suffix)"+ );++ // Verify topic configuration+ let topic_configs = nc.topic_configurations();+ assert!(+ !topic_configs.is_empty(),+ "should have topic configurations"+ );+ let has_topic = topic_configs.iter().any(|t| t.topic_arn() == topic_arn);+ assert!(has_topic, "topic ARN should match");++ // Verify topic filter rules+ let topic_filter_ok = topic_configs.iter().any(|t| {+ t.topic_arn() == topic_arn+ && t.filter()+ .and_then(|f| f.key())+ .map(|k| k.filter_rules().len() == 2)+ .unwrap_or(false)+ });+ assert!(+ topic_filter_ok,+ "topic should have 2 filter rules (prefix and suffix)"+ );+}diff --git a/compatibility-tests/sdk-test-rust/tests/s3_test.rs b/compatibility-tests/sdk-test-rust/tests/s3_test.rsnew file mode 100644index 0000000000..42c5e3968d--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/s3_test.rs@@ -0,0 +1,373 @@+mod common;++use aws_sdk_s3::types::{BucketLocationConstraint, CreateBucketConfiguration, Delete, ObjectIdentifier};++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_create_bucket() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-create-bucket";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ let result = s3.create_bucket().bucket(bucket).send().await;+ assert!(result.is_ok(), "CreateBucket failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_create_bucket_with_location_constraint() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-eu-bucket";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ let result = s3+ .create_bucket()+ .bucket(bucket)+ .create_bucket_configuration(+ CreateBucketConfiguration::builder()+ .location_constraint(BucketLocationConstraint::EuCentral1)+ .build(),+ )+ .send()+ .await;+ assert!(result.is_ok(), "CreateBucket with location failed: {:?}", result.err());++ // Verify location+ let loc = s3.get_bucket_location().bucket(bucket).send().await;+ assert!(loc.is_ok());+ assert_eq!(+ loc.unwrap()+ .location_constraint()+ .map(|c| c.as_str())+ .unwrap_or(""),+ "eu-central-1"+ );+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_list_buckets() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-list-buckets";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("setup");++ let result = s3.list_buckets().send().await;+ assert!(result.is_ok(), "ListBuckets failed: {:?}", result.err());+ assert!(!result.unwrap().buckets().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_put_and_get_object() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-put-get";+ let key = "test.json";+ let content = r#"{"source":"rust-test"}"#;++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_object().bucket(bucket).key(key).send().await;+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("setup");++ // Put+ let put_result = s3+ .put_object()+ .bucket(bucket)+ .key(key)+ .body(bytes::Bytes::from(content).into())+ .content_type("application/json")+ .send()+ .await;+ assert!(put_result.is_ok(), "PutObject failed: {:?}", put_result.err());++ // Get+ let get_result = s3.get_object().bucket(bucket).key(key).send().await;+ assert!(get_result.is_ok(), "GetObject failed: {:?}", get_result.err());++ let body = get_result+ .unwrap()+ .body+ .collect()+ .await+ .map(|b| b.into_bytes());+ assert!(body.is_ok());+ assert_eq!(body.unwrap().as_ref(), content.as_bytes());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_head_object() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-head";+ let key = "head-test.txt";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_object().bucket(bucket).key(key).send().await;+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("setup");+ s3.put_object()+ .bucket(bucket)+ .key(key)+ .body(bytes::Bytes::from("test").into())+ .send()+ .await+ .expect("put");++ let result = s3.head_object().bucket(bucket).key(key).send().await;+ assert!(result.is_ok(), "HeadObject failed: {:?}", result.err());++ let head = result.unwrap();+ assert!(head.last_modified().is_some());+ // Check second precision+ assert_eq!(head.last_modified().unwrap().subsec_nanos(), 0);+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_list_objects_v2() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-list-objects";+ let key = "list-test.txt";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_object().bucket(bucket).key(key).send().await;+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("setup");+ s3.put_object()+ .bucket(bucket)+ .key(key)+ .body(bytes::Bytes::from("test").into())+ .send()+ .await+ .expect("put");++ let result = s3.list_objects_v2().bucket(bucket).send().await;+ assert!(result.is_ok(), "ListObjectsV2 failed: {:?}", result.err());+ assert!(!result.unwrap().contents().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_copy_object() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-copy";+ let src_key = "source.txt";+ let dst_key = "copy.txt";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3+ .delete_objects()+ .bucket(bucket)+ .delete(+ Delete::builder()+ .objects(ObjectIdentifier::builder().key(src_key).build().unwrap())+ .objects(ObjectIdentifier::builder().key(dst_key).build().unwrap())+ .build()+ .unwrap(),+ )+ .send()+ .await;+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("setup");+ s3.put_object()+ .bucket(bucket)+ .key(src_key)+ .body(bytes::Bytes::from("source").into())+ .send()+ .await+ .expect("put");++ let copy_source = format!("{}/{}", bucket, src_key);+ let result = s3+ .copy_object()+ .bucket(bucket)+ .copy_source(©_source)+ .key(dst_key)+ .send()+ .await;+ assert!(result.is_ok(), "CopyObject failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_s3_delete_bucket() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-delete-bucket";++ // No cleanup guard needed - test is about deletion++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("setup");++ let result = s3.delete_bucket().bucket(bucket).send().await;+ assert!(result.is_ok(), "DeleteBucket failed: {:?}", result.err());+}++/// Percent-encodes non-ASCII bytes in an S3 key, preserving / as a path separator.+/// The Rust SDK does not URL-encode CopySource headers, so this must be done manually.+fn s3_encode_key(key: &str) -> String {+ let mut out = String::with_capacity(key.len());+ for b in key.bytes() {+ match b {+ b'A'..=b'Z' | b'a'..=b'z' | b'0'..=b'9' | b'-' | b'_' | b'.' | b'~' | b'/' => {+ out.push(b as char);+ }+ _ => {+ out.push_str(&format!("%{:02X}", b));+ }+ }+ }+ out+}++/// Regression test for issue #93: CopyObject with non-ASCII (multibyte) key.+/// The Rust SDK does not URL-encode CopySource headers; encode the key manually.+#[tokio::test(flavor = "multi_thread")]+async fn test_s3_copy_object_non_ascii_key() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-non-ascii";+ let src_key = "src/テスト画像.png";+ let dst_key = "dst/テスト画像.png";++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3+ .delete_objects()+ .bucket(bucket)+ .delete(+ Delete::builder()+ .objects(ObjectIdentifier::builder().key(src_key).build().unwrap())+ .objects(ObjectIdentifier::builder().key(dst_key).build().unwrap())+ .build()+ .unwrap(),+ )+ .send()+ .await;+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("create bucket");+ s3.put_object()+ .bucket(bucket)+ .key(src_key)+ .body(bytes::Bytes::from("non-ascii content").into())+ .send()+ .await+ .expect("put source object");++ // Copy with URL-encoded non-ASCII key+ let copy_source = format!("{}/{}", bucket, s3_encode_key(src_key));+ let result = s3+ .copy_object()+ .bucket(bucket)+ .copy_source(©_source)+ .key(dst_key)+ .send()+ .await;++ assert!(+ result.is_ok(),+ "CopyObject with non-ASCII key failed: {:?}",+ result.err()+ );++ // Verify the copy exists+ let head = s3.head_object().bucket(bucket).key(dst_key).send().await;+ assert!(head.is_ok(), "copied object should exist");+}++/// Test large object upload (25 MB) - validates upload size limit handling.+#[tokio::test(flavor = "multi_thread")]+async fn test_s3_put_object_25mb() {+ let s3 = common::s3_client().await;+ let bucket = "rust-test-large-upload";+ let key = "large-object-25mb.bin";+ let size: i64 = 25 * 1024 * 1024; // 25 MB++ let _guard = common::CleanupGuard::new({+ let s3 = s3.clone();+ async move {+ let _ = s3.delete_object().bucket(bucket).key(key).send().await;+ let _ = s3.delete_bucket().bucket(bucket).send().await;+ }+ });++ // Setup+ s3.create_bucket().bucket(bucket).send().await.expect("create bucket");++ // Create 25 MB payload+ let payload = vec![0u8; size as usize];++ // Upload+ let put_result = s3+ .put_object()+ .bucket(bucket)+ .key(key)+ .body(bytes::Bytes::from(payload).into())+ .content_type("application/octet-stream")+ .content_length(size)+ .send()+ .await;++ assert!(+ put_result.is_ok(),+ "PutObject 25 MB failed: {:?}",+ put_result.err()+ );++ // Verify content-length via HeadObject+ let head_result = s3.head_object().bucket(bucket).key(key).send().await;+ assert!(+ head_result.is_ok(),+ "HeadObject failed: {:?}",+ head_result.err()+ );++ let head = head_result.unwrap();+ assert_eq!(+ head.content_length(),+ Some(size),+ "content-length should be {} bytes",+ size+ );+}diff --git a/compatibility-tests/sdk-test-rust/tests/secretsmanager_test.rs b/compatibility-tests/sdk-test-rust/tests/secretsmanager_test.rsnew file mode 100644index 0000000000..b544080017--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/secretsmanager_test.rs@@ -0,0 +1,112 @@+mod common;++#[tokio::test(flavor = "multi_thread")]+async fn test_secretsmanager_create_secret() {+ let sm = common::secretsmanager_client().await;+ let name = "rust-test-create-secret";++ let _guard = common::CleanupGuard::new({+ let sm = sm.clone();+ async move {+ let _ = sm+ .delete_secret()+ .secret_id(name)+ .force_delete_without_recovery(true)+ .send()+ .await;+ }+ });++ let result = sm+ .create_secret()+ .name(name)+ .secret_string(r#"{"key":"value"}"#)+ .send()+ .await;+ assert!(result.is_ok(), "CreateSecret failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_secretsmanager_get_secret_value() {+ let sm = common::secretsmanager_client().await;+ let name = "rust-test-get-secret";+ let secret = r#"{"username":"admin"}"#;++ let _guard = common::CleanupGuard::new({+ let sm = sm.clone();+ async move {+ let _ = sm+ .delete_secret()+ .secret_id(name)+ .force_delete_without_recovery(true)+ .send()+ .await;+ }+ });++ // Setup+ sm.create_secret()+ .name(name)+ .secret_string(secret)+ .send()+ .await+ .expect("setup");++ let result = sm.get_secret_value().secret_id(name).send().await;+ assert!(result.is_ok(), "GetSecretValue failed: {:?}", result.err());+ assert_eq!(result.unwrap().secret_string().unwrap_or(""), secret);+}++#[tokio::test(flavor = "multi_thread")]+async fn test_secretsmanager_list_secrets() {+ let sm = common::secretsmanager_client().await;+ let name = "rust-test-list-secret";++ let _guard = common::CleanupGuard::new({+ let sm = sm.clone();+ async move {+ let _ = sm+ .delete_secret()+ .secret_id(name)+ .force_delete_without_recovery(true)+ .send()+ .await;+ }+ });++ // Setup+ sm.create_secret()+ .name(name)+ .secret_string("test")+ .send()+ .await+ .expect("setup");++ let result = sm.list_secrets().send().await;+ assert!(result.is_ok(), "ListSecrets failed: {:?}", result.err());+ assert!(!result.unwrap().secret_list().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_secretsmanager_delete_secret() {+ let sm = common::secretsmanager_client().await;+ let name = "rust-test-delete-secret";++ // No cleanup guard needed - test is about deletion++ // Setup+ sm.create_secret()+ .name(name)+ .secret_string("test")+ .send()+ .await+ .expect("setup");++ let result = sm+ .delete_secret()+ .secret_id(name)+ .force_delete_without_recovery(true)+ .send()+ .await;+ assert!(result.is_ok(), "DeleteSecret failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/sns_test.rs b/compatibility-tests/sdk-test-rust/tests/sns_test.rsnew file mode 100644index 0000000000..b8d8a08384--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/sns_test.rs@@ -0,0 +1,174 @@+mod common;++#[tokio::test(flavor = "multi_thread")]+async fn test_sns_create_topic() {+ let sns = common::sns_client().await;+ let topic_name = "rust-test-topic";++ let result = sns.create_topic().name(topic_name).send().await;+ assert!(result.is_ok(), "CreateTopic failed: {:?}", result.err());++ let arn = result.unwrap().topic_arn().unwrap_or("").to_string();+ assert!(!arn.is_empty());++ let _guard = common::CleanupGuard::new({+ let sns = sns.clone();+ let arn = arn.clone();+ async move {+ let _ = sns.delete_topic().topic_arn(&arn).send().await;+ }+ });+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sns_list_topics() {+ let sns = common::sns_client().await;+ let topic_name = "rust-test-list-topics";++ // Setup+ let create = sns.create_topic().name(topic_name).send().await.expect("setup");+ let arn = create.topic_arn().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sns = sns.clone();+ let arn = arn.clone();+ async move {+ let _ = sns.delete_topic().topic_arn(&arn).send().await;+ }+ });++ let result = sns.list_topics().send().await;+ assert!(result.is_ok(), "ListTopics failed: {:?}", result.err());+ assert!(!result.unwrap().topics().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sns_get_topic_attributes() {+ let sns = common::sns_client().await;+ let topic_name = "rust-test-get-attrs";++ // Setup+ let create = sns.create_topic().name(topic_name).send().await.expect("setup");+ let arn = create.topic_arn().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sns = sns.clone();+ let arn = arn.clone();+ async move {+ let _ = sns.delete_topic().topic_arn(&arn).send().await;+ }+ });++ let result = sns.get_topic_attributes().topic_arn(&arn).send().await;+ assert!(result.is_ok(), "GetTopicAttributes failed: {:?}", result.err());++ let attrs = result.unwrap().attributes().cloned().unwrap_or_default();+ assert_eq!(attrs.get("TopicArn").map(|s| s.as_str()).unwrap_or(""), &arn);+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sns_publish() {+ let sns = common::sns_client().await;+ let topic_name = "rust-test-publish";++ // Setup+ let create = sns.create_topic().name(topic_name).send().await.expect("setup");+ let arn = create.topic_arn().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sns = sns.clone();+ let arn = arn.clone();+ async move {+ let _ = sns.delete_topic().topic_arn(&arn).send().await;+ }+ });++ let result = sns+ .publish()+ .topic_arn(&arn)+ .message(r#"{"event":"rust-test"}"#)+ .subject("RustTest")+ .send()+ .await;+ assert!(result.is_ok(), "Publish failed: {:?}", result.err());+ assert!(result.unwrap().message_id().is_some());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sns_subscribe_and_unsubscribe() {+ let sns = common::sns_client().await;+ let sqs = common::sqs_client().await;+ let topic_name = "rust-test-subscribe";+ let queue_name = "rust-test-sns-target";++ // Setup topic+ let create = sns.create_topic().name(topic_name).send().await.expect("setup topic");+ let topic_arn = create.topic_arn().unwrap_or("").to_string();++ // Setup queue+ let queue = sqs.create_queue().queue_name(queue_name).send().await.expect("setup queue");+ let queue_url = queue.queue_url().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sns = sns.clone();+ let sqs = sqs.clone();+ let topic_arn = topic_arn.clone();+ let queue_url = queue_url.clone();+ async move {+ let _ = sns.delete_topic().topic_arn(&topic_arn).send().await;+ let _ = sqs.delete_queue().queue_url(&queue_url).send().await;+ }+ });++ // Get queue ARN+ use aws_sdk_sqs::types::QueueAttributeName;+ let attrs = sqs+ .get_queue_attributes()+ .queue_url(&queue_url)+ .attribute_names(QueueAttributeName::QueueArn)+ .send()+ .await+ .expect("get attrs");+ let queue_arn = attrs+ .attributes()+ .and_then(|a| a.get(&QueueAttributeName::QueueArn))+ .map(|s| s.as_str())+ .unwrap_or("");++ // Subscribe+ let sub_result = sns+ .subscribe()+ .topic_arn(&topic_arn)+ .protocol("sqs")+ .endpoint(queue_arn)+ .send()+ .await;+ assert!(sub_result.is_ok(), "Subscribe failed: {:?}", sub_result.err());++ let sub_arn = sub_result.unwrap().subscription_arn().unwrap_or("").to_string();+ assert!(!sub_arn.is_empty());++ // List subscriptions+ let list = sns.list_subscriptions().send().await;+ assert!(list.is_ok(), "ListSubscriptions failed: {:?}", list.err());+ assert!(!list.unwrap().subscriptions().is_empty());++ // Unsubscribe+ let unsub = sns.unsubscribe().subscription_arn(&sub_arn).send().await;+ assert!(unsub.is_ok(), "Unsubscribe failed: {:?}", unsub.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sns_delete_topic() {+ let sns = common::sns_client().await;+ let topic_name = "rust-test-delete-topic";++ // No cleanup guard needed - test is about deletion++ // Setup+ let create = sns.create_topic().name(topic_name).send().await.expect("setup");+ let arn = create.topic_arn().unwrap_or("").to_string();++ let result = sns.delete_topic().topic_arn(&arn).send().await;+ assert!(result.is_ok(), "DeleteTopic failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/sqs_test.rs b/compatibility-tests/sdk-test-rust/tests/sqs_test.rsnew file mode 100644index 0000000000..1a6372a916--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/sqs_test.rs@@ -0,0 +1,145 @@+mod common;++#[tokio::test(flavor = "multi_thread")]+async fn test_sqs_create_queue() {+ let sqs = common::sqs_client().await;+ let queue_name = "rust-test-create-queue";++ let result = sqs.create_queue().queue_name(queue_name).send().await;+ assert!(result.is_ok(), "CreateQueue failed: {:?}", result.err());++ let url = result.unwrap().queue_url().unwrap_or("").to_string();+ assert!(!url.is_empty());++ let _guard = common::CleanupGuard::new({+ let sqs = sqs.clone();+ let url = url.clone();+ async move {+ let _ = sqs.delete_queue().queue_url(&url).send().await;+ }+ });+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sqs_list_queues() {+ let sqs = common::sqs_client().await;+ let queue_name = "rust-test-list-queue";++ // Setup+ let create = sqs.create_queue().queue_name(queue_name).send().await.expect("setup");+ let url = create.queue_url().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sqs = sqs.clone();+ let url = url.clone();+ async move {+ let _ = sqs.delete_queue().queue_url(&url).send().await;+ }+ });++ let result = sqs.list_queues().send().await;+ assert!(result.is_ok(), "ListQueues failed: {:?}", result.err());+ assert!(!result.unwrap().queue_urls().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sqs_send_and_receive_message() {+ let sqs = common::sqs_client().await;+ let queue_name = "rust-test-send-recv";++ // Setup+ let create = sqs.create_queue().queue_name(queue_name).send().await.expect("setup");+ let url = create.queue_url().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sqs = sqs.clone();+ let url = url.clone();+ async move {+ let _ = sqs.delete_queue().queue_url(&url).send().await;+ }+ });++ // Send+ let send_result = sqs+ .send_message()+ .queue_url(&url)+ .message_body("hello from rust")+ .send()+ .await;+ assert!(send_result.is_ok(), "SendMessage failed: {:?}", send_result.err());++ // Receive+ let recv_result = sqs+ .receive_message()+ .queue_url(&url)+ .max_number_of_messages(1)+ .send()+ .await;+ assert!(recv_result.is_ok(), "ReceiveMessage failed: {:?}", recv_result.err());++ let messages = recv_result.unwrap().messages;+ assert!(messages.is_some() && !messages.as_ref().unwrap().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sqs_delete_message() {+ let sqs = common::sqs_client().await;+ let queue_name = "rust-test-delete-msg";++ // Setup+ let create = sqs.create_queue().queue_name(queue_name).send().await.expect("setup");+ let url = create.queue_url().unwrap_or("").to_string();++ let _guard = common::CleanupGuard::new({+ let sqs = sqs.clone();+ let url = url.clone();+ async move {+ let _ = sqs.delete_queue().queue_url(&url).send().await;+ }+ });++ // Send and receive+ sqs.send_message()+ .queue_url(&url)+ .message_body("to delete")+ .send()+ .await+ .expect("send");++ let recv = sqs+ .receive_message()+ .queue_url(&url)+ .max_number_of_messages(1)+ .send()+ .await+ .expect("receive");++ if let Some(msgs) = recv.messages {+ if let Some(msg) = msgs.first() {+ if let Some(handle) = msg.receipt_handle() {+ let result = sqs+ .delete_message()+ .queue_url(&url)+ .receipt_handle(handle)+ .send()+ .await;+ assert!(result.is_ok(), "DeleteMessage failed: {:?}", result.err());+ }+ }+ }+}++#[tokio::test(flavor = "multi_thread")]+async fn test_sqs_delete_queue() {+ let sqs = common::sqs_client().await;+ let queue_name = "rust-test-delete-queue";++ // No cleanup guard needed - test is about deletion++ // Setup+ let create = sqs.create_queue().queue_name(queue_name).send().await.expect("setup");+ let url = create.queue_url().unwrap_or("").to_string();++ let result = sqs.delete_queue().queue_url(&url).send().await;+ assert!(result.is_ok(), "DeleteQueue failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/ssm_test.rs b/compatibility-tests/sdk-test-rust/tests/ssm_test.rsnew file mode 100644index 0000000000..a6117461cf--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/ssm_test.rs@@ -0,0 +1,167 @@+mod common;++use aws_sdk_ssm::types::ParameterType;++#[tokio::test(flavor = "multi_thread")]+async fn test_ssm_put_parameter() {+ let ssm = common::ssm_client().await;+ let name = "/rust-test/param";+ let value = "rust-test-value";++ let _guard = common::CleanupGuard::new({+ let ssm = ssm.clone();+ async move {+ let _ = ssm.delete_parameter().name(name).send().await;+ }+ });++ let result = ssm+ .put_parameter()+ .name(name)+ .value(value)+ .r#type(ParameterType::String)+ .overwrite(true)+ .send()+ .await;++ assert!(result.is_ok(), "PutParameter failed: {:?}", result.err());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_ssm_get_parameter() {+ let ssm = common::ssm_client().await;+ let name = "/rust-test/get-param";+ let value = "rust-get-value";++ let _guard = common::CleanupGuard::new({+ let ssm = ssm.clone();+ async move {+ let _ = ssm.delete_parameter().name(name).send().await;+ }+ });++ // Setup+ ssm.put_parameter()+ .name(name)+ .value(value)+ .r#type(ParameterType::String)+ .overwrite(true)+ .send()+ .await+ .expect("setup put");++ let result = ssm.get_parameter().name(name).send().await;+ assert!(result.is_ok(), "GetParameter failed: {:?}", result.err());++ let param = result.unwrap();+ assert_eq!(+ param.parameter().and_then(|p| p.value()).unwrap_or(""),+ value+ );+}++#[tokio::test(flavor = "multi_thread")]+async fn test_ssm_get_parameters() {+ let ssm = common::ssm_client().await;+ let name = "/rust-test/get-params";++ let _guard = common::CleanupGuard::new({+ let ssm = ssm.clone();+ async move {+ let _ = ssm.delete_parameter().name(name).send().await;+ }+ });++ // Setup+ ssm.put_parameter()+ .name(name)+ .value("test")+ .r#type(ParameterType::String)+ .overwrite(true)+ .send()+ .await+ .expect("setup");++ let result = ssm.get_parameters().names(name).send().await;+ assert!(result.is_ok(), "GetParameters failed: {:?}", result.err());+ assert_eq!(result.unwrap().parameters().len(), 1);+}++#[tokio::test(flavor = "multi_thread")]+async fn test_ssm_describe_parameters() {+ let ssm = common::ssm_client().await;+ let name = "/rust-test/describe";++ let _guard = common::CleanupGuard::new({+ let ssm = ssm.clone();+ async move {+ let _ = ssm.delete_parameter().name(name).send().await;+ }+ });++ // Setup+ ssm.put_parameter()+ .name(name)+ .value("test")+ .r#type(ParameterType::String)+ .overwrite(true)+ .send()+ .await+ .expect("setup");++ let result = ssm.describe_parameters().send().await;+ assert!(result.is_ok(), "DescribeParameters failed: {:?}", result.err());+ assert!(!result.unwrap().parameters().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_ssm_get_parameters_by_path() {+ let ssm = common::ssm_client().await;+ let name = "/rust-test/bypath/param";++ let _guard = common::CleanupGuard::new({+ let ssm = ssm.clone();+ async move {+ let _ = ssm.delete_parameter().name(name).send().await;+ }+ });++ // Setup+ ssm.put_parameter()+ .name(name)+ .value("test")+ .r#type(ParameterType::String)+ .overwrite(true)+ .send()+ .await+ .expect("setup");++ let result = ssm+ .get_parameters_by_path()+ .path("/rust-test/bypath")+ .send()+ .await;+ assert!(result.is_ok(), "GetParametersByPath failed: {:?}", result.err());+ assert!(!result.unwrap().parameters().is_empty());+}++#[tokio::test(flavor = "multi_thread")]+async fn test_ssm_delete_parameter() {+ let ssm = common::ssm_client().await;+ let name = "/rust-test/delete";++ // No cleanup guard needed - test is about deletion++ // Setup+ ssm.put_parameter()+ .name(name)+ .value("test")+ .r#type(ParameterType::String)+ .overwrite(true)+ .send()+ .await+ .expect("setup");++ let result = ssm.delete_parameter().name(name).send().await;+ assert!(result.is_ok(), "DeleteParameter failed: {:?}", result.err());+}diff --git a/compatibility-tests/sdk-test-rust/tests/sts_test.rs b/compatibility-tests/sdk-test-rust/tests/sts_test.rsnew file mode 100644index 0000000000..bad568fc1c--- /dev/null+++ b/compatibility-tests/sdk-test-rust/tests/sts_test.rs@@ -0,0 +1,12 @@+mod common;++#[tokio::test]+async fn test_sts_get_caller_identity() {+ let sts = common::sts_client().await;++ let result = sts.get_caller_identity().send().await;+ assert!(result.is_ok(), "GetCallerIdentity failed: {:?}", result.err());++ let identity = result.unwrap();+ assert!(identity.account().is_some());+}diff --git a/src/main/java/io/github/hectorvent/floci/core/common/AwsJsonController.java b/src/main/java/io/github/hectorvent/floci/core/common/AwsJsonController.javaindex 88a11f8b03..dc224c6209 100644--- a/src/main/java/io/github/hectorvent/floci/core/common/AwsJsonController.java+++ b/src/main/java/io/github/hectorvent/floci/core/common/AwsJsonController.java@@ -177,7 +177,8 @@ public class AwsJsonController {gen.writeEndArray();} else if ("Timestamp".equals(fieldName) && node.isNumber()) {gen.writeTag(1);- gen.writeNumber(node.longValue());+ // Smithy rpc-v2-cbor timestamps are epoch seconds encoded as tagged floating-point numbers.+ gen.writeNumber(node.doubleValue());} else if (node.isTextual()) {gen.writeString(node.textValue());} else if (node.isDouble() || node.isFloat()) {diff --git a/src/main/java/io/github/hectorvent/floci/services/cloudwatch/metrics/CloudWatchMetricsJsonHandler.java b/src/main/java/io/github/hectorvent/floci/services/cloudwatch/metrics/CloudWatchMetricsJsonHandler.javaindex ee2d23a7a5..58d57028ee 100644--- a/src/main/java/io/github/hectorvent/floci/services/cloudwatch/metrics/CloudWatchMetricsJsonHandler.java+++ b/src/main/java/io/github/hectorvent/floci/services/cloudwatch/metrics/CloudWatchMetricsJsonHandler.java@@ -206,6 +206,15 @@ public class CloudWatchMetricsJsonHandler {if (parsed != null) datum.setTimestamp(parsed.getEpochSecond());}datum.setDimensions(parseDimensionsJson(item.path("Dimensions")));++ JsonNode statsValues = item.path("StatisticValues");+ if (!statsValues.isMissingNode()) {+ datum.setSampleCount(statsValues.path("SampleCount").asDouble(0));+ datum.setSum(statsValues.path("Sum").asDouble(0));+ datum.setMinimum(statsValues.path("Minimum").asDouble(0));+ datum.setMaximum(statsValues.path("Maximum").asDouble(0));+ }+datums.add(datum);}return datums;diff --git a/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java b/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.javaindex c86e4d31ae..e33ca69c2e 100644--- a/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java+++ b/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java@@ -1255,13 +1255,17 @@ public class S3Controller {private Response handleCopyObject(String copySource, String destBucket, String destKey,String contentType, HttpHeaders httpHeaders) {+ // copySource format: /bucket/key or bucket/key, where key is URL-encodedString source = copySource.startsWith("/") ? copySource.substring(1) : copySource;- int slashIndex = source.indexOf('/');++ // URL decode the entire source first, then split+ String decodedSource = URLDecoder.decode(source, StandardCharsets.UTF_8);+ int slashIndex = decodedSource.indexOf('/');if (slashIndex < 0) {throw new AwsException("InvalidArgument", "Invalid copy source: " + copySource, 400);}- String sourceBucket = source.substring(0, slashIndex);- String sourceKey = URLDecoder.decode(source.substring(slashIndex + 1), StandardCharsets.UTF_8);+ String sourceBucket = decodedSource.substring(0, slashIndex);+ String sourceKey = decodedSource.substring(slashIndex + 1);String copyContentEncoding = toPersistedContentEncoding(httpHeaders.getHeaderString("Content-Encoding"));S3Object copy = s3Service.copyObject(sourceBucket, sourceKey, destBucket, destKey,@@ -1282,13 +1286,17 @@ public class S3Controller {private Response handleUploadPartCopy(String copySource, String destBucket, String destKey,String uploadId, int partNumber, HttpHeaders httpHeaders) {+ // copySource format: /bucket/key or bucket/key, where key is URL-encodedString source = copySource.startsWith("/") ? copySource.substring(1) : copySource;- int slashIndex = source.indexOf('/');++ // URL decode the entire source first, then split.+ String decodedSource = URLDecoder.decode(source, StandardCharsets.UTF_8);+ int slashIndex = decodedSource.indexOf('/');if (slashIndex < 0) {throw new AwsException("InvalidArgument", "Invalid copy source: " + copySource, 400);}- String sourceBucket = source.substring(0, slashIndex);- String sourceKey = source.substring(slashIndex + 1);+ String sourceBucket = decodedSource.substring(0, slashIndex);+ String sourceKey = decodedSource.substring(slashIndex + 1);String copySourceRange = httpHeaders.getHeaderString("x-amz-copy-source-range");String eTag = s3Service.uploadPartCopy(destBucket, destKey, uploadId, partNumber,sourceBucket, sourceKey, copySourceRange);diff --git a/src/test/java/io/github/hectorvent/floci/lifecycle/HealthControllerIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/lifecycle/HealthControllerIntegrationTest.javaindex 66734364de..7c39ca3b74 100644--- a/src/test/java/io/github/hectorvent/floci/lifecycle/HealthControllerIntegrationTest.java+++ b/src/test/java/io/github/hectorvent/floci/lifecycle/HealthControllerIntegrationTest.java@@ -39,6 +39,7 @@ class HealthControllerIntegrationTest {"acm": "running","email": "running","es": "running",+ "ec2": "running","ecs": "running"},"edition": "floci-always-free",diff --git a/src/test/java/io/github/hectorvent/floci/services/s3/S3ServiceTest.java b/src/test/java/io/github/hectorvent/floci/services/s3/S3ServiceTest.javaindex 0b27a18d83..978630a554 100644--- a/src/test/java/io/github/hectorvent/floci/services/s3/S3ServiceTest.java+++ b/src/test/java/io/github/hectorvent/floci/services/s3/S3ServiceTest.java@@ -360,4 +360,18 @@ class S3ServiceTest {assertEquals("STANDARD_IA", copy.getStorageClass());assertEquals("dest", copy.getMetadata().get("owner"));}++ @Test+ void copyObjectWithNonASCIIKey() {+ s3Service.createBucket("test-bucket", "us-east-1");+ String nonASCIIKey = "src/テスト画像.png";+ s3Service.putObject("test-bucket", nonASCIIKey, "image-data".getBytes(), "image/png", null);++ String destKey = "dst/テスト画像.png";+ S3Object copy = s3Service.copyObject("test-bucket", nonASCIIKey, "test-bucket", destKey);+ assertNotNull(copy.getETag());++ S3Object retrieved = s3Service.getObject("test-bucket", destKey);+ assertArrayEquals("image-data".getBytes(), retrieved.getData());+ }}