aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.14k stars 4.02k forks source link

1.27.146: pytest is failing in many units because it uses hardcoded `python` or `python.exe` python executable name #7949

Open kloczek opened 1 year ago

kloczek commented 1 year ago

Describe the bug

Looks like many pytest units are failing because it uses hardcoded python or python.exe python executable name.

Expected Behavior

Instead using pyhon or python.exe it should be used sys.executable.

Current Behavior

Here is pytest summary output

=============================== warnings summary ===============================
tests/functional/cloudformation/test_create_stack.py:44
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/functional/cloudformation/test_create_stack.py:44: DeprecationWarning: invalid escape sequence \,
    cmdline += ' --parameters ParameterKey=foo,ParameterValue=one\,two'

awscli/testutils.py:925
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/awscli/testutils.py:925: PytestCollectionWarning: cannot collect test class 'TestEventHandler' because it has a __init__ constructor (from: tests/functional/elb/test_register_instances_with_load_balancer.py)
    class TestEventHandler(object):

tests/unit/test_paramfile.py:95
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/test_paramfile.py:95: DeprecationWarning: invalid escape sequence \.
    with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'):

tests/unit/test_paramfile.py:100
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/test_paramfile.py:100: DeprecationWarning: invalid escape sequence \.
    with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'):

tests/unit/test_utils.py:70
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/test_utils.py:70: DeprecationWarning: invalid escape sequence \,
    self.assertEqual(split_on_commas('foo,bar=1\,2\,3,baz'),

tests/unit/customizations/emr/test_add_steps.py:215
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/customizations/emr/test_add_steps.py:215: DeprecationWarning: invalid escape sequence \,
    'Properties=k1=v1\,k2=v2\,k3')

tests/unit/customizations/history/test_db.py:618
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/customizations/history/test_db.py:618: DeprecationWarning: invalid escape sequence \e
    'tuple': ('bar', 'baz', b'\xfe\ed')

