Skip to content

Add direct unit tests for app/services/aws_sdk_client.py #884

@VaibhavUpreti

Description

@VaibhavUpreti

Why This Matters

this module is the safety boundary for a generic read-only AWS tool.

Read First

  • app/services/aws_sdk_client.py
  • app/tools/AWSOperationTool/__init__.py

Scope

  1. Add direct tests for _is_operation_allowed().
  2. Add direct tests for _sanitize_response().
  3. Add direct tests for execute_aws_sdk_call() using a fake boto3 client.

Tests / Coverage

  • tests/services/test_aws_sdk_client.py
  • cover blocked operation names
  • cover datetime, bytes, deep nesting, and oversized lists in sanitization
  • cover missing operation and credentials errors

Acceptance Criteria

  • allowlist and blocklist behavior is directly tested
  • sanitization behavior is locked down
  • the tests are fully offline

Metadata

Metadata

Labels

good first issueGood for newcomerssecuritySecurity hardening and sensitive-data safetytestsTest coverage and test organization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions