MCPcopy Create free account

hub / github.com/aws-samples/aws-dynamodb-examples / functions

Functions2,858 in github.com/aws-samples/aws-dynamodb-examples

FunctionskipIfNoE2EDatabase
()
workshops/modernizer/backend/src/test-configs/e2e-database-setup.ts:54
FunctionstopVideo
()
workshops/global-serverless/web/player.js:419
MethodtakeScreenshot
* Take screenshot (placeholder for future implementation)
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:534
MethodtakeScreenshot
* Take screenshot (placeholder for future implementation)
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:534
MethodtearDown
()
examples/hedging/java/ddb-hedging-sample/src/test/java/com/example/dynamodbhedging/DynamoDBHedgedQueryTest.java:45
Functiontemp_csv_file
Create a temporary CSV file for testing. Returns: Path to temporary CSV file
scripts/dynamodb-local-bulk-loader/tests/integration/test_async_loader_e2e.py:56
FunctiontestAsyncFunction
()
workshops/modernizer/clean-start/backend/src/__tests__/unit/utils/performanceMonitor.test.ts:135
FunctiontestAsyncFunction
()
workshops/modernizer/backend/src/__tests__/unit/utils/performanceMonitor.test.ts:135
MethodtestAuthenticationPerformance
* Test authentication endpoint performance
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/performance-helpers.ts:140
MethodtestAuthenticationPerformance
* Test authentication endpoint performance
workshops/modernizer/backend/src/test-configs/test-helpers/performance-helpers.ts:140
MethodtestClose_CallsUnderlyingResourcesClose
()
examples/hedging/java/ddb-hedging-sample/src/test/java/com/example/dynamodbhedging/DynamoDBHedgedQueryTest.java:87
FunctiontestDatabaseQuery
()
workshops/modernizer/clean-start/backend/src/config/database.ts:271
FunctiontestDatabaseQuery
()
workshops/modernizer/backend/src/config/database.ts:271
MethodtestDefaultConstructor
()
examples/hedging/java/ddb-hedging-sample/src/test/java/com/example/dynamodbhedging/DynamoDBHedgedQueryTest.java:111
FunctiontestFunction
()
workshops/modernizer/clean-start/backend/src/__tests__/unit/utils/performanceMonitor.test.ts:115
FunctiontestFunction
()
workshops/modernizer/backend/src/__tests__/unit/utils/performanceMonitor.test.ts:115
MethodtestProductSearchPerformance
* Test product search performance
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/performance-helpers.ts:171
MethodtestProductSearchPerformance
* Test product search performance
workshops/modernizer/backend/src/test-configs/test-helpers/performance-helpers.ts:171
MethodtestQueryWithHedging_HandlesException
()
examples/hedging/java/ddb-hedging-sample/src/test/java/com/example/dynamodbhedging/DynamoDBHedgedQueryTest.java:70
MethodtestQueryWithHedging_Success
()
examples/hedging/java/ddb-hedging-sample/src/test/java/com/example/dynamodbhedging/DynamoDBHedgedQueryTest.java:51
MethodtestQueryWithHedging_VerifiesCorrectRequestParameters
()
examples/hedging/java/ddb-hedging-sample/src/test/java/com/example/dynamodbhedging/DynamoDBHedgedQueryTest.java:97
MethodtestShoppingCartPerformance
* Test shopping cart performance
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/performance-helpers.ts:196
MethodtestShoppingCartPerformance
* Test shopping cart performance
workshops/modernizer/backend/src/test-configs/test-helpers/performance-helpers.ts:196
Methodtest_10k_records
Test generating CSV with 10,000 records. This is the default development testing size. Validates: Requirements 4.5, 4.6
scripts/dynamodb-local-bulk-loader/tests/unit/test_csv_generator.py:150
Methodtest_1m_records
Test generating CSV with 1,000,000 records. This is the production-scale testing size. Marked as slow test. Validates: Requirements
scripts/dynamodb-local-bulk-loader/tests/unit/test_csv_generator.py:190
Methodtest_access_denied_is_permanent
Test that AccessDeniedException is categorized as permanent.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:49
Methodtest_all_fields_present
Test that all required fields are present in generated CSV. Validates: Requirements 4.3
scripts/dynamodb-local-bulk-loader/tests/unit/test_csv_generator.py:229
Methodtest_all_valid_regions_accepted
Test that all valid AWS regions are accepted.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:119
Functiontest_async_loader_batch_processing
Test batch processing with different batch sizes. Validates that the loader correctly handles batching logic. Args: dynamodb_table:
scripts/dynamodb-local-bulk-loader/tests/integration/test_async_loader_e2e.py:305
Functiontest_async_loader_empty_csv
Test async loader with empty CSV file. Validates that the loader handles empty files gracefully. Args: dynamodb_table: Name of the m
scripts/dynamodb-local-bulk-loader/tests/integration/test_async_loader_e2e.py:181
Functiontest_async_loader_end_to_end
Test complete workflow: Generate CSV → Load → Verify DynamoDB contents. This test validates: - CSV generation with realistic data - CSV r
scripts/dynamodb-local-bulk-loader/tests/integration/test_async_loader_e2e.py:76
Functiontest_async_loader_error_isolation
Test that async loader isolates errors and continues processing other batches. Property: When some batches fail, successful batches should comple
scripts/dynamodb-local-bulk-loader/tests/property/test_error_isolation.py:50
Functiontest_async_loader_shuffle_verification
Test that data shuffling prevents sequential writes. This test validates Requirement 1.2: Data shuffling to prevent hot partitions. While we
scripts/dynamodb-local-bulk-loader/tests/integration/test_async_loader_e2e.py:239
Functiontest_batch_processing_correctness
Property 3: Batch Processing Correctness For any record count N and batch size B, the number of batches created should equal ceil(N / B),
scripts/dynamodb-local-bulk-loader/tests/property/test_async_loader.py:172
Methodtest_conditional_check_failed_is_permanent
Test that ConditionalCheckFailedException is categorized as permanent.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:64
Methodtest_connection_error_is_transient
Test that ConnectionError is categorized as transient.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:157
Methodtest_create_batches_with_empty_records
Test batch creation with empty record list.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:132
Methodtest_create_batches_with_empty_records
Test batch creation with empty record list.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:134
Methodtest_create_batches_with_exact_multiple
Test batch creation when record count is exact multiple of batch size.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:108
Methodtest_create_batches_with_exact_multiple
Test batch creation when record count is exact multiple of batch size.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:110
Methodtest_create_batches_with_remainder
Test batch creation when record count has remainder.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:119
Methodtest_create_batches_with_remainder
Test batch creation when record count has remainder.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:121
Functiontest_csv_format_round_trip
Property test: CSV format must support round-trip read/write operations. This test verifies that a CSV file can be read and its data structure
scripts/dynamodb-local-bulk-loader/tests/property/test_csv_generator.py:210
Methodtest_csv_format_valid
Test that generated CSV has valid format. Validates: Requirements 4.8
scripts/dynamodb-local-bulk-loader/tests/unit/test_csv_generator.py:325
Functiontest_csv_reading_completeness
Property 1: CSV Reading Completeness For any valid CSV file with N records, reading the file should produce exactly N records with all fi
scripts/dynamodb-local-bulk-loader/tests/property/test_async_loader.py:65
Functiontest_csv_record_required_fields_present
Property test: All required fields must be present and non-empty. This test verifies that CSVRecord instances always have all required fields
scripts/dynamodb-local-bulk-loader/tests/property/test_data_models.py:48
Methodtest_empty_table_name
Test that empty table_name is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:44
Methodtest_error_action_members
Test that ErrorAction enum has exactly three members.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:289
Methodtest_error_action_values
Test that ErrorAction enum has expected values.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:283
Methodtest_error_messages_are_descriptive
Test that error messages clearly describe the problem.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:221
Methodtest_error_messages_include_actual_values
Test that error messages include the actual invalid values.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:210
Methodtest_error_messages_suggest_valid_range
Test that error messages indicate valid ranges.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:233
Methodtest_initialization_validates_config
Test that initialization validates configuration parameters.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:44
Methodtest_initialization_validates_config
Test that initialization validates configuration parameters.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:46
Methodtest_initialization_validates_immediately
Test that AsyncDynamoDBLoader validates on initialization.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:166
Methodtest_initialization_validates_immediately
Test that ThreadedDynamoDBLoader validates on initialization.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:190
Methodtest_initialization_with_valid_config
Test that loader initializes correctly with valid configuration.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:28
Methodtest_initialization_with_valid_config
Test that loader initializes correctly with valid configuration.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:30
Methodtest_internal_failure_is_transient
Test that InternalFailure is categorized as transient.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:142
Methodtest_internal_server_error_is_transient
Test that InternalServerError is categorized as transient.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:137
Methodtest_invalid_parameter_is_permanent
Test that InvalidParameterException is categorized as permanent.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:59
Methodtest_invalid_region_format
Test that invalid AWS region is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:104
Methodtest_load_csv_with_empty_file
Test loading an empty CSV file.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:209
Methodtest_load_csv_with_empty_file
Test loading an empty CSV file.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:215
Methodtest_log_client_error_details
Test logging of ClientError details.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:238
Methodtest_log_generic_error_details
Test logging of generic error details.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:250
Methodtest_log_includes_request_id_for_client_errors
Test that AWS request ID is logged for ClientErrors.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:261
Methodtest_max_delay_less_than_base_delay
Test that max_delay < base_delay is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:151
Methodtest_max_retries_reached_fails_after_retries
Test that exhausted retries result in FAIL_AFTER_RETRIES action.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:192
Methodtest_multiple_validation_errors_reported_first
Test that first validation error is reported when multiple exist.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:176
Methodtest_negative_base_delay
Test that negative base_delay is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:144
Methodtest_negative_batch_size
Test that negative batch_size is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:66
Methodtest_negative_max_retries
Test that negative max_retries is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:90
Methodtest_negative_max_workers
Test that negative max_workers is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:82
Methodtest_non_client_error_is_not_throttling
Test that non-ClientError exceptions are not categorized as throttling.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:123
Methodtest_nonexistent_region
Test that non-existent AWS region is rejected.
scripts/dynamodb-local-bulk-loader/tests/unit/test_validation.py:112
Methodtest_one_record
Test generating CSV with exactly 1 record. Validates: Requirements 4.1, 4.3, 4.4, 4.5
scripts/dynamodb-local-bulk-loader/tests/unit/test_csv_generator.py:63
Methodtest_os_error_is_transient
Test that OSError is categorized as transient.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:167
Methodtest_permanent_error_fails_immediately
Test that permanent errors result in FAIL_IMMEDIATELY action.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:186
Methodtest_permanent_error_ignores_retry_count
Test that permanent errors fail immediately regardless of retry count.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:216
Methodtest_permanent_error_is_not_throttling
Test that permanent errors are not categorized as throttling.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:113
Methodtest_permanent_error_is_not_transient
Test that permanent errors are not categorized as transient.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:172
Functiontest_property_async_loader_validates_on_init
Property: AsyncDynamoDBLoader should validate configuration on initialization. For any valid configuration, AsyncDynamoDBLoader should initialize
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:155
Functiontest_property_empty_table_name_rejected
Property: Empty or whitespace-only table_name should be rejected. For any table_name that is empty or contains only whitespace, the system sh
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:88
Functiontest_property_invalid_batch_size_rejected
Property: Invalid batch_size (<=0) should be rejected with clear error. For any batch_size <= 0, the system should reject the configuration a
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:42
Functiontest_property_invalid_max_workers_rejected
Property: Invalid max_workers (<=0) should be rejected with clear error. For any max_workers <= 0, the system should reject the configuration
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:65
Functiontest_property_invalid_region_rejected
Property: Invalid AWS region should be rejected with clear error. For any region that is not a valid AWS region, the system should reject the
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:110
Functiontest_property_negative_max_retries_rejected
Property: Negative max_retries should be rejected with clear error. For any max_retries < 0, the system should reject the configuration and p
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:131
Functiontest_property_threaded_loader_validates_on_init
Property: ThreadedDynamoDBLoader should validate configuration on initialization. For any valid configuration, ThreadedDynamoDBLoader should init
scripts/dynamodb-local-bulk-loader/tests/property/test_input_validation.py:191
Methodtest_provisioned_throughput_exceeded_is_throttling
Test that ProvisionedThroughputExceededException is categorized as throttling.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:93
Methodtest_read_csv_with_empty_file
Test reading an empty CSV file.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:88
Methodtest_read_csv_with_empty_file
Test reading an empty CSV file.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:90
Methodtest_read_csv_with_valid_file
Test reading a valid CSV file.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:62
Methodtest_read_csv_with_valid_file
Test reading a valid CSV file.
scripts/dynamodb-local-bulk-loader/tests/unit/test_async_loader.py:64
Functiontest_record_count_accuracy
Property test: Generated CSV must contain exactly the requested number of records. This test verifies that the CSV generator produces exactly the
scripts/dynamodb-local-bulk-loader/tests/property/test_csv_generator.py:155
Functiontest_reporting_accuracy
Property 4: Reporting Accuracy For any set of write operations, the sum of successful writes and failed writes should equal the total num
scripts/dynamodb-local-bulk-loader/tests/property/test_async_loader.py:240
Methodtest_request_limit_exceeded_is_throttling
Test that RequestLimitExceeded is categorized as throttling.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:103
Methodtest_request_timeout_is_transient
Test that RequestTimeout is categorized as transient.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:152
Methodtest_resource_cleanup_on_error
Test that resources are properly cleaned up even when errors occur.
scripts/dynamodb-local-bulk-loader/tests/unit/test_threaded_loader.py:299
Methodtest_resource_not_found_is_permanent
Test that ResourceNotFoundException is categorized as permanent.
scripts/dynamodb-local-bulk-loader/tests/unit/test_error_handler.py:44
← previousnext →2,501–2,600 of 2,858, ranked by callers