tests/functional/docs/test_examples.py: 10400 warnings
  /home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/functional/docs/test_examples.py:187: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
    settings = docutils.frontend.OptionParser(

tests/functional/docs/test_examples.py: 707200 warnings
  /usr/lib64/python3.8/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
    option = self.option_class(*args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [1] tests/functional/ec2/test_create_tags.py:33: Unicode cmd line test only is relevant to python2.
SKIPPED [1] tests/functional/elasticbeanstalk/test_create_application.py:29: Unicode cmd line test only is relevant to python2.
SKIPPED [1] tests/functional/s3/test_cp_command.py:1151: Test requires awscrt to be installed
SKIPPED [1] tests/functional/s3/test_cp_command.py:1167: Test requires awscrt to be installed
SKIPPED [1] tests/unit/output/test_text_output.py:164: Text writer only vaild on py3.
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_file_onto_itself_small_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_large_file_onto_itself
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_local_to_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_local
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart_recursive
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_with_sig4
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_to_nonexistent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_with_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_newlines
ERROR tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_page_size
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cleans_up_aborted_uploads
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_large_file_signature_v4
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata_directive
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_empty_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_s3_s3_multipart
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_and_from_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_nonexistent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_with_request_payer
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_without_trailing_slash
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_ctrl_c_does_not_hang
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_empty_object
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_encrypted_kms_object
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_non_existent_key
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_guess_mime_type
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_website_redirect_ignore_paramfile
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_s3_to_s3_sync_with_plus_char_paginate
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_delete_locally
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_no_resync
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_from_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_nonexistent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_across_sig4_regions
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_option_with_same_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_empty_files
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_plus_chars_paginate
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_cp_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_large_file_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_sync_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_is_special_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_exist
ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_read_access
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_small_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_bad_symlink
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks_default
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_no_follow_symlinks
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_cp
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_recursive_cp
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket_with_s3_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_empty_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail_recursive
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_non_existent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_recursive
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_no_env_vars
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_without_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_only_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_fail_mb_rb
ERROR tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_mb_rb
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_and_success_output_only_show_errors
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_only_show_errors
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_quiet
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_output
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_no_progress
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_only_show_errors
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_quiet
ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun
ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_download_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_large_files
ERROR tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_stream_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_transfer_single_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_and_error_configuration
ERROR tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_configuration
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_basic_exclude_filter_for_single_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_cwd_doesnt_matter
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_delete
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_relative_path
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_explicitly_exclude_single_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_no_resync
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_s3_with_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_recursive_exclude
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_s3_filtering
ERROR tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_sync_file_with_spaces
ERROR tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_upload_download_file_with_spaces
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestLSWithProfile::test_can_ls_with_profile
ERROR tests/integration/customizations/s3/test_plugin.py::TestNoSignRequests::test_no_sign_request
ERROR tests/integration/customizations/s3/test_plugin.py::TestHonorsEndpointUrl::test_verify_endpoint_url_is_used
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse_kms
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_kms_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_with_kms_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_can_delete_single_sse_c_object
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_smoke_sync_sse_c
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestPresignCommand::test_can_retrieve_presigned_url
FAILED tests/functional/kinesis/test_remove_operations.py::TestKinesisRemoveOperations::test_subscribe_to_shard_removed
FAILED tests/functional/lex/test_remove_operations.py::TestLexV2RuntimeRemoveOperations::test_start_conversation_removed
FAILED tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_assume_role_with_credential_source
FAILED tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_recursive_assume_role
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_bad_lc_ctype_env_var_is_handled
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_ec2_describe_instances
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_error_msg_with_no_region_configured
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_operation_level
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_service_level
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_top_level
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_with_warning_blocks
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_json_param_parsing
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_leftover_args_in_operation
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_make_requests_to_other_region
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_paginate_arg
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_sign_request
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_arg
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_option
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_pagination_with_text_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_json
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_shorthand
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_bad_json
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_file
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_with_required_option
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_streaming_output_operation
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_table_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_top_level_options_debug
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_list_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_traceback_printed_when_debug_on
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_unknown_argument
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_version
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_endpoint_url - Ass...
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_max_items - botoco...
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_paginate_and_original_args
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_pagination - bo...
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_sign_requests
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_has_precedence_over_env_vars
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_wins_over_profile_env_var
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_query - botocore.e...
FAILED tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_filter
FAILED tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_id
FAILED tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshot_with_snapshot_id
FAILED tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshots_with_filter
FAILED tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_filter
FAILED tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_volume_id
FAILED tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-account-limits]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-adjustment-types]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudformation describe-stacks]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudformation list-stacks]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch describe-domains]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch list-domain-names]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudtrail describe-trails]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudwatch list-metrics]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cognito-identity list-identity-pools --max-results 1]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[datapipeline list-pipelines]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[directconnect describe-connections]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[dynamodb list-tables]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-instances]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-regions]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[elasticache describe-cache-clusters]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[elb describe-load-balancers]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters --created-after 2014-11-24T00:00:00]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[iam list-users]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[kinesis list-streams]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[kms generate-random --number-of-bytes 128]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[logs describe-log-groups]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[opsworks describe-stacks]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[rds describe-db-instances]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[redshift describe-clusters]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[route53 list-hosted-zones]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[route53domains list-domains]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[s3api list-buckets]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[s3 ls]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[ses list-identities]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[sns list-topics]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[sqs list-queues]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[storagegateway list-gateways]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[swf list-domains --registration-status REGISTERED]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[swf list-open-workflow-executions --domain foo --start-time-filter oldestDate=1970-01-01]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[rds wait db-instance-deleted --db-instance-identifier foo-123]
FAILED tests/integration/test_smoke.py::test_display_error_message[autoscaling attach-instances --auto-scaling-group-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cloudformation cancel-update-stack --stack-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cloudsearch describe-suggesters --domain-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cloudtrail get-trail-status --name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cognito-identity delete-identity-pool --identity-pool-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[datapipeline delete-pipeline --pipeline-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[directconnect delete-connection --connection-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[dynamodb delete-table --table-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[ec2 terminate-instances --instance-ids %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[elasticache delete-cache-cluster --cache-cluster-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[elb describe-load-balancers --load-balancer-names %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[emr list-instances --cluster-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[iam delete-user --user-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[kinesis delete-stream --stream-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[logs delete-log-group --log-group-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[opsworks delete-app --app-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[rds delete-db-instance --db-instance-identifier %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[redshift delete-cluster --cluster-identifier %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[route53 delete-hosted-zone --id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[route53domains get-domain-detail --domain-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[s3api head-bucket --bucket %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[ses set-identity-dkim-enabled --identity %s --dkim-enabled]
FAILED tests/integration/test_smoke.py::test_display_error_message[sns delete-endpoint --endpoint-arn %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[sqs delete-queue --queue-url %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[storagegateway delete-gateway --gateway-arn foo-cli-test-foo-cli-test-foo-cli-test-%s]
FAILED tests/integration/test_smoke.py::test_display_error_message[swf deprecate-domain --name %s]
FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_iam
FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_s3api
FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_sqs
FAILED tests/integration/customizations/test_waiters.py::TestDynamoDBWait::test_wait_table_exists
FAILED tests/integration/customizations/history/test_show.py::TestShow::test_show
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_page_size
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_delete_directory
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_directory
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_file
FAILED tests/unit/customizations/emr/test_emr_utils.py::TestEMRutils::test_which_with_existing_command
= 121 failed, 27482 passed, 5 skipped, 717607 warnings, 118 errors in 2637.75s (0:43:57) =

Reproduction Steps

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

Possible Solution

Instead hardcode python executable name it should be used sys.executable.

Additional Information/Context

In summary there are some pytest warnings as well. Here is fill pytest output as attachment python-awscli.FAIL.txt

CLI version used

1.27.146

Environment details (OS name and version, etc.)

Linux x86/64

tim-finnigan commented 1 year ago

This appears to be an issue with your environment rather than the CLI. We recommend using v2 and following the documentation here on installing the CLI. You can refer to the source distribution documentation for building and installing from source if that would address your use case.

kloczek commented 1 year ago

Again: hardcoding python executable name and not use sys.executable has nothing to do with my build env. Please rename temporary your build env python executable name to for example python.foo and you will see the same fails.

nateprewitt commented 1 year ago

@kloczek could you provide a link to where you're observing hardcoded python values?

From the log you provided, you're trying to run the integration tests that make live calls to AWS services without an account setup.

def add_auth(self, request):
        if self.credentials is None:
>           raise NoCredentialsError()
E           botocore.exceptions.NoCredentialsError: Unable to locate credentials
kloczek commented 1 year ago

Please have look on errors like below: DEBUG awscli.tests.integration:testutils.py:565 stderr: /bin/sh: line 1: python: command not found

BTW units failing with missing credentials: it would be good to skip those units if pytest is executed with -m "not network"

tim-finnigan commented 1 year ago

Can you expand on your use case for building/testing when not connected to a network?

kloczek commented 1 year ago

Looks like units which are failing with missing credentials generally need access to public network over which are reached some AWS services. Above log was generated on manual build on my devel system however prod packages is intentionally cut off from access to public network. Many other pyton modules test suites already uses pytest mark 'network` convention which allows skip units execution which needs such access. Ergo: I'm asking to use the same convention.

kloczek commented 1 year ago

Just tested 1.29.3 and looks lik enow more units are failing.

```console =============================== warnings summary =============================== tests/functional/cloudformation/test_create_stack.py:44 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/functional/cloudformation/test_create_stack.py:44: DeprecationWarning: invalid escape sequence \, cmdline += ' --parameters ParameterKey=foo,ParameterValue=one\,two' awscli/testutils.py:925 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/awscli/testutils.py:925: PytestCollectionWarning: cannot collect test class 'TestEventHandler' because it has a __init__ constructor (from: tests/functional/elb/test_register_instances_with_load_balancer.py) class TestEventHandler(object): tests/unit/test_paramfile.py:95 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/unit/test_paramfile.py:95: DeprecationWarning: invalid escape sequence \. with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'): tests/unit/test_paramfile.py:100 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/unit/test_paramfile.py:100: DeprecationWarning: invalid escape sequence \. with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'): tests/unit/test_utils.py:70 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/unit/test_utils.py:70: DeprecationWarning: invalid escape sequence \, self.assertEqual(split_on_commas('foo,bar=1\,2\,3,baz'), tests/unit/customizations/emr/test_add_steps.py:215 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/unit/customizations/emr/test_add_steps.py:215: DeprecationWarning: invalid escape sequence \, 'Properties=k1=v1\,k2=v2\,k3') tests/unit/customizations/history/test_db.py:618 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/unit/customizations/history/test_db.py:618: DeprecationWarning: invalid escape sequence \e 'tuple': ('bar', 'baz', b'\xfe\ed') tests/functional/docs/test_examples.py: 10400 warnings /home/tkloczko/rpmbuild/BUILD/aws-cli-1.29.3/tests/functional/docs/test_examples.py:187: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later. settings = docutils.frontend.OptionParser( tests/functional/docs/test_examples.py: 707200 warnings /usr/lib64/python3.8/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later. option = self.option_class(*args, **kwargs) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ SKIPPED [2] tests/functional/configured_endpoint_urls/test_configured_endpoint_url.py:132: Parameter not supported on the command line SKIPPED [1] tests/functional/ec2/test_create_tags.py:33: Unicode cmd line test only is relevant to python2. SKIPPED [1] tests/functional/elasticbeanstalk/test_create_application.py:29: Unicode cmd line test only is relevant to python2. SKIPPED [1] tests/functional/s3/test_cp_command.py:1151: Test requires awscrt to be installed SKIPPED [1] tests/functional/s3/test_cp_command.py:1167: Test requires awscrt to be installed SKIPPED [1] tests/unit/output/test_text_output.py:164: Text writer only vaild on py3. ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_file_onto_itself_small_file ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_large_file_onto_itself ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_local_to_s3 ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_local ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3 ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart_recursive ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_with_sig4 ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_to_nonexistent_bucket ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_with_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_newlines ERROR tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_page_size ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cleans_up_aborted_uploads ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_large_file_signature_v4 ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata_directive ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_empty_file ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_s3_s3_multipart ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_and_from_s3 ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_nonexistent_bucket ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_with_request_payer ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_without_trailing_slash ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_ctrl_c_does_not_hang ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_empty_object ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_encrypted_kms_object ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_non_existent_key ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_guess_mime_type ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_website_redirect_ignore_paramfile ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_s3_to_s3_sync_with_plus_char_paginate ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_delete_locally ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_no_resync ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_from_s3 ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_nonexistent_bucket ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_across_sig4_regions ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_option_with_same_prefix ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_empty_files ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_plus_chars_paginate ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_cp_region ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_large_file_region ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_region ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_sync_region ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_is_special_file ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_exist ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_read_access ERROR tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_small_file ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_bad_symlink ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks_default ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_no_follow_symlinks ERROR tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_cp ERROR tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_recursive_cp ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket_with_s3_prefix ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_empty_bucket ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail_recursive ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_non_existent_bucket ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_recursive ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_no_env_vars ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_prefix ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_without_prefix ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_only_prefix ERROR tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_fail_mb_rb ERROR tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_mb_rb ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_and_success_output_only_show_errors ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_only_show_errors ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_quiet ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_output ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_no_progress ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_only_show_errors ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_quiet ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_download_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_large_files ERROR tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_stream_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_transfer_single_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_and_error_configuration ERROR tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_configuration ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_basic_exclude_filter_for_single_file ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_cwd_doesnt_matter ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_delete ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_relative_path ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_explicitly_exclude_single_file ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_no_resync ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_s3_with_prefix ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_recursive_exclude ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_s3_filtering ERROR tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_sync_file_with_spaces ERROR tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_upload_download_file_with_spaces ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_download ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_download ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_download ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestLSWithProfile::test_can_ls_with_profile ERROR tests/integration/customizations/s3/test_plugin.py::TestNoSignRequests::test_no_sign_request ERROR tests/integration/customizations/s3/test_plugin.py::TestHonorsEndpointUrl::test_verify_endpoint_url_is_used ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_copy ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_copy ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse_kms ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_copy ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_kms_copy ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_with_kms_upload ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_can_delete_single_sse_c_object ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_smoke_sync_sse_c ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download_large_file ERROR tests/integration/customizations/s3/test_plugin.py::TestPresignCommand::test_can_retrieve_presigned_url FAILED tests/functional/kinesis/test_remove_operations.py::TestKinesisRemoveOperations::test_subscribe_to_shard_removed FAILED tests/functional/lex/test_remove_operations.py::TestLexV2RuntimeRemoveOperations::test_start_conversation_removed FAILED tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_assume_role_with_credential_source FAILED tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_recursive_assume_role FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_bad_lc_ctype_env_var_is_handled FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_ec2_describe_instances FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_error_msg_with_no_region_configured FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_operation_level FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_service_level FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_top_level FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_with_warning_blocks FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_json_param_parsing FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_leftover_args_in_operation FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_make_requests_to_other_region FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_paginate_arg FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_sign_request FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_arg FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_option FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_pagination_with_text_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_json FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_shorthand FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_bad_json FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_file FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_with_required_option FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_streaming_output_operation FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_table_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_top_level_options_debug FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_help_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_list_help_output FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_traceback_printed_when_debug_on FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_unknown_argument FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_version FAILED tests/integration/test_cli.py::TestGlobalArgs::test_endpoint_url - Ass... FAILED tests/integration/test_cli.py::TestGlobalArgs::test_max_items - botoco... FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_paginate_and_original_args FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_pagination - bo... FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_sign_requests FAILED tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_has_precedence_over_env_vars FAILED tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_wins_over_profile_env_var FAILED tests/integration/test_cli.py::TestGlobalArgs::test_query - botocore.e... FAILED tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_filter FAILED tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_id FAILED tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshot_with_snapshot_id FAILED tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshots_with_filter FAILED tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_filter FAILED tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_volume_id FAILED tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-account-limits] FAILED tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-adjustment-types] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudformation describe-stacks] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudformation list-stacks] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch describe-domains] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch list-domain-names] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudtrail describe-trails] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudwatch list-metrics] FAILED tests/integration/test_smoke.py::test_can_make_success_request[cognito-identity list-identity-pools --max-results 1] FAILED tests/integration/test_smoke.py::test_can_make_success_request[datapipeline list-pipelines] FAILED tests/integration/test_smoke.py::test_can_make_success_request[directconnect describe-connections] FAILED tests/integration/test_smoke.py::test_can_make_success_request[dynamodb list-tables] FAILED tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-instances] FAILED tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-regions] FAILED tests/integration/test_smoke.py::test_can_make_success_request[elasticache describe-cache-clusters] FAILED tests/integration/test_smoke.py::test_can_make_success_request[elb describe-load-balancers] FAILED tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters] FAILED tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters --created-after 2014-11-24T00:00:00] FAILED tests/integration/test_smoke.py::test_can_make_success_request[iam list-users] FAILED tests/integration/test_smoke.py::test_can_make_success_request[kinesis list-streams] FAILED tests/integration/test_smoke.py::test_can_make_success_request[kms generate-random --number-of-bytes 128] FAILED tests/integration/test_smoke.py::test_can_make_success_request[logs describe-log-groups] FAILED tests/integration/test_smoke.py::test_can_make_success_request[opsworks describe-stacks] FAILED tests/integration/test_smoke.py::test_can_make_success_request[rds describe-db-instances] FAILED tests/integration/test_smoke.py::test_can_make_success_request[redshift describe-clusters] FAILED tests/integration/test_smoke.py::test_can_make_success_request[route53 list-hosted-zones] FAILED tests/integration/test_smoke.py::test_can_make_success_request[route53domains list-domains] FAILED tests/integration/test_smoke.py::test_can_make_success_request[s3api list-buckets] FAILED tests/integration/test_smoke.py::test_can_make_success_request[s3 ls] FAILED tests/integration/test_smoke.py::test_can_make_success_request[ses list-identities] FAILED tests/integration/test_smoke.py::test_can_make_success_request[sns list-topics] FAILED tests/integration/test_smoke.py::test_can_make_success_request[sqs list-queues] FAILED tests/integration/test_smoke.py::test_can_make_success_request[storagegateway list-gateways] FAILED tests/integration/test_smoke.py::test_can_make_success_request[swf list-domains --registration-status REGISTERED] FAILED tests/integration/test_smoke.py::test_can_make_success_request[swf list-open-workflow-executions --domain foo --start-time-filter oldestDate=1970-01-01] FAILED tests/integration/test_smoke.py::test_can_make_success_request[rds wait db-instance-deleted --db-instance-identifier foo-123] FAILED tests/integration/test_smoke.py::test_display_error_message[autoscaling attach-instances --auto-scaling-group-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[cloudformation cancel-update-stack --stack-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[cloudsearch describe-suggesters --domain-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[cloudtrail get-trail-status --name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[cognito-identity delete-identity-pool --identity-pool-id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[datapipeline delete-pipeline --pipeline-id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[directconnect delete-connection --connection-id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[dynamodb delete-table --table-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[ec2 terminate-instances --instance-ids %s] FAILED tests/integration/test_smoke.py::test_display_error_message[elasticache delete-cache-cluster --cache-cluster-id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[elb describe-load-balancers --load-balancer-names %s] FAILED tests/integration/test_smoke.py::test_display_error_message[emr list-instances --cluster-id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[iam delete-user --user-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[kinesis delete-stream --stream-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[logs delete-log-group --log-group-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[opsworks delete-app --app-id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[rds delete-db-instance --db-instance-identifier %s] FAILED tests/integration/test_smoke.py::test_display_error_message[redshift delete-cluster --cluster-identifier %s] FAILED tests/integration/test_smoke.py::test_display_error_message[route53 delete-hosted-zone --id %s] FAILED tests/integration/test_smoke.py::test_display_error_message[route53domains get-domain-detail --domain-name %s] FAILED tests/integration/test_smoke.py::test_display_error_message[s3api head-bucket --bucket %s] FAILED tests/integration/test_smoke.py::test_display_error_message[ses set-identity-dkim-enabled --identity %s --dkim-enabled] FAILED tests/integration/test_smoke.py::test_display_error_message[sns delete-endpoint --endpoint-arn %s] FAILED tests/integration/test_smoke.py::test_display_error_message[sqs delete-queue --queue-url %s] FAILED tests/integration/test_smoke.py::test_display_error_message[storagegateway delete-gateway --gateway-arn foo-cli-test-foo-cli-test-foo-cli-test-%s] FAILED tests/integration/test_smoke.py::test_display_error_message[swf deprecate-domain --name %s] FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_iam FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_s3api FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_sqs FAILED tests/integration/customizations/test_waiters.py::TestDynamoDBWait::test_wait_table_exists FAILED tests/integration/customizations/history/test_show.py::TestShow::test_show FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_page_size FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_delete_directory FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_directory FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_file FAILED tests/unit/customizations/emr/test_emr_utils.py::TestEMRutils::test_which_with_existing_command = 121 failed, 27789 passed, 7 skipped, 717607 warnings, 118 errors in 2659.55s (0:44:19) = /usr/lib/python3.8/site-packages/_pytest/pathlib.py:95: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-01b78f05-d278-4658-a1c2-f6e728f50daa/test_rmtree_errorhandler_r ```
SimardeepSingh-zsh commented 10 months ago

Define a Custom pytest Mark: You can create a custom pytest mark, let's call it @pytest.mark.requires_network, to indicate that a test requires access to the public network.

python Copy code

In a pytest configuration file (e.g., conftest.py)

import pytest

pytest.mark.requires_network = pytest.mark.skipif( not pytest.config.getoption("--allow-network"), reason="Test requires access to the public network", ) Use the Custom Mark in Tests: In your test functions, use the @pytest.mark.requires_network decorator to mark tests that need network access.

python Copy code import pytest

@pytest.mark.requires_network def test_something_that_needs_network_access():

Your test logic here

Configure pytest for Network Access: When running tests in a non-production environment where network access is allowed (e.g., on your development system), you can pass a command-line option to pytest to enable tests that require network access:

bash Copy code pytest --allow-network Configure pytest for Production: In your production environment, you can run pytest without the --allow-network option, and tests marked with @pytest.mark.requires_network will be skipped.

By following this convention, you can ensure that tests that require network access are only executed when explicitly allowed, which helps prevent unintended network access in production environments.

Make sure to document this convention in your test suite's documentation or README file so that team members are aware of how to use it effectively.

kloczek commented 10 months ago

I can only add that network as exact mark name is already used in many other pytest based test suites. I would highly recommend use exactly that mark name.

Nevertheless this ticket mainly is about hardcoded pyton executable name 😋

kloczek commented 6 months ago

Just found that on top of already reported issues in 1.32.9 two new units started failing

Here is pytest output: ```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-awscli-1.32.9-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-awscli-1.32.9-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' --deselect tests/functional/ec2/test_run_instances.py::TestRunInstances::test_enable_primary_ipv6_and_associate_public_ip_address --deselect tests/functional/kinesis/test_remove_operations.py::TestKinesisRemoveOperations::test_subscribe_to_shard_removed --deselect tests/functional/lex/test_remove_operations.py::TestLexV2RuntimeRemoveOperations::test_start_conversation_removed --deselect tests/integration/customizations/history/test_show.py::TestShow::test_show --deselect tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_page_size --deselect tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_delete_directory --deselect tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_directory --deselect tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_file --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cleans_up_aborted_uploads --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_large_file_signature_v4 --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata_directive --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_empty_file --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_s3_s3_multipart --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_and_from_s3 --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_nonexistent_bucket --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_with_request_payer --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_without_trailing_slash --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_ctrl_c_does_not_hang --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_empty_object --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_encrypted_kms_object --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_non_existent_key --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_guess_mime_type --deselect tests/integration/customizations/s3/test_plugin.py::TestCp::test_website_redirect_ignore_paramfile --deselect tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun --deselect tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_download_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_large_files --deselect tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_sync_file_with_spaces --deselect tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_upload_download_file_with_spaces --deselect tests/integration/customizations/s3/test_plugin.py::TestHonorsEndpointUrl::test_verify_endpoint_url_is_used --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_basic_exclude_filter_for_single_file --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_cwd_doesnt_matter --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_delete --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_relative_path --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_explicitly_exclude_single_file --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_no_resync --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_s3_with_prefix --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_recursive_exclude --deselect tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_s3_filtering --deselect tests/integration/customizations/s3/test_plugin.py::TestLSWithProfile::test_can_ls_with_profile --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket_with_s3_prefix --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_empty_bucket --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail_recursive --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_non_existent_bucket --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_recursive --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_no_env_vars --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_prefix --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_without_prefix --deselect tests/integration/customizations/s3/test_plugin.py::TestLs::test_only_prefix --deselect tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_fail_mb_rb --deselect tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_mb_rb --deselect tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_stream_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_transfer_single_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_file_onto_itself_small_file --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_large_file_onto_itself --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_local_to_s3 --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_local --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3 --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart_recursive --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_with_sig4 --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_to_nonexistent_bucket --deselect tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_with_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestNoSignRequests::test_no_sign_request --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_and_success_output_only_show_errors --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_only_show_errors --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_quiet --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_output --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_no_progress --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_only_show_errors --deselect tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_quiet --deselect tests/integration/customizations/s3/test_plugin.py::TestPresignCommand::test_can_retrieve_presigned_url --deselect tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_newlines --deselect tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_page_size --deselect tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_can_delete_single_sse_c_object --deselect tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_smoke_sync_sse_c --deselect tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy --deselect tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download --deselect tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_copy --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_copy --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse_kms --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_copy --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_kms_copy --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_with_kms_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_cp_region --deselect tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_large_file_region --deselect tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_region --deselect tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_sync_region --deselect tests/integration/customizations/s3/test_plugin.py::TestStreams::test_download --deselect tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_download --deselect tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_download --deselect tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestStreams::test_upload --deselect tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_bad_symlink --deselect tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks --deselect tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks_default --deselect tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_no_follow_symlinks --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_s3_to_s3_sync_with_plus_char_paginate --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_delete_locally --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_no_resync --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_from_s3 --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_nonexistent_bucket --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_across_sig4_regions --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_option_with_same_prefix --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_empty_files --deselect tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_plus_chars_paginate --deselect tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_large_file --deselect tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_small_file --deselect tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_cp --deselect tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_recursive_cp --deselect tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_is_special_file --deselect tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_exist --deselect tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_read_access --deselect tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_and_error_configuration --deselect tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_configuration --deselect tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_iam --deselect tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_s3api --deselect tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_sqs --deselect tests/integration/customizations/test_waiters.py::TestDynamoDBWait::test_wait_table_exists --deselect tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_assume_role_with_credential_source --deselect tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_recursive_assume_role --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_bad_lc_ctype_env_var_is_handled --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_ec2_describe_instances --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_error_msg_with_no_region_configured --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_operation_level --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_service_level --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_top_level --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_with_warning_blocks --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_json_param_parsing --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_leftover_args_in_operation --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_make_requests_to_other_region --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_paginate_arg --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_sign_request --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_arg --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_option --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_pagination_with_text_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_json --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_shorthand --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_bad_json --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_file --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_with_required_option --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_streaming_output_operation --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_table_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_top_level_options_debug --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_help_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_list_help_output --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_traceback_printed_when_debug_on --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_unknown_argument --deselect tests/integration/test_cli.py::TestBasicCommandFunctionality::test_version --deselect tests/integration/test_cli.py::TestGlobalArgs::test_endpoint_url --deselect tests/integration/test_cli.py::TestGlobalArgs::test_max_items --deselect tests/integration/test_cli.py::TestGlobalArgs::test_no_paginate_and_original_args --deselect tests/integration/test_cli.py::TestGlobalArgs::test_no_pagination --deselect tests/integration/test_cli.py::TestGlobalArgs::test_no_sign_requests --deselect tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_has_precedence_over_env_vars --deselect tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_wins_over_profile_env_var --deselect tests/integration/test_cli.py::TestGlobalArgs::test_query --deselect tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_filter --deselect tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_id --deselect tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshot_with_snapshot_id --deselect tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshots_with_filter --deselect tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_filter --deselect tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_volume_id --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-account-limits]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-adjustment-types]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cloudformation describe-stacks]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cloudformation list-stacks]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch describe-domains]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch list-domain-names]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cloudtrail describe-trails]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cloudwatch list-metrics]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[cognito-identity list-identity-pools --max-results 1]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[datapipeline list-pipelines]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[directconnect describe-connections]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[dynamodb list-tables]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-instances]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-regions]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[elasticache describe-cache-clusters]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[elb describe-load-balancers]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters --created-after 2014-11-24T00:00:00]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[iam list-users]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[kinesis list-streams]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[kms generate-random --number-of-bytes 128]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[logs describe-log-groups]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[opsworks describe-stacks]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[rds describe-db-instances]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[rds wait db-instance-deleted --db-instance-identifier foo-123]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[redshift describe-clusters]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[route53 list-hosted-zones]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[route53domains list-domains]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[s3 ls]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[s3api list-buckets]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[ses list-identities]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[sns list-topics]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[sqs list-queues]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[storagegateway list-gateways]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[swf list-domains --registration-status REGISTERED]' --deselect 'tests/integration/test_smoke.py::test_can_make_success_request[swf list-open-workflow-executions --domain foo --start-time-filter oldestDate=1970-01-01]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[autoscaling attach-instances --auto-scaling-group-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[cloudformation cancel-update-stack --stack-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[cloudsearch describe-suggesters --domain-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[cloudtrail get-trail-status --name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[cognito-identity delete-identity-pool --identity-pool-id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[datapipeline delete-pipeline --pipeline-id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[directconnect delete-connection --connection-id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[dynamodb delete-table --table-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[ec2 terminate-instances --instance-ids %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[elasticache delete-cache-cluster --cache-cluster-id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[elb describe-load-balancers --load-balancer-names %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[emr list-instances --cluster-id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[iam delete-user --user-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[kinesis delete-stream --stream-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[logs delete-log-group --log-group-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[opsworks delete-app --app-id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[rds delete-db-instance --db-instance-identifier %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[redshift delete-cluster --cluster-identifier %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[route53 delete-hosted-zone --id %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[route53domains get-domain-detail --domain-name %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[s3api head-bucket --bucket %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[ses set-identity-dkim-enabled --identity %s --dkim-enabled]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[sns delete-endpoint --endpoint-arn %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[sqs delete-queue --queue-url %s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[storagegateway delete-gateway --gateway-arn foo-cli-test-foo-cli-test-foo-cli-test-%s]' --deselect 'tests/integration/test_smoke.py::test_display_error_message[swf deprecate-domain --name %s]' --deselect tests/unit/customizations/emr/test_emr_utils.py::TestEMRutils::test_which_with_existing_command ============================= test session starts ============================== platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0 rootdir: /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9 configfile: pyproject.toml collected 30113 items / 240 deselected / 29873 selected tests/functional/test_alias.py .............. [ 0%] tests/functional/test_api_versions.py .. [ 0%] tests/functional/test_args.py .. [ 0%] tests/functional/test_cliinputjson.py ..... [ 0%] tests/functional/test_document_types.py .............................. [ 0%] tests/functional/test_generatecliskeleton.py ........ [ 0%] tests/functional/test_globals.py .. [ 0%] tests/functional/test_no_event_streams.py . [ 0%] tests/functional/test_override_ssl_common_name.py .. [ 0%] tests/functional/test_paramfile.py ............... [ 0%] tests/functional/test_preview.py ...... [ 0%] tests/functional/test_response_metadata.py . [ 0%] tests/functional/test_shadowing.py ..................................... [ 0%] ........................................................................ [ 0%] ........................................................................ [ 0%] ........................................................................ [ 1%] ........................................................................ [ 1%] ........................................................ [ 1%] tests/functional/test_streaming_output.py . [ 1%] tests/functional/test_table.py . [ 1%] tests/functional/test_timeformat.py ... [ 1%] tests/functional/test_utils.py . [ 1%] tests/functional/apigateway/test_put_integration.py . [ 1%] tests/functional/autoscale/test_terminate_instance_in_autoscaling_group.py . [ 1%] .. [ 1%] tests/functional/awslambda/test_function.py .............. [ 1%] tests/functional/cloudformation/test_create_stack.py ..... [ 1%] tests/functional/cloudformation/test_describe_stacks.py .. [ 1%] tests/functional/cloudformation/test_package.py . [ 1%] tests/functional/cloudformation/test_register_type.py . [ 1%] tests/functional/cloudformation/test_update_stack.py . [ 1%] tests/functional/cloudfront/test_create_distribution.py ...... [ 1%] tests/functional/cloudfront/test_create_invalidation.py .... [ 1%] tests/functional/cloudfront/test_get_distribution_config.py . [ 1%] tests/functional/cloudfront/test_sign.py .. [ 1%] tests/functional/cloudfront/test_update_distribution.py .... [ 1%] tests/functional/cloudsearch/test_cloudsearch.py ... [ 1%] tests/functional/cloudtrail/test_validation.py ................. [ 1%] tests/functional/cloudwatch/test_put_metric_data.py .... [ 1%] tests/functional/codeartifact/test_codeartifact_login.py ............... [ 1%] .................................... [ 1%] tests/functional/cognito_identity/test_create_identity_pool.py .. [ 1%] tests/functional/configservice/test_put_configuration_recorder.py ... [ 2%] tests/functional/configservice/test_subscribe.py ... [ 2%] tests/functional/configure/test_addmodel.py ... [ 2%] tests/functional/configure/test_configure.py ......................... [ 2%] tests/functional/configured_endpoint_urls/test_configured_endpoint_url.py . [ 2%] ................................s..s.. [ 2%] tests/functional/datapipeline/test_get_pipeline_definition.py . [ 2%] tests/functional/datapipeline/test_list_runs.py . [ 2%] tests/functional/datapipeline/test_query_objects.py . [ 2%] tests/functional/dependencies/test_colorama.py ..... [ 2%] tests/functional/docs/test_examples.py ................................. [ 2%] ........................................................................ [ 2%] ........................................................................ [ 2%] ........................................................................ [ 3%] ........................................................................ [ 3%] ........................................................................ [ 3%] ........................................................................ [ 3%] ........................................................................ [ 4%] ........................................................................ [ 4%] ........................................................................ [ 4%] ........................................................................ [ 4%] ........................................................................ [ 5%] ........................................................................ [ 5%] ........................................................................ [ 5%] ........................................................................ [ 5%] ........................................................................ [ 5%] ........................................................................ [ 6%] ........................................................................ [ 6%] ........................................................................ [ 6%] ........................................................................ [ 6%] ........................................................................ [ 7%] ........................................................................ [ 7%] ........................................................................ [ 7%] ........................................................................ [ 7%] ........................................................................ [ 8%] ........................................................................ [ 8%] ........................................................................ [ 8%] ........................................................................ [ 8%] ........................................................................ [ 9%] ........................................................................ [ 9%] ........................................................................ [ 9%] ........................................................................ [ 9%] ........................................................................ [ 10%] ........................................................................ [ 10%] ........................................................................ [ 10%] ........................................................................ [ 10%] ........................................................................ [ 11%] ........................................................................ [ 11%] ........................................................................ [ 11%] ........................................................................ [ 11%] ........................................................................ [ 12%] ........................................................................ [ 12%] ........................................................................ [ 12%] ........................................................................ [ 12%] ........................................................................ [ 12%] ........................................................................ [ 13%] ........................................................................ [ 13%] ........................................................................ [ 13%] ........................................................................ [ 13%] ........................................................................ [ 14%] ........................................................................ [ 14%] ........................................................................ [ 14%] ........................................................................ [ 14%] ........................................................................ [ 15%] ........................................................................ [ 15%] ........................................................................ [ 15%] ........................................................................ [ 15%] ........................................................................ [ 16%] ........................................................................ [ 16%] ........................................................................ [ 16%] ........................................................................ [ 16%] ........................................................................ [ 17%] ........................................................................ [ 17%] ........................................................................ [ 17%] ........................................................................ [ 17%] ........................................................................ [ 18%] ........................................................................ [ 18%] ........................................................................ [ 18%] ........................................................................ [ 18%] ........................................................................ [ 19%] ........................................................................ [ 19%] ........................................................................ [ 19%] ........................................................................ [ 19%] ........................................................................ [ 19%] ........................................................................ [ 20%] ........................................................................ [ 20%] ........................................................................ [ 20%] ........................................................................ [ 20%] ........................................................................ [ 21%] ........................................................................ [ 21%] ........................................................................ [ 21%] ........................................................................ [ 21%] ........................................................................ [ 22%] ........................................................................ [ 22%] ........................................................................ [ 22%] ........................................................................ [ 22%] ........................................................................ [ 23%] ........................................................................ [ 23%] ........................................................................ [ 23%] ........................................................................ [ 23%] ........................................................................ [ 24%] ........................................................................ [ 24%] ........................................................................ [ 24%] ........................................................................ [ 24%] ........................................................................ [ 25%] ........................................................................ [ 25%] ........................................................................ [ 25%] ........................................................................ [ 25%] ........................................................................ [ 26%] ........................................................................ [ 26%] ........................................................................ [ 26%] ........................................................................ [ 26%] ........................................................................ [ 26%] ........................................................................ [ 27%] ........................................................................ [ 27%] ........................................................................ [ 27%] ........................................................................ [ 27%] ........................................................................ [ 28%] ........................................................................ [ 28%] ........................................................................ [ 28%] ........................................................................ [ 28%] ........................................................................ [ 29%] ........................................................................ [ 29%] ........................................................................ [ 29%] ........................................................................ [ 29%] ........................................................................ [ 30%] ........................................................................ [ 30%] ........................................................................ [ 30%] ........................................................................ [ 30%] ........................................................................ [ 31%] ........................................................................ [ 31%] ........................................................................ [ 31%] ........................................................................ [ 31%] ........................................................................ [ 32%] ........................................................................ [ 32%] ........................................................................ [ 32%] ........................................................................ [ 32%] ........................................................................ [ 32%] ........................................................................ [ 33%] ........................................................................ [ 33%] ........................................................................ [ 33%] ........................................................................ [ 33%] ........................................................................ [ 34%] ........................................................................ [ 34%] ........................................................................ [ 34%] ........................................................................ [ 34%] ........................................................................ [ 35%] ........................................................................ [ 35%] ........................................................................ [ 35%] ........................................................................ [ 35%] ........................................................................ [ 36%] ........................................................................ [ 36%] ........................................................................ [ 36%] ........................................................................ [ 36%] ........................................................................ [ 37%] ........................................................................ [ 37%] ........................................................................ [ 37%] ........................................................................ [ 37%] ........................................................................ [ 38%] ........................................................................ [ 38%] ........................................................................ [ 38%] ........................................................................ [ 38%] ........................................................................ [ 39%] ........................................................................ [ 39%] ............................................ [ 39%] tests/functional/docs/test_help_output.py .............................. [ 39%] ................... [ 39%] tests/functional/dynamodb/test_pagination.py .. [ 39%] tests/functional/ec2/test_associate_address.py .. [ 39%] tests/functional/ec2/test_attach_internet_gateway.py . [ 39%] tests/functional/ec2/test_bundle_instance.py ... [ 39%] tests/functional/ec2/test_create_image.py . [ 39%] tests/functional/ec2/test_create_network_acl_entry.py ..... [ 39%] tests/functional/ec2/test_create_tags.py .s [ 39%] tests/functional/ec2/test_describe_instance_attribute.py . [ 39%] tests/functional/ec2/test_describe_instances.py .......... [ 39%] tests/functional/ec2/test_describe_snapshots.py .... [ 39%] tests/functional/ec2/test_describe_volumes.py ..... [ 39%] tests/functional/ec2/test_get_password_data.py ... [ 39%] tests/functional/ec2/test_modify_image_attribute.py ... [ 39%] tests/functional/ec2/test_modify_instance_attribute.py ........... [ 39%] tests/functional/ec2/test_replace_network_acl_entry.py ..... [ 39%] tests/functional/ec2/test_run_instances.py ...................... [ 39%] tests/functional/ec2/test_security_group_operations.py ................. [ 39%] ..... [ 39%] tests/functional/ecr/test_get_login.py .... [ 39%] tests/functional/ecr/test_get_login_password.py . [ 39%] tests/functional/ecr_public/test_get_login_password.py . [ 39%] tests/functional/ecs/test_deploy.py ........ [ 39%] tests/functional/ecs/test_execute_command.py ... [ 39%] tests/functional/eks/test_get_token.py ................ [ 40%] tests/functional/eks/test_kubeconfig.py ....... [ 40%] tests/functional/eks/test_update_kubeconfig.py ................... [ 40%] tests/functional/elasticache/test_create_cache_cluster.py ... [ 40%] tests/functional/elasticbeanstalk/test_create_application.py .s [ 40%] tests/functional/elasticbeanstalk/test_update_configuration_template.py . [ 40%] [ 40%] tests/functional/elb/test_configure_health_check.py ... [ 40%] tests/functional/elb/test_deregister_instances_from_load_balancer.py . [ 40%] tests/functional/elb/test_describe_instance_health.py . [ 40%] tests/functional/elb/test_register_instances_with_load_balancer.py ..... [ 40%] ... [ 40%] tests/functional/elb/test_remove_tags.py . [ 40%] tests/functional/firehose/test_put_record_batch.py . [ 40%] tests/functional/gamelift/test_get_game_session_log.py . [ 40%] tests/functional/gamelift/test_upload_build.py ...... [ 40%] tests/functional/history/test_db.py .................... [ 40%] tests/functional/history/test_list.py .... [ 40%] tests/functional/history/test_show.py .... [ 40%] tests/functional/iam/test_create_open_id_connect_provider.py . [ 40%] tests/functional/iam/test_create_virtual_mfa_device.py ...... [ 40%] tests/functional/iam/test_list_access_keys.py . [ 40%] tests/functional/iot/test_outfile.py .... [ 40%] tests/functional/kinesis/test_list_streams.py ... [ 40%] tests/functional/logs/test_get_log_events.py . [ 40%] tests/functional/machinelearning/test_predict.py . [ 40%] tests/functional/mturk/test_alias.py . [ 40%] tests/functional/opsworks/test_create_instance.py . [ 40%] tests/functional/opsworks/test_create_layer.py . [ 40%] tests/functional/opsworks/test_create_stack.py . [ 40%] tests/functional/opsworks/test_describe_layers.py . [ 40%] tests/functional/opsworkscm/test_alias.py . [ 40%] tests/functional/quicksight/test_assetbundle_parameters.py .. [ 40%] tests/functional/rds/test_describe_db_log_files.py . [ 40%] tests/functional/rds/test_generate_db_auth_token.py . [ 40%] tests/functional/rds/test_modify_option_group.py .... [ 40%] tests/functional/rekognition/test_image_parameters.py ................ [ 40%] tests/functional/route53/test_list_resource_record_sets.py ... [ 40%] tests/functional/route53/test_resource_id.py ........ [ 40%] tests/functional/route53domains/test_view_billing.py ... [ 40%] tests/functional/s3/test_cp_command.py ................................. [ 40%] .....................ss...... [ 40%] tests/functional/s3/test_ls_command.py ................ [ 40%] tests/functional/s3/test_mb_command.py .... [ 40%] tests/functional/s3/test_mv_command.py ....... [ 40%] tests/functional/s3/test_presign_command.py ...... [ 40%] tests/functional/s3/test_rb_command.py ....... [ 40%] tests/functional/s3/test_rm_command.py ... [ 40%] tests/functional/s3/test_s3_object_lambda.py .. [ 40%] tests/functional/s3/test_sync_command.py .............. [ 40%] tests/functional/s3/test_website_command.py .. [ 40%] tests/functional/s3api/test_get_object.py .... [ 40%] tests/functional/s3api/test_list_objects.py ....... [ 40%] tests/functional/s3api/test_put_bucket_tagging.py . [ 40%] tests/functional/s3api/test_put_object.py .... [ 40%] tests/functional/s3api/test_select_object_content.py ... [ 40%] tests/functional/sagemaker/test_alias.py . [ 40%] tests/functional/servicecatalog/test_generate_createproduct.py ......... [ 41%] .... [ 41%] tests/functional/servicecatalog/test_generate_createprovisioningartifact.py . [ 41%] ........ [ 41%] tests/functional/ses/test_create_custom_verification_email_template.py . [ 41%] [ 41%] tests/functional/ses/test_send_email.py ......... [ 41%] tests/functional/ses/test_update_custom_verification_email_template.py . [ 41%] [ 41%] tests/functional/sesv2/test_create_custom_verification_email_template.py . [ 41%] [ 41%] tests/functional/sesv2/test_put_account_details.py . [ 41%] tests/functional/sesv2/test_update_custom_verification_email_template.py . [ 41%] [ 41%] tests/functional/sns/test_create_platform_application.py .. [ 41%] tests/functional/sqs/test_add_permission.py ... [ 41%] tests/functional/sqs/test_change_message_visibility.py . [ 41%] tests/functional/sqs/test_create_queue.py . [ 41%] tests/functional/sqs/test_get_queue_attributes.py .... [ 41%] tests/functional/sqs/test_list_queues.py .. [ 41%] tests/functional/sqs/test_purge_queue.py . [ 41%] tests/functional/sqs/test_set_queue_attributes.py .. [ 41%] tests/functional/ssm/test_start_session.py ..... [ 41%] tests/functional/storagegateway/test_describe_cached_iscsi_volumes.py .. [ 41%] [ 41%] tests/functional/storagegateway/test_describe_tapes.py .. [ 41%] tests/functional/translate/test_import_terminology.py ..... [ 41%] tests/functional/translate/test_translate_document.py ... [ 41%] tests/functional/workspaces/test_reboot_workspaces.py . [ 41%] tests/functional/workspaces/test_rebuild_workspaces.py . [ 41%] tests/functional/workspaces/test_terminate_workspaces.py . [ 41%] tests/integration/test_cli.py .... [ 41%] tests/integration/customizations/test_codecommit.py ... [ 41%] tests/integration/customizations/test_generatecliskeleton.py ........... [ 41%] ........................................................................ [ 41%] ........................................................................ [ 41%] ........................................................................ [ 42%] ........................................................................ [ 42%] ........................................................................ [ 42%] ........................................................................ [ 42%] ........................................................................ [ 42%] ........................................................................ [ 43%] ........................................................................ [ 43%] ........................................................................ [ 43%] ........................................................................ [ 43%] ........................................................................ [ 44%] ........................................................................ [ 44%] ........................................................................ [ 44%] ........................................................................ [ 44%] ........................................................................ [ 45%] ........................................................................ [ 45%] ........................................................................ [ 45%] ........................................................................ [ 45%] ........................................................................ [ 46%] ........................................................................ [ 46%] ........................................................................ [ 46%] ........................................................................ [ 46%] ........................................................................ [ 47%] ........................................................................ [ 47%] ........................................................................ [ 47%] ........................................................................ [ 47%] ........................................................................ [ 48%] ........................................................................ [ 48%] ........................................................................ [ 48%] ........................................................................ [ 48%] ........................................................................ [ 48%] ........................................................................ [ 49%] ........................................................................ [ 49%] ........................................................................ [ 49%] ........................................................................ [ 49%] ........................................................................ [ 50%] ........................................................................ [ 50%] ........................................................................ [ 50%] ........................................................................ [ 50%] ........................................................................ [ 51%] ........................................................................ [ 51%] ........................................................................ [ 51%] ........................................................................ [ 51%] ........................................................................ [ 52%] ........................................................................ [ 52%] ........................................................................ [ 52%] ........................................................................ [ 52%] ........................................................................ [ 53%] ........................................................................ [ 53%] ........................................................................ [ 53%] ........................................................................ [ 53%] ........................................................................ [ 54%] ........................................................................ [ 54%] ........................................................................ [ 54%] ........................................................................ [ 54%] ........................................................................ [ 55%] ........................................................................ [ 55%] ........................................................................ [ 55%] ........................................................................ [ 55%] ........................................................................ [ 55%] ........................................................................ [ 56%] ........................................................................ [ 56%] ........................................................................ [ 56%] ........................................................................ [ 56%] ........................................................................ [ 57%] ........................................................................ [ 57%] ........................................................................ [ 57%] ........................................................................ [ 57%] ........................................................................ [ 58%] ........................................................................ [ 58%] ........................................................................ [ 58%] ........................................................................ [ 58%] ........................................................................ [ 59%] ........................................................................ [ 59%] ........................................................................ [ 59%] ........................................................................ [ 59%] ........................................................................ [ 60%] ........................................................................ [ 60%] ........................................................................ [ 60%] ........................................................................ [ 60%] ........................................................................ [ 61%] ........................................................................ [ 61%] ........................................................................ [ 61%] ........................................................................ [ 61%] ........................................................................ [ 62%] ........................................................................ [ 62%] ........................................................................ [ 62%] ........................................................................ [ 62%] ........................................................................ [ 62%] ........................................................................ [ 63%] ........................................................................ [ 63%] ........................................................................ [ 63%] ........................................................................ [ 63%] ........................................................................ [ 64%] ........................................................................ [ 64%] ........................................................................ [ 64%] ........................................................................ [ 64%] ........................................................................ [ 65%] ........................................................................ [ 65%] ........................................................................ [ 65%] ........................................................................ [ 65%] ........................................................................ [ 66%] ........................................................................ [ 66%] ........................................................................ [ 66%] ........................................................................ [ 66%] ........................................................................ [ 67%] ........................................................................ [ 67%] ........................................................................ [ 67%] ........................................................................ [ 67%] ........................................................................ [ 68%] ........................................................................ [ 68%] ........................................................................ [ 68%] ........................................................................ [ 68%] ........................................................................ [ 68%] ........................................................................ [ 69%] ........................................................................ [ 69%] ........................................................................ [ 69%] ........................................................................ [ 69%] ........................................................................ [ 70%] ........................................................................ [ 70%] ........................................................................ [ 70%] ........................................................................ [ 70%] ........................................................................ [ 71%] ........................................................................ [ 71%] ........................................................................ [ 71%] ........................................................................ [ 71%] ........................................................................ [ 72%] ........................................................................ [ 72%] ........................................................................ [ 72%] ........................................................................ [ 72%] ........................................................................ [ 73%] ........................................................................ [ 73%] ........................................................................ [ 73%] ........................................................................ [ 73%] ........................................................................ [ 74%] ........................................................................ [ 74%] ........................................................................ [ 74%] ........................................................................ [ 74%] ........................................................................ [ 75%] ........................................................................ [ 75%] ........................................................................ [ 75%] ........................................................................ [ 75%] ........................................................................ [ 75%] ........................................................................ [ 76%] ........................................................................ [ 76%] ........................................................................ [ 76%] ........................................................................ [ 76%] ........................................................................ [ 77%] ........................................................................ [ 77%] ........................................................................ [ 77%] ........................................................................ [ 77%] ........................................................................ [ 78%] ........................................................................ [ 78%] ........................................................................ [ 78%] ........................................................................ [ 78%] ........................................................................ [ 79%] ........................................................................ [ 79%] ........................................................................ [ 79%] ........................................................................ [ 79%] ........................................................................ [ 80%] ........................................................................ [ 80%] ........................................................................ [ 80%] ........................................................................ [ 80%] ........................................................................ [ 81%] ........................................................................ [ 81%] ........................................................................ [ 81%] ........................................................................ [ 81%] ........................................................................ [ 82%] ........................................................................ [ 82%] ........................................................................ [ 82%] ........................................................................ [ 82%] ........................................................................ [ 82%] ........................................................................ [ 83%] ........................................................................ [ 83%] ........................................................................ [ 83%] ........................................................................ [ 83%] ........................................................................ [ 84%] ........................................................................ [ 84%] ........................................................................ [ 84%] ........................................................................ [ 84%] ........................................................................ [ 85%] ........................................................................ [ 85%] ........................................................................ [ 85%] ........................................................................ [ 85%] ........................................................................ [ 86%] ........................................................................ [ 86%] ........................................................................ [ 86%] ........................................................................ [ 86%] ........................................................................ [ 87%] ........................................................................ [ 87%] ........................................................................ [ 87%] ........................................................................ [ 87%] ........................................................................ [ 88%] ........................................................................ [ 88%] ........................................................................ [ 88%] ........................................................................ [ 88%] ........................................................................ [ 89%] ........................................................................ [ 89%] ........................................................................ [ 89%] ........................................................................ [ 89%] ........................................................................ [ 89%] ........................................................................ [ 90%] ........................................................................ [ 90%] ........................................................................ [ 90%] ........................................................................ [ 90%] ........................................................................ [ 91%] ............... [ 91%] tests/unit/test_alias.py .................................... [ 91%] tests/unit/test_argparser.py .. [ 91%] tests/unit/test_argprocess.py .......................................... [ 91%] .................. [ 91%] tests/unit/test_arguments.py .. [ 91%] tests/unit/test_clidocs.py .................................... [ 91%] tests/unit/test_clidriver.py ........................................... [ 91%] ........... [ 91%] tests/unit/test_compat.py ................................... [ 91%] tests/unit/test_completer.py ..................... [ 92%] tests/unit/test_errorhandler.py ... [ 92%] tests/unit/test_help.py ...................... [ 92%] tests/unit/test_paramfile.py .............. [ 92%] tests/unit/test_plugin.py ... [ 92%] tests/unit/test_schema.py ................. [ 92%] tests/unit/test_shorthand.py ........................................... [ 92%] ................................................ [ 92%] tests/unit/test_table.py ........... [ 92%] tests/unit/test_testutils.py . [ 92%] tests/unit/test_text.py ......................... [ 92%] tests/unit/test_topictags.py ................................. [ 92%] tests/unit/test_utils.py ............................................... [ 92%] .. [ 92%] tests/unit/bcdoc/test_docstringparser.py .................. [ 93%] tests/unit/bcdoc/test_document.py ................ [ 93%] tests/unit/bcdoc/test_style.py ......................................... [ 93%] .. [ 93%] tests/unit/customizations/test_argrename.py .. [ 93%] tests/unit/customizations/test_arguments.py ...................... [ 93%] tests/unit/customizations/test_assumerole.py ... [ 93%] tests/unit/customizations/test_cliinputjson.py ...... [ 93%] tests/unit/customizations/test_cloudsearchdomain.py .... [ 93%] tests/unit/customizations/test_cloudwatch.py ....... [ 93%] tests/unit/customizations/test_codecommit.py ............. [ 93%] tests/unit/customizations/test_commands.py ........... [ 93%] tests/unit/customizations/test_dynamodb.py .... [ 93%] tests/unit/customizations/test_flatten.py ..... [ 93%] tests/unit/customizations/test_generatecliskeleton.py ........ [ 93%] tests/unit/customizations/test_globalargs.py ............... [ 93%] tests/unit/customizations/test_opsworks.py ............................. [ 93%] .................... [ 93%] tests/unit/customizations/test_overridesslcommonname.py ................ [ 93%] ........................................................................ [ 93%] ............................................................... [ 94%] tests/unit/customizations/test_paginate.py .................. [ 94%] tests/unit/customizations/test_s3errormsg.py ..... [ 94%] tests/unit/customizations/test_s3uploader.py ............... [ 94%] tests/unit/customizations/test_scalarparse.py ....... [ 94%] tests/unit/customizations/test_sessionmanager.py ....................... [ 94%] ............................... [ 94%] tests/unit/customizations/test_utils.py ................. [ 94%] tests/unit/customizations/test_waiters.py ...................... [ 94%] tests/unit/customizations/cloudformation/test_artifact_exporter.py ..... [ 94%] ....................................................................... [ 94%] tests/unit/customizations/cloudformation/test_deploy.py .............. [ 94%] tests/unit/customizations/cloudformation/test_deployer.py .............. [ 95%] .. [ 95%] tests/unit/customizations/cloudformation/test_package.py ... [ 95%] tests/unit/customizations/cloudformation/test_yamlhelper.py ....... [ 95%] tests/unit/customizations/cloudtrail/test_commands.py .. [ 95%] tests/unit/customizations/cloudtrail/test_subscribe.py ................. [ 95%] .. [ 95%] tests/unit/customizations/cloudtrail/test_utils.py .... [ 95%] tests/unit/customizations/cloudtrail/test_validation.py ................ [ 95%] ............................... [ 95%] tests/unit/customizations/codeartifact/test_adapter_login.py ........... [ 95%] .................................................................... [ 95%] tests/unit/customizations/codedeploy/test_deregister.py ....... [ 95%] tests/unit/customizations/codedeploy/test_install.py ......... [ 95%] tests/unit/customizations/codedeploy/test_locationargs.py .............. [ 95%] ................... [ 95%] tests/unit/customizations/codedeploy/test_push.py ............... [ 95%] tests/unit/customizations/codedeploy/test_register.py ......... [ 95%] tests/unit/customizations/codedeploy/test_systems.py ................... [ 95%] . [ 95%] tests/unit/customizations/codedeploy/test_uninstall.py ....... [ 95%] tests/unit/customizations/codedeploy/test_utils.py ..................... [ 95%] . [ 95%] tests/unit/customizations/configservice/test_getstatus.py ........... [ 96%] tests/unit/customizations/configservice/test_putconfigurationrecorder.py . [ 96%] .... [ 96%] tests/unit/customizations/configservice/test_subscribe.py ............. [ 96%] tests/unit/customizations/configure/test_addmodel.py ...... [ 96%] tests/unit/customizations/configure/test_configure.py .................. [ 96%] . [ 96%] tests/unit/customizations/configure/test_get.py ........... [ 96%] tests/unit/customizations/configure/test_list.py ..... [ 96%] tests/unit/customizations/configure/test_set.py .................. [ 96%] tests/unit/customizations/configure/test_writer.py ..................... [ 96%] .... [ 96%] tests/unit/customizations/datapipeline/test_arg_parse.py . [ 96%] tests/unit/customizations/datapipeline/test_arg_serialize.py ........ [ 96%] tests/unit/customizations/datapipeline/test_commands.py ...... [ 96%] tests/unit/customizations/datapipeline/test_create_default_role.py ... [ 96%] tests/unit/customizations/datapipeline/test_listrunsformatter.py .. [ 96%] tests/unit/customizations/datapipeline/test_translator.py .............. [ 96%] .. [ 96%] tests/unit/customizations/dlm/test_create_default_role.py ........ [ 96%] tests/unit/customizations/ec2/test_paginate.py ...... [ 96%] tests/unit/customizations/ecs/test_codedeployer.py ....... [ 96%] tests/unit/customizations/ecs/test_codedeployvalidator.py ....... [ 96%] tests/unit/customizations/ecs/test_ecsclient.py . [ 96%] tests/unit/customizations/ecs/test_executecommand_startsession.py ...... [ 96%] [ 96%] tests/unit/customizations/ecs/test_filehelpers.py ............ [ 96%] tests/unit/customizations/eks/test_get_token.py .. [ 96%] tests/unit/customizations/eks/test_kubeconfig.py ................ [ 96%] tests/unit/customizations/eks/test_update_kubeconfig.py ................ [ 96%] . [ 96%] tests/unit/customizations/emr/test_add_instance_groups.py .............. [ 96%] . [ 96%] tests/unit/customizations/emr/test_add_steps.py ........................ [ 96%] [ 96%] tests/unit/customizations/emr/test_add_tags.py ... [ 96%] tests/unit/customizations/emr/test_assume_role_policy.py . [ 96%] tests/unit/customizations/emr/test_command.py . [ 96%] tests/unit/customizations/emr/test_config.py ................ [ 96%] tests/unit/customizations/emr/test_create_cluster_ami_version.py ....... [ 96%] ........................................................................ [ 97%] ....................... [ 97%] tests/unit/customizations/emr/test_create_cluster_release_label.py ..... [ 97%] ........................................................................ [ 97%] ..................... [ 97%] tests/unit/customizations/emr/test_create_default_role.py ............. [ 97%] tests/unit/customizations/emr/test_create_hbase_backup.py ... [ 97%] tests/unit/customizations/emr/test_describe_cluster.py ... [ 97%] tests/unit/customizations/emr/test_disable_hbase_backup.py ..... [ 97%] tests/unit/customizations/emr/test_emr_utils.py . [ 97%] tests/unit/customizations/emr/test_emrfs_utils.py ...................... [ 97%] .... [ 97%] tests/unit/customizations/emr/test_get_service_principal.py . [ 97%] tests/unit/customizations/emr/test_install_applications.py ...... [ 97%] tests/unit/customizations/emr/test_list_clusters.py ..... [ 97%] tests/unit/customizations/emr/test_modify_cluster_attributes.py .F.F.... [ 97%] .... [ 97%] tests/unit/customizations/emr/test_restore_from_hbase_backup.py ... [ 97%] tests/unit/customizations/emr/test_schedule_hbase_backup.py ......... [ 97%] tests/unit/customizations/emr/test_sshutils.py ... [ 97%] tests/unit/customizations/emr/test_terminate_clusters.py .. [ 97%] tests/unit/customizations/emrcontainers/test_base36.py . [ 97%] tests/unit/customizations/emrcontainers/test_update_assume_role_policy.py . [ 97%] ...... [ 97%] tests/unit/customizations/gamelift/test_getlog.py . [ 97%] tests/unit/customizations/gamelift/test_uploadbuild.py ................. [ 98%] [ 98%] tests/unit/customizations/history/test_db.py ........................... [ 98%] ........................ [ 98%] tests/unit/customizations/history/test_filters.py ... [ 98%] tests/unit/customizations/history/test_history.py ........ [ 98%] tests/unit/customizations/history/test_list.py .......... [ 98%] tests/unit/customizations/history/test_show.py ......................... [ 98%] ................... [ 98%] tests/unit/customizations/s3/test_comparator.py ...... [ 98%] tests/unit/customizations/s3/test_copy_params.py ........... [ 98%] tests/unit/customizations/s3/test_fileformat.py ....... [ 98%] tests/unit/customizations/s3/test_filegenerator.py ..................... [ 98%] ......... [ 98%] tests/unit/customizations/s3/test_fileinfo.py .......... [ 98%] tests/unit/customizations/s3/test_fileinfobuilder.py .. [ 98%] tests/unit/customizations/s3/test_filters.py ............ [ 98%] tests/unit/customizations/s3/test_results.py ........................... [ 98%] ........................................................................ [ 98%] .................... [ 99%] tests/unit/customizations/s3/test_s3.py ... [ 99%] tests/unit/customizations/s3/test_s3handler.py ......................... [ 99%] .................................. [ 99%] tests/unit/customizations/s3/test_subcommands.py ....................... [ 99%] .............. [ 99%] tests/unit/customizations/s3/test_transferconfig.py ........... [ 99%] tests/unit/customizations/s3/test_utils.py ............................. [ 99%] ........................................................................ [ 99%] ...... [ 99%] tests/unit/customizations/s3/syncstrategy/test_base.py ................. [ 99%] ..... [ 99%] tests/unit/customizations/s3/syncstrategy/test_delete.py . [ 99%] tests/unit/customizations/s3/syncstrategy/test_exacttimestamps.py ..... [ 99%] tests/unit/customizations/s3/syncstrategy/test_register.py .. [ 99%] tests/unit/customizations/s3/syncstrategy/test_sizeonly.py .. [ 99%] tests/unit/customizations/servicecatalog/test_generate.py .. [ 99%] tests/unit/customizations/servicecatalog/test_generateproduct.py .... [ 99%] tests/unit/customizations/servicecatalog/test_generateprovisioningartifact.py . [ 99%] .. [ 99%] tests/unit/customizations/servicecatalog/test_utils.py ... [ 99%] tests/unit/output/test_json_output.py ......... [ 99%] tests/unit/output/test_table_formatter.py ......... [ 99%] tests/unit/output/test_text_output.py ..s [100%] =================================== FAILURES =================================== _______________ TestModifyClusterAttributes.test_auto_terminate ________________ self = def test_auto_terminate(self): args = ' --cluster-id j-ABC123456 --auto-terminate' cmdline = self.prefix + args result = {'JobFlowIds': ['j-ABC123456'], 'KeepJobFlowAliveWhenNoSteps': False} > self.assert_params_for_cmd(cmdline, result) tests/unit/customizations/emr/test_modify_cluster_attributes.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ awscli/testutils.py:375: in assert_params_for_cmd stdout, stderr, rc = self.run_cmd(cmd, expected_rc) awscli/testutils.py:422: in run_cmd self.assertEqual( E AssertionError: 255 != 0 : Unexpected rc (expected: 0, actual: 255) for command: emr modify-cluster-attributes --cluster-id j-ABC123456 --auto-terminate E stdout: E stderr: E E 'set_keep_job_flow_alive_when_no_steps' ------------------------------ Captured log call ------------------------------- DEBUG awscli.plugin:plugin.py:56 Importing plugin __builtin__: awscli.handlers DEBUG awscli.plugin:plugin.py:48 Initializing plugin __builtin__: DEBUG awscli.customizations.removals:removals.py:76 Removing operation: run-job-flow DEBUG awscli.customizations.removals:removals.py:76 Removing operation: describe-job-flows DEBUG awscli.customizations.removals:removals.py:76 Removing operation: add-job-flow-steps DEBUG awscli.customizations.removals:removals.py:76 Removing operation: terminate-job-flows DEBUG awscli.customizations.removals:removals.py:76 Removing operation: list-bootstrap-actions DEBUG awscli.customizations.removals:removals.py:76 Removing operation: list-instance-groups DEBUG awscli.customizations.removals:removals.py:76 Removing operation: set-termination-protection DEBUG awscli.customizations.removals:removals.py:76 Removing operation: set-keep-job-flow-alive-when-no-steps WARNING awscli.customizations.removals:removals.py:79 Attempting to delete command that does not exist: set-keep-job-flow-alive-when-no-steps DEBUG awscli.customizations.removals:removals.py:76 Removing operation: set-visible-to-all-users DEBUG awscli.customizations.emr.command:command.py:61 No configs applied DEBUG awscli.customizations.emr.command:command.py:62 Running command with args: Namespace(auto_terminate=True, cluster_id='j-ABC123456', no_auto_terminate=False, no_termination_protected=False, no_visible_to_all_users=False, termination_protected=False, visible_to_all_users=False) DEBUG awscli.clidriver:clidriver.py:240 Exception caught in main() Traceback (most recent call last): File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 217, in main return command_table[parsed_args.command](remaining, parsed_args) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 361, in __call__ return command_table[parsed_args.operation](remaining, parsed_globals) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/commands.py", line 187, in __call__ return self._run_main(parsed_args, parsed_globals) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/emr/command.py", line 45, in _run_main return self._run_main_command(parsed_args, parsed_globals) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/emr/modifyclusterattributes.py", line 89, in _run_main_command emrutils.call_and_display_response(self._session, File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/emr/emrutils.py", line 215, in call_and_display_response cli_operation_caller.invoke( File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 652, in invoke response = self._make_client_call( File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 660, in _make_client_call if client.can_paginate(py_operation_name) and parsed_globals.paginate: File "/usr/lib/python3.8/site-packages/botocore/client.py", line 1222, in can_paginate actual_operation_name = self._PY_TO_OP_NAME[operation_name] KeyError: 'set_keep_job_flow_alive_when_no_steps' DEBUG awscli.clidriver:clidriver.py:241 Exiting with rc 255 ______________ TestModifyClusterAttributes.test_no_auto_terminate ______________ self = def test_no_auto_terminate(self): args = ' --cluster-id j-ABC123456 --no-auto-terminate' cmdline = self.prefix + args result = {'JobFlowIds': ['j-ABC123456'], 'KeepJobFlowAliveWhenNoSteps': True} > self.assert_params_for_cmd(cmdline, result) tests/unit/customizations/emr/test_modify_cluster_attributes.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ awscli/testutils.py:375: in assert_params_for_cmd stdout, stderr, rc = self.run_cmd(cmd, expected_rc) awscli/testutils.py:422: in run_cmd self.assertEqual( E AssertionError: 255 != 0 : Unexpected rc (expected: 0, actual: 255) for command: emr modify-cluster-attributes --cluster-id j-ABC123456 --no-auto-terminate E stdout: E stderr: E E 'set_keep_job_flow_alive_when_no_steps' ------------------------------ Captured log call ------------------------------- DEBUG awscli.plugin:plugin.py:56 Importing plugin __builtin__: awscli.handlers DEBUG awscli.plugin:plugin.py:48 Initializing plugin __builtin__: DEBUG awscli.customizations.removals:removals.py:76 Removing operation: run-job-flow DEBUG awscli.customizations.removals:removals.py:76 Removing operation: describe-job-flows DEBUG awscli.customizations.removals:removals.py:76 Removing operation: add-job-flow-steps DEBUG awscli.customizations.removals:removals.py:76 Removing operation: terminate-job-flows DEBUG awscli.customizations.removals:removals.py:76 Removing operation: list-bootstrap-actions DEBUG awscli.customizations.removals:removals.py:76 Removing operation: list-instance-groups DEBUG awscli.customizations.removals:removals.py:76 Removing operation: set-termination-protection DEBUG awscli.customizations.removals:removals.py:76 Removing operation: set-keep-job-flow-alive-when-no-steps WARNING awscli.customizations.removals:removals.py:79 Attempting to delete command that does not exist: set-keep-job-flow-alive-when-no-steps DEBUG awscli.customizations.removals:removals.py:76 Removing operation: set-visible-to-all-users DEBUG awscli.customizations.emr.command:command.py:61 No configs applied DEBUG awscli.customizations.emr.command:command.py:62 Running command with args: Namespace(auto_terminate=False, cluster_id='j-ABC123456', no_auto_terminate=True, no_termination_protected=False, no_visible_to_all_users=False, termination_protected=False, visible_to_all_users=False) DEBUG awscli.clidriver:clidriver.py:240 Exception caught in main() Traceback (most recent call last): File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 217, in main return command_table[parsed_args.command](remaining, parsed_args) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 361, in __call__ return command_table[parsed_args.operation](remaining, parsed_globals) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/commands.py", line 187, in __call__ return self._run_main(parsed_args, parsed_globals) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/emr/command.py", line 45, in _run_main return self._run_main_command(parsed_args, parsed_globals) File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/emr/modifyclusterattributes.py", line 89, in _run_main_command emrutils.call_and_display_response(self._session, File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/customizations/emr/emrutils.py", line 215, in call_and_display_response cli_operation_caller.invoke( File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 652, in invoke response = self._make_client_call( File "/home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/clidriver.py", line 660, in _make_client_call if client.can_paginate(py_operation_name) and parsed_globals.paginate: File "/usr/lib/python3.8/site-packages/botocore/client.py", line 1222, in can_paginate actual_operation_name = self._PY_TO_OP_NAME[operation_name] KeyError: 'set_keep_job_flow_alive_when_no_steps' DEBUG awscli.clidriver:clidriver.py:241 Exiting with rc 255 =============================== warnings summary =============================== tests/functional/cloudformation/test_create_stack.py:44 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/functional/cloudformation/test_create_stack.py:44: DeprecationWarning: invalid escape sequence \, cmdline += ' --parameters ParameterKey=foo,ParameterValue=one\,two' awscli/testutils.py:925 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/awscli/testutils.py:925: PytestCollectionWarning: cannot collect test class 'TestEventHandler' because it has a __init__ constructor (from: tests/functional/elb/test_register_instances_with_load_balancer.py) class TestEventHandler(object): tests/unit/test_paramfile.py:95 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/unit/test_paramfile.py:95: DeprecationWarning: invalid escape sequence \. with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'): tests/unit/test_paramfile.py:100 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/unit/test_paramfile.py:100: DeprecationWarning: invalid escape sequence \. with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'): tests/unit/test_utils.py:70 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/unit/test_utils.py:70: DeprecationWarning: invalid escape sequence \, self.assertEqual(split_on_commas('foo,bar=1\,2\,3,baz'), tests/unit/customizations/emr/test_add_steps.py:215 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/unit/customizations/emr/test_add_steps.py:215: DeprecationWarning: invalid escape sequence \, 'Properties=k1=v1\,k2=v2\,k3') tests/unit/customizations/history/test_db.py:618 /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/unit/customizations/history/test_db.py:618: DeprecationWarning: invalid escape sequence \e 'tuple': ('bar', 'baz', b'\xfe\ed') tests/functional/docs/test_examples.py: 11070 warnings /home/tkloczko/rpmbuild/BUILD/aws-cli-1.32.9/tests/functional/docs/test_examples.py:187: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later. settings = docutils.frontend.OptionParser( tests/functional/docs/test_examples.py: 763830 warnings /usr/lib64/python3.8/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later. option = self.option_class(*args, **kwargs) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ SKIPPED [2] tests/functional/configured_endpoint_urls/test_configured_endpoint_url.py:132: Parameter not supported on the command line SKIPPED [1] tests/functional/ec2/test_create_tags.py:33: Unicode cmd line test only is relevant to python2. SKIPPED [1] tests/functional/elasticbeanstalk/test_create_application.py:29: Unicode cmd line test only is relevant to python2. SKIPPED [1] tests/functional/s3/test_cp_command.py:1151: Test requires awscrt to be installed SKIPPED [1] tests/functional/s3/test_cp_command.py:1167: Test requires awscrt to be installed SKIPPED [1] tests/unit/output/test_text_output.py:164: Text writer only vaild on py3. FAILED tests/unit/customizations/emr/test_modify_cluster_attributes.py::TestModifyClusterAttributes::test_auto_terminate FAILED tests/unit/customizations/emr/test_modify_cluster_attributes.py::TestModifyClusterAttributes::test_no_auto_terminate = 2 failed, 29864 passed, 7 skipped, 240 deselected, 774907 warnings in 2015.14s (0:33:35) = ```
amberkushwaha commented 5 months ago

Describe the bug in the file for the fit and progress dialogue submission.

kloczek commented 5 months ago

Expected Behavior

All is described in ticket. Test suite uses hardcoded python interpreter name. It should be used sys.executable

SimardeepSingh-zsh commented 5 months ago

I apologize for the misunderstanding, Tomasz. As an open-source developer, your contributions are indeed individual but extremely valuable. The changes you’ve suggested regarding the hardcoded Python interpreter name and the network mark name are insightful. I encourage you to raise a pull request with these changes, as it would not only solve the issue but also benefit others who are using the same codebase. Open-source projects thrive on such collaborative efforts. Thank you for your dedication to improving this project.

Best regards, Simardeep Singh

SimardeepSingh-zsh commented 5 months ago

Fork the Repository: Go to the GitHub page of the repository you want to contribute to and click on the ‘Fork’ button at the top right corner. This will create a copy of the repository in your GitHub account.

Clone the Forked Repository: Now, clone the forked repository to your local machine using the command: git clone https://github.com/YourUsername/RepositoryName.git.

Create a New Branch: It’s a good practice to create a new branch for each PR. You can create a new branch using: git checkout -b branch-name.

Make Changes: Navigate to the file where the Python interpreter name is hardcoded and replace it with sys.executable. Also, update the network mark name as per your suggestion.

Commit Your Changes: After making the changes, stage them for a commit using: git add .. Commit the changes with a meaningful commit message: git commit -m "commit message".

Push Changes: Push the changes to your forked repository on GitHub: git push origin branch-name.

Create a Pull Request: Go to your forked repository on GitHub and click on ‘Compare & pull request’ button. Fill in the title and description for the changes you made and then click on ‘Create pull request’.

Remember to clearly describe the changes you’ve made in the PR description. This will make it easier for the maintainers to understand and review your changes.

Sincerely, Simardeep Singh