mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 14:57:54 -05:00
The PIN refusal test of the Java SDK suite, and the card and PIN refusal tests of the AWS CLI suite, verified a fixed value, 9999 or 999, under a key created for the run. The key is new each time, so the fixed value was the key's own once in 10,000 PIN runs and once in 1,000 card runs, and the test then failed: it did on #8611's native arm64 / sdk-test-java job. Each now generates the value under its key and verifies it with another first digit, which can't be it, as the Java card test has done since #8664. The card test and the PIN test of the Java SDK suite each derived the value to refuse by changing the first digit of the one their key generated. That is now PaymentCryptographyValues.withAnotherFirstDigit, and both use it.
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