Files
floci/compatibility-tests/sdk-test-awscli
Murtuza Chhil ff467b2e09 feat(paymentcryptography): the AS2805 key cryptogram (#8172)
ExportKey and ImportKey take an As2805KeyCryptogram: a TDES key leaves and
comes back under a TR31_K0 TDES key encryption key, bound to one of the
four AS2805 variants. The cryptogram carries a tag over the whole of it,
made under a key derived from the wrapping key and checked before anything
is decrypted, and the key's ANSI X9.24 check value, which the import
compares. A wrapping key that is not K0, not TDES or weaker than the key is
refused, as is a variant that does not match the key's purpose.

Bytes holds the concat, PKCS#7 padding and isHex the payment cryptography
classes kept copies of, and the SDK and CLI compatibility tests cover the
round trip and its refusals.
2026-11-15 08:44:38 -04:00
..

sdk-test-awscli

Compatibility tests for 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
payment-cryptography-data The Payment Cryptography data plane: encrypt, decrypt, MAC
payment-cryptography-pin The Payment Cryptography PIN operations: generate, verify, translate
payment-cryptography-card The Payment Cryptography card operations: the card verification value and the authorization cryptogram

Requirements

  • AWS CLI v2
  • bash
  • jq
  • bats-core (installed via just setup-awscli)

Running

# 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

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