Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
51
17.8k
data_source
stringclasses
1 value
ability
stringclasses
1 value
instance
stringlengths
1.56k
1.49M
instance_id
stringlengths
15
28
DynamoDB's `update_item` performs floating-point arithmetic with mock table created via `boto3` When using `moto.mock_aws` to create a `pytest` fixture for a DynamoDB table created with `boto3`, it appears that the `update_item` operation called with an `ADD` expression performs floating-point arithmetic rather than `D...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float"], "PASS_TO_PASS": ["tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request"], "base_commit": "7f6c9cb1deafb280fe7fcc7551c38e397f11a706", "created_at": "2024-02-1...
getmoto__moto-7365
Timestream Write has the wrong response returned ### Environment Python 3.10.2 (and 3.9 in lambda) Libraries involved installed from pip: boto3 1.20.49 botocore 1.23.49 moto 3.1.0 pytest 7.1.0 pytest-mock 3.7.0 ### Expectation for respon...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_timestreamwrite/test_timestreamwrite_table.py::test_write_records"], "PASS_TO_PASS": ["tests/test_timestreamwrite/test_timestreamwrite_table.py::test_update_table", "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_describe_table", "tests/test_timestreamwrite/test_timestreamw...
getmoto__moto-4950
DynamoDB query with brackets in KeyConditionExpression causes: Invalid function name; function: See the attached testcase I have found that when mocking DynamoDB and running a query, if I put brackets in my KeyConditionExpression then it raises an error My KeyConditionExpression is `(#audit_object_id = :object_id...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_dynamodb/models/test_key_condition_expression_parser.py::TestHashAndRangeKey::test_brackets[(job_id", "tests/test_dynamodb/models/test_key_condition_expression_parser.py::TestHashAndRangeKey::test_brackets[job_id"], "PASS_TO_PASS": ["tests/test_dynamodb/models/test_key_condition_expression...
getmoto__moto-6178
EKS CreateCluster response encryptionConfig property should be a List/Array # Description When using moto server, the `CreateCluster` EKS API, the Cluster response object should contain `encryptionConfig` as a List of at-most-one `EncryptionConfig` maps/objects (as per example here: https://docs.aws.amazon.com/eks/...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_eks/test_server.py::test_eks_describe_existing_cluster"], "PASS_TO_PASS": ["tests/test_eks/test_server.py::test_eks_create_multiple_clusters_with_same_name", "tests/test_eks/test_server.py::test_eks_delete_cluster", "tests/test_eks/test_server.py::test_eks_list_nodegroups", "tests/test_eks...
getmoto__moto-4986
KeyError when calling deregister_resource with unknown ResourceArn in lake formation Description: When calling deregister_resource on a mocked lake formation client you get a KeyError which does not conform to the AWS docs. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lakeformation/clien...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_lakeformation/test_lakeformation.py::test_deregister_resource"], "PASS_TO_PASS": ["tests/test_lakeformation/test_lakeformation.py::test_list_data_cells_filter", "tests/test_lakeformation/test_lakeformation.py::test_revoke_permissions", "tests/test_lakeformation/test_lakeformation.py::test_...
getmoto__moto-7023
ECS list_services ClusterNotFoundException Not raised ## Reporting Bugs Resource/Client: **ECS** Method: **list_services** When calling the `ecs` `list_services` with a cluster that does not exist (in moto) the API returns an empty list response. Expected behavior: It should raise `ClusterNotFoundExcepti...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[unknown]", "tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[no"], "PASS_TO_PASS": ["tests/test_ecs/test_ecs_boto3.py::test_update_missing_service", "tests/test_ecs/test_ecs_boto3.py::test_start_task_with_tags", "tests/test_ecs/te...
getmoto__moto-5865
Organizations close_account doesn't match public API The Organizations close_account API was added in #5040. It doesn't match the spec of the public [CloseAccount](https://docs.aws.amazon.com/organizations/latest/APIReference/API_CloseAccount.html) API. > If the action is successful, the service sends back an HTT...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_organizations/test_organizations_boto3.py::test_close_account_puts_account_in_suspended_status"], "PASS_TO_PASS": ["tests/test_organizations/test_organizations_boto3.py::test_describe_organization", "tests/test_organizations/test_organizations_boto3.py::test_aiservices_opt_out_policy", "te...
getmoto__moto-5072
API Gateway does not support ":" character in the resource path. ## Reporting Bugs ### Expectation: Like the real API gateway, I want to create resource path with the character ":". This is important for our use case because we follow https://google.aip.dev/136 where ":" is commonly used. ### Actual: When tryin...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_apigateway/test_apigateway.py::test_create_resource__validate_name"], "PASS_TO_PASS": ["tests/test_apigateway/test_apigateway.py::test_get_model_by_name", "tests/test_apigateway/test_apigateway.py::test_get_usage_plans_using_key_id", "tests/test_apigateway/test_apigateway.py::test_delete_a...
getmoto__moto-6159
moto batch - "RuntimeError: cannot join thread before it is started" Hey, **after upgrading from moto 4.0.11 to 4.2.11** i am facing the following issue with my previously running pytest. The first test is successfull, the second test, essentially doing the same but with different input, fails. This is the **trac...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_batch/test_batch_jobs.py::test_submit_job_with_timeout_set_at_definition", "tests/test_batch/test_batch_jobs.py::test_submit_job_with_timeout", "tests/test_batch/test_batch_jobs.py::test_register_job_definition_with_timeout", "tests/test_batch/test_batch_jobs.py::test_cancel_job_empty_argu...
getmoto__moto-7105
mock_athena fails to get "primary" work group Hello! After upgrading from moto version 4.1.4 to 4.1.7, we now experience errors when performing the `athena_client.get_work_group(WorkGroup="primary")` call. Querying any other work group than "primary" (existent or non-existent work groups) works fine. The only code a...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_athena/test_athena.py::test_get_primary_workgroup"], "PASS_TO_PASS": ["tests/test_athena/test_athena.py::test_create_and_get_workgroup", "tests/test_athena/test_athena.py::test_create_work_group", "tests/test_athena/test_athena.py::test_stop_query_execution", "tests/test_athena/test_athena...
getmoto__moto-6212
SES region setting is not supported Hi, when trying to set the region of the SES client, it seems like it is not setting the region correctly and just defaults to the global region. It seems like this is a bug caused in this file: https://github.com/getmoto/moto/blob/master/moto/ses/responses.py in line 14 where th...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_ses/test_ses_boto3.py::test_identities_are_region_specific"], "PASS_TO_PASS": ["tests/test_ses/test_ses_boto3.py::test_create_configuration_set", "tests/test_ses/test_ses_boto3.py::test_send_email_when_verify_source", "tests/test_ses/test_ses_boto3.py::test_create_receipt_rule", "tests/tes...
getmoto__moto-5862
delete_secret accepts invalid input and then fails The following call is accepted by moto `delete_secret` validations but runtime AWS error is issued ``` self.secrets_client.delete_secret( SecretId=creds_name, RecoveryWindowInDays=0, ForceDeleteWithoutR...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_secretsmanager/test_secretsmanager.py::test_delete_secret_recovery_window_invalid_values", "tests/test_secretsmanager/test_secretsmanager.py::test_delete_secret_force_no_such_secret_with_invalid_recovery_window"], "PASS_TO_PASS": ["tests/test_secretsmanager/test_secretsmanager.py::test_get...
getmoto__moto-6469
Deleting secrets not possible with full ARN Deleting secrets in AWS Secrets Manager isn't possible when using the full ARN as secrets id and not specifying `ForceDeleteWithoutRecovery=True`: ```python import boto3 from moto import mock_secretsmanager @mock_secretsmanager def test_delete(): client = boto3....
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_secretsmanager/test_secretsmanager.py::test_delete_secret_by_arn"], "PASS_TO_PASS": ["tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_that_has_no_value", "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_value_by_arn", "tests/test_secretsmanager/test_secr...
getmoto__moto-4918
Versioned S3 buckets leak keys A left-over from #5551 ```python $ python -Wall Python 3.9.12 (main, Oct 8 2022, 00:52:50) [Clang 14.0.0 (clang-1400.0.29.102)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import gc >>> from moto.s3.models import S3Backend >>> s3 = S3Ba...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_versioned_file"], "PASS_TO_PASS": ["tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_overwriting_file", "tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_delete_specific_version", "tests/te...
getmoto__moto-5587
mock_lambda missing PackageType attribute I'm trying to test against zip based only lambdas, but the return object is missing `PackageType`. test: ```python @mock_lambda def test_list_zipped_lambdas(self): self.setup_mock_iam_role() # with mock_lambda(): client = boto3.client(...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_awslambda/test_lambda.py::test_list_functions", "tests/test_awslambda/test_lambda.py::test_list_create_list_get_delete_list", "tests/test_awslambda/test_lambda.py::test_create_function_from_zipfile"], "PASS_TO_PASS": ["tests/test_awslambda/test_lambda.py::test_put_event_invoke_config[confi...
getmoto__moto-7111
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
5