From 27a2e42d9b73b28a947fd1095673e1a34f807cd6 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sat, 7 Jan 2023 11:35:14 +0000 Subject: [PATCH] Admin: Update Docs to point to getmoto (#5826) --- .github/workflows/build.yml | 8 +++--- CHANGELOG.md | 6 ++--- CONTRIBUTING.md | 4 +-- README.md | 6 ++--- docs/docs/aws_config.rst | 4 +-- docs/docs/contributing/checklist.rst | 2 +- docs/docs/getting_started.rst | 2 +- docs/docs/iam.rst | 4 +-- docs/docs/server_mode.rst | 6 ++--- docs/index.rst | 4 +-- moto/core/custom_responses_mock.py | 2 +- moto/dynamodb/models/__init__.py | 2 +- moto/ec2/exceptions.py | 2 +- moto/ec2/responses/general.py | 2 +- moto/ec2/responses/instances.py | 2 +- moto/ec2/utils.py | 4 +-- moto/moto_server/templates/dashboard.html | 4 +-- moto/redshiftdata/models.py | 2 +- moto/sns/models.py | 2 +- scripts/bump_version | 2 +- scripts/ec2_get_instance_type_offerings.py | 2 +- setup.cfg | 6 ++--- tests/test_batch/test_batch_jobs.py | 4 +-- .../test_cloudwatch/test_cloudwatch_boto3.py | 2 +- tests/test_cognitoidp/test_cognitoidp.py | 4 +-- tests/test_core/test_auth.py | 2 +- tests/test_core/test_request_mocking.py | 2 +- tests/test_core/test_url_base_regex.py | 2 +- tests/test_dynamodb/test_dynamodb.py | 26 +++++++++---------- .../test_dynamodb_update_expressions.py | 2 +- tests/test_ec2/test_amis.py | 2 +- tests/test_ec2/test_elastic_block_store.py | 2 +- tests/test_ec2/test_regions.py | 2 +- tests/test_ec2/test_subnets.py | 2 +- tests/test_elbv2/test_elbv2.py | 2 +- tests/test_s3/test_s3.py | 4 +-- tests/test_s3/test_s3_classdecorator.py | 2 +- tests/test_s3/test_s3_file_handles.py | 2 +- tests/test_s3/test_server.py | 2 +- tests/test_sqs/test_server.py | 2 +- 40 files changed, 72 insertions(+), 72 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50edda352..e0efb2b23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,7 +108,7 @@ jobs: run: | make test-only - name: "Upload coverage to Codecov" - if: ${{ github.repository == 'spulec/moto'}} + if: ${{ github.repository == 'getmoto/moto'}} uses: codecov/codecov-action@v3 with: fail_ci_if_error: false @@ -158,7 +158,7 @@ jobs: run: | make test-only - name: "Upload coverage to Codecov" - if: ${{ github.repository == 'spulec/moto'}} + if: ${{ github.repository == 'getmoto/moto'}} uses: codecov/codecov-action@v3 with: fail_ci_if_error: false @@ -183,7 +183,7 @@ jobs: name: Deploy runs-on: ubuntu-latest needs: [test, testserver ] - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'spulec/moto' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'getmoto/moto' }} strategy: matrix: python-version: [3.8] @@ -270,7 +270,7 @@ jobs: fi - name: Leave PR comment with Moto version uses: peter-evans/create-or-update-comment@v1 - if: env.pr_found == 'true' && env.pr_repo == 'spulec/moto' + if: env.pr_found == 'true' && env.pr_repo == 'getmoto/moto' with: issue-number: ${{ env.pr_nr }} body: | diff --git a/CHANGELOG.md b/CHANGELOG.md index a486af918..72907d5ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1437,7 +1437,7 @@ Docker Digest for 3.0.4: _sha256:320e1d2ab89729d5580dbe08d8c2153a28db4c28023c577 ----- General: * The mock_dynamodb and mock_rds-decorators have been deprecated, and will be repurposed in a later release. - Please see https://github.com/spulec/moto/issues/4526 for more information. + Please see https://github.com/getmoto/moto/issues/4526 for more information. New Methods: * API Gateway: @@ -2339,7 +2339,7 @@ Docker Digest for 3.0.4: _sha256:320e1d2ab89729d5580dbe08d8c2153a28db4c28023c577 2.0.0 ---- Full list of PRs merged in this release: -https://github.com/spulec/moto/pulls?q=is%3Apr+is%3Aclosed+merged%3A2020-09-07..2021-02-23 +https://github.com/getmoto/moto/pulls?q=is%3Apr+is%3Aclosed+merged%3A2020-09-07..2021-02-23 General Changes: * When installing, it is now required to specify the service you want to use: @@ -2530,7 +2530,7 @@ https://github.com/spulec/moto/pulls?q=is%3Apr+is%3Aclosed+merged%3A2020-09-07.. 1.3.16 ----- Full list of PRs merged in this release: -https://github.com/spulec/moto/pulls?q=is%3Apr+is%3Aclosed+merged%3A2019-11-14..2020-09-07 +https://github.com/getmoto/moto/pulls?q=is%3Apr+is%3Aclosed+merged%3A2019-11-14..2020-09-07 General Changes: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3cee7c392..02001259e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ # Contributing code -Moto has a [Code of Conduct](https://github.com/spulec/moto/blob/master/CODE_OF_CONDUCT.md), you can expect to be treated with respect at all times when interacting with this project. +Moto has a [Code of Conduct](https://github.com/getmoto/moto/blob/master/CODE_OF_CONDUCT.md), you can expect to be treated with respect at all times when interacting with this project. # Development Guide Please see our documentation for information on how to contribute: @@ -33,7 +33,7 @@ Use `make format` to automatically format your code, if it does not conform to ` ## Releasing a new version of Moto * Ensure the CHANGELOG document mentions the new release, and lists all significant changes. -* Go to the dedicated [Release Action](https://github.com/spulec/moto/actions/workflows/release.yml) in our CI +* Go to the dedicated [Release Action](https://github.com/getmoto/moto/actions/workflows/release.yml) in our CI * Click 'Run workflow' on the top right * Provide the version you want to release * That's it - everything else is automated. diff --git a/README.md b/README.md index c39c29835..c74861826 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![Join the chat at https://gitter.im/awsmoto/Lobby](https://badges.gitter.im/awsmoto/Lobby.svg)](https://gitter.im/awsmoto/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Build Status](https://github.com/spulec/moto/workflows/TestNDeploy/badge.svg)](https://github.com/spulec/moto/actions) -[![Coverage Status](https://codecov.io/gh/spulec/moto/branch/master/graph/badge.svg)](https://codecov.io/gh/spulec/moto) +[![Build Status](https://github.com/getmoto/moto/workflows/TestNDeploy/badge.svg)](https://github.com/getmoto/moto/actions) +[![Coverage Status](https://codecov.io/gh/getmoto/moto/branch/master/graph/badge.svg)](https://codecov.io/gh/getmoto/moto) [![Docs](https://readthedocs.org/projects/pip/badge/?version=stable)](http://docs.getmoto.org) [![PyPI](https://img.shields.io/pypi/v/moto.svg)](https://pypi.org/project/moto/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/moto.svg)](#) @@ -61,7 +61,7 @@ def test_my_model_save(): With the decorator wrapping the test, all the calls to s3 are automatically mocked out. The mock keeps the state of the buckets and keys. -For a full list of which services and features are covered, please see our [implementation coverage](https://github.com/spulec/moto/blob/master/IMPLEMENTATION_COVERAGE.md). +For a full list of which services and features are covered, please see our [implementation coverage](https://github.com/getmoto/moto/blob/master/IMPLEMENTATION_COVERAGE.md). ### Documentation diff --git a/docs/docs/aws_config.rst b/docs/docs/aws_config.rst index 59e0a6541..49d7fa9ff 100644 --- a/docs/docs/aws_config.rst +++ b/docs/docs/aws_config.rst @@ -109,7 +109,7 @@ The aggregation and non-aggregation querying can and should just use the same ov 1. Non-aggregated listing will specify the region-name of the resource backend `backend_region` 1. Aggregated listing will need to be able to list resource types across ALL backends and filter optionally by passing in `resource_region`. -An example of a working implementation of this is `S3 `_. +An example of a working implementation of this is `S3 `_. Pagination should generally be able to pull out the resource across any region so should be sharded by `region-item-name` -- not done for S3 because S3 has a globally unique name space. @@ -131,4 +131,4 @@ return for it. When implementing resource config fetching, you will need to return at a minimum `None` if the resource is not found, or a `dict` that looks like what AWS Config would return. -It's recommended to read the comment for the `ConfigQueryModel` 's `get_config_resource` function in `the base class `_. \ No newline at end of file +It's recommended to read the comment for the `ConfigQueryModel` 's `get_config_resource` function in `the base class `_. \ No newline at end of file diff --git a/docs/docs/contributing/checklist.rst b/docs/docs/contributing/checklist.rst index 32f708d27..6e720a24d 100644 --- a/docs/docs/contributing/checklist.rst +++ b/docs/docs/contributing/checklist.rst @@ -23,4 +23,4 @@ Create the PR anyway! Others can use your work and build on it to finish the fea .. note:: You can indicate a PR that's not quite ready with the `needs-help`-label. Are you not sure on what you want to implement, or want some advice on how to approach things? -Feel free to open a new issue on Github: https://github.com/spulec/moto/issues +Feel free to open a new issue on Github: https://github.com/getmoto/moto/issues diff --git a/docs/docs/getting_started.rst b/docs/docs/getting_started.rst index c766adbb2..4ceb64d8a 100644 --- a/docs/docs/getting_started.rst +++ b/docs/docs/getting_started.rst @@ -19,7 +19,7 @@ If you don't care about the number of dependencies, or if you want to mock many If you want to install ``moto`` from source:: - git clone git://github.com/spulec/moto.git + git clone git://github.com/getmoto/moto.git cd moto pip install '.[all]' diff --git a/docs/docs/iam.rst b/docs/docs/iam.rst index b2e65158e..a88fcd2fd 100644 --- a/docs/docs/iam.rst +++ b/docs/docs/iam.rst @@ -4,7 +4,7 @@ IAM-like Access Control ======================= -Moto also has the ability to authenticate and authorize actions, just like it's done by IAM in AWS. This functionality can be enabled by either setting the `INITIAL_NO_AUTH_ACTION_COUNT` environment variable or using the `set_initial_no_auth_action_count` decorator. Note that the current implementation is very basic, see `the source code `_ for more information. +Moto also has the ability to authenticate and authorize actions, just like it's done by IAM in AWS. This functionality can be enabled by either setting the `INITIAL_NO_AUTH_ACTION_COUNT` environment variable or using the `set_initial_no_auth_action_count` decorator. Note that the current implementation is very basic, see `the source code `_ for more information. `INITIAL_NO_AUTH_ACTION_COUNT` ------------------------------ @@ -44,4 +44,4 @@ This is a decorator that works similarly to the environment variable, but the se assert len(instances) == 0 -See `the related test suite `_ for more examples. +See `the related test suite `_ for more examples. diff --git a/docs/docs/server_mode.rst b/docs/docs/server_mode.rst index 9ded4f48a..abe1a2613 100644 --- a/docs/docs/server_mode.rst +++ b/docs/docs/server_mode.rst @@ -232,8 +232,8 @@ For the above services, this is required because the hostname is in the form of As a result, you need to add that entry to your host file for your tests to function properly. -.. _Java: https://github.com/spulec/moto/blob/master/other_langs/sqsSample.java -.. _Ruby: https://github.com/spulec/moto/blob/master/other_langs/test.rb -.. _Javascript: https://github.com/spulec/moto/blob/master/other_langs/test.js +.. _Java: https://github.com/getmoto/moto/blob/master/other_langs/sqsSample.java +.. _Ruby: https://github.com/getmoto/moto/blob/master/other_langs/test.rb +.. _Javascript: https://github.com/getmoto/moto/blob/master/other_langs/test.js .. _Homebrew: https://brew.sh .. _Terraform Docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/custom-service-endpoints diff --git a/docs/index.rst b/docs/index.rst index 959f1ec5f..0ba6134a9 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -22,8 +22,8 @@ Additional Resources * `Moto Issue Tracker`_ .. _AWS infrastructure: http://aws.amazon.com/ -.. _Moto Issue Tracker: https://github.com/spulec/moto/issues -.. _Moto Source Repository: https://github.com/spulec/moto +.. _Moto Issue Tracker: https://github.com/getmoto/moto/issues +.. _Moto Source Repository: https://github.com/getmoto/moto .. toctree:: :maxdepth: 2 diff --git a/moto/core/custom_responses_mock.py b/moto/core/custom_responses_mock.py index 272ec64a5..3daed7229 100644 --- a/moto/core/custom_responses_mock.py +++ b/moto/core/custom_responses_mock.py @@ -103,7 +103,7 @@ def not_implemented_callback( # Modify behaviour of the matcher to only/always return the first match -# Default behaviour is to return subsequent matches for subsequent requests, which leads to https://github.com/spulec/moto/issues/2567 +# Default behaviour is to return subsequent matches for subsequent requests, which leads to https://github.com/getmoto/moto/issues/2567 # - First request matches on the appropriate S3 URL # - Same request, executed again, will be matched on the subsequent match, which happens to be the catch-all, not-yet-implemented, callback # Fix: Always return the first match diff --git a/moto/dynamodb/models/__init__.py b/moto/dynamodb/models/__init__.py index bc915da4c..854727ee7 100644 --- a/moto/dynamodb/models/__init__.py +++ b/moto/dynamodb/models/__init__.py @@ -54,7 +54,7 @@ def dynamo_json_dump(dynamo_object): return json.dumps(dynamo_object, cls=DynamoJsonEncoder) -# https://github.com/spulec/moto/issues/1874 +# https://github.com/getmoto/moto/issues/1874 # Ensure that the total size of an item does not exceed 400kb class LimitedSizeDict(dict): def __init__(self, *args, **kwargs): diff --git a/moto/ec2/exceptions.py b/moto/ec2/exceptions.py index bac72ceff..3f1f2f5b8 100644 --- a/moto/ec2/exceptions.py +++ b/moto/ec2/exceptions.py @@ -520,7 +520,7 @@ class MotoNotImplementedError(NotImplementedError): super().__init__( f"{blurb} has not been implemented in Moto yet." " Feel free to open an issue at" - " https://github.com/spulec/moto/issues" + " https://github.com/getmoto/moto/issues" ) diff --git a/moto/ec2/responses/general.py b/moto/ec2/responses/general.py index d452a0989..018784a77 100644 --- a/moto/ec2/responses/general.py +++ b/moto/ec2/responses/general.py @@ -6,7 +6,7 @@ class General(BaseResponse): instance_id = self._get_param("InstanceId") if not instance_id: # For compatibility with boto. - # See: https://github.com/spulec/moto/pull/1152#issuecomment-332487599 + # See: https://github.com/getmoto/moto/pull/1152#issuecomment-332487599 instance_id = self._get_multi_param("InstanceId")[0] instance = self.ec2_backend.get_instance(instance_id) diff --git a/moto/ec2/responses/instances.py b/moto/ec2/responses/instances.py index 5a8a12272..fa587a111 100644 --- a/moto/ec2/responses/instances.py +++ b/moto/ec2/responses/instances.py @@ -229,7 +229,7 @@ class InstanceResponse(EC2BaseResponse): msg = ( "This specific call to ModifyInstanceAttribute has not been" " implemented in Moto yet. Feel free to open an issue at" - " https://github.com/spulec/moto/issues" + " https://github.com/getmoto/moto/issues" ) raise NotImplementedError(msg) diff --git a/moto/ec2/utils.py b/moto/ec2/utils.py index 50e0bee4c..610a3c248 100644 --- a/moto/ec2/utils.py +++ b/moto/ec2/utils.py @@ -427,7 +427,7 @@ def passes_filter_dict(instance, filter_dict): return False else: raise NotImplementedError( - "Filter dicts have not been implemented in Moto for '%s' yet. Feel free to open an issue at https://github.com/spulec/moto/issues" + "Filter dicts have not been implemented in Moto for '%s' yet. Feel free to open an issue at https://github.com/getmoto/moto/issues" % filter_name ) return True @@ -473,7 +473,7 @@ def passes_igw_filter_dict(igw, filter_dict): return False else: raise NotImplementedError( - "Internet Gateway filter dicts have not been implemented in Moto for '%s' yet. Feel free to open an issue at https://github.com/spulec/moto/issues", + "Internet Gateway filter dicts have not been implemented in Moto for '%s' yet. Feel free to open an issue at https://github.com/getmoto/moto/issues", filter_name, ) return True diff --git a/moto/moto_server/templates/dashboard.html b/moto/moto_server/templates/dashboard.html index 33859101a..a967af0ab 100644 --- a/moto/moto_server/templates/dashboard.html +++ b/moto/moto_server/templates/dashboard.html @@ -176,9 +176,9 @@ diff --git a/moto/redshiftdata/models.py b/moto/redshiftdata/models.py index 0ebddde74..8020c882b 100644 --- a/moto/redshiftdata/models.py +++ b/moto/redshiftdata/models.py @@ -200,7 +200,7 @@ def _validate_uuid(uuid): # For unknown reasons I cannot use the service name "redshift-data" as I should # It seems boto3 is unable to get the list of available regions for "redshift-data" -# See code here https://github.com/spulec/moto/blob/master/moto/core/utils.py#L407 +# See code here https://github.com/getmoto/moto/blob/master/moto/core/utils.py#L407 # sess.get_available_regions("redshift-data") returns an empty list # Then I use the service redshift since they share the same regions # See https://docs.aws.amazon.com/general/latest/gr/redshift-service.html diff --git a/moto/sns/models.py b/moto/sns/models.py index 42cecea05..bdb5fe8f3 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -642,7 +642,7 @@ class SNSBackend(BaseBackend): group_id=None, ): if subject is not None and len(subject) > 100: - # Note that the AWS docs around length are wrong: https://github.com/spulec/moto/issues/1503 + # Note that the AWS docs around length are wrong: https://github.com/getmoto/moto/issues/1503 raise ValueError("Subject must be less than 100 characters") if phone_number: diff --git a/scripts/bump_version b/scripts/bump_version index d1af3a84b..4a3fdd842 100755 --- a/scripts/bump_version +++ b/scripts/bump_version @@ -21,7 +21,7 @@ main() { # Commit an updated IMPLEMENTATION_COVERAGE.md make implementation_coverage || true # Open a PR - open https://github.com/spulec/moto/compare/master...version-${version} + open https://github.com/getmoto/moto/compare/master...version-${version} } main $@ diff --git a/scripts/ec2_get_instance_type_offerings.py b/scripts/ec2_get_instance_type_offerings.py index f34d57fc1..26af2828d 100755 --- a/scripts/ec2_get_instance_type_offerings.py +++ b/scripts/ec2_get_instance_type_offerings.py @@ -60,7 +60,7 @@ def main(): # Ensure we use the correct US-west availability zones # There are only two - for some accounts they are called us-west-1b and us-west-1c # As our EC2-module assumes us-west-1a and us-west-1b, we may have to rename the zones coming from AWS - # https://github.com/spulec/moto/issues/5494 + # https://github.com/getmoto/moto/issues/5494 if region == "us-west-1" and location_type == "availability-zone": zones = set([i["Location"] for i in instances]) if zones == {"us-west-1b", "us-west-1c"}: diff --git a/setup.cfg b/setup.cfg index 45609cea3..5c2b55b82 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ long_description = file:README.md long_description_content_type = text/markdown author = Steve Pulec author_email = "spulec@gmail.com" -url = https://github.com/spulec/moto +url = https://github.com/getmoto/moto license = Apache License 2.0 test_suite = tests classifiers = @@ -20,8 +20,8 @@ classifiers = keywords = aws ec2 s3 boto3 mock project_urls = Documentation = http://docs.getmoto.org/en/latest/ - Issue tracker = https://github.com/spulec/moto/issues - Changelog = https://github.com/spulec/moto/blob/master/CHANGELOG.md + Issue tracker = https://github.com/getmoto/moto/issues + Changelog = https://github.com/getmoto/moto/blob/master/CHANGELOG.md [options] python_requires = >=3.7 diff --git a/tests/test_batch/test_batch_jobs.py b/tests/test_batch/test_batch_jobs.py index 6a659019e..48f7a4eb9 100644 --- a/tests/test_batch/test_batch_jobs.py +++ b/tests/test_batch/test_batch_jobs.py @@ -108,7 +108,7 @@ def test_submit_job(): job_id = resp["jobId"] # Test that describe_jobs() returns 'createdAt' - # github.com/spulec/moto/issues/4364 + # github.com/getmoto/moto/issues/4364 resp = batch_client.describe_jobs(jobs=[job_id]) created_at = resp["jobs"][0]["createdAt"] created_at.should.be.greater_than(start_time_milliseconds) @@ -127,7 +127,7 @@ def test_submit_job(): [event["message"] for event in resp["events"]].should.equal(["hello"]) # Test that describe_jobs() returns timestamps in milliseconds - # github.com/spulec/moto/issues/4364 + # github.com/getmoto/moto/issues/4364 job = batch_client.describe_jobs(jobs=[job_id])["jobs"][0] created_at = job["createdAt"] started_at = job["startedAt"] diff --git a/tests/test_cloudwatch/test_cloudwatch_boto3.py b/tests/test_cloudwatch/test_cloudwatch_boto3.py index 1c07c5200..2fdc4b39a 100644 --- a/tests/test_cloudwatch/test_cloudwatch_boto3.py +++ b/tests/test_cloudwatch/test_cloudwatch_boto3.py @@ -194,7 +194,7 @@ def test_put_metric_data_with_statistics(): dict( MetricName="statmetric", Timestamp=utc_now, - # no Value to test https://github.com/spulec/moto/issues/1615 + # no Value to test https://github.com/getmoto/moto/issues/1615 StatisticValues=dict( SampleCount=3.0, Sum=123.0, Maximum=100.0, Minimum=12.0 ), diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py index 26785eb90..c8425128c 100644 --- a/tests/test_cognitoidp/test_cognitoidp.py +++ b/tests/test_cognitoidp/test_cognitoidp.py @@ -2881,7 +2881,7 @@ def test_change_password(): @mock_cognitoidp def test_change_password__using_custom_user_agent_header(): - # https://github.com/spulec/moto/issues/3098 + # https://github.com/getmoto/moto/issues/3098 # As the admin_initiate_auth-method is unauthenticated, we use the user-agent header to pass in the region # This test verifies this works, even if we pass in our own user-agent header from botocore.config import Config @@ -4327,7 +4327,7 @@ if not settings.TEST_SERVER_MODE: @mock_cognitoidp def test_idtoken_contains_kid_header(): - # https://github.com/spulec/moto/issues/3078 + # https://github.com/getmoto/moto/issues/3078 # Setup cognito = boto3.client("cognito-idp", "us-west-2") user_pool_id = cognito.create_user_pool(PoolName=str(uuid.uuid4()))["UserPool"][ diff --git a/tests/test_core/test_auth.py b/tests/test_core/test_auth.py index baf8c7faf..0bdcf0010 100644 --- a/tests/test_core/test_auth.py +++ b/tests/test_core/test_auth.py @@ -291,7 +291,7 @@ def test_access_denied_with_not_allowing_policy(): @set_initial_no_auth_action_count(3) @mock_ec2 def test_access_denied_for_run_instances(): - # https://github.com/spulec/moto/issues/2774 + # https://github.com/getmoto/moto/issues/2774 # The run-instances method was broken between botocore versions 1.15.8 and 1.15.12 # This was due to the inclusion of '"idempotencyToken":true' in the response, somehow altering the signature and breaking the authentication # Keeping this test in place in case botocore decides to break again diff --git a/tests/test_core/test_request_mocking.py b/tests/test_core/test_request_mocking.py index 17855d75a..7add26bbc 100644 --- a/tests/test_core/test_request_mocking.py +++ b/tests/test_core/test_request_mocking.py @@ -29,7 +29,7 @@ if not settings.TEST_SERVER_MODE: @mock_s3 def test_decorator_ordering() -> None: """ - https://github.com/spulec/moto/issues/3790#issuecomment-803979809 + https://github.com/getmoto/moto/issues/3790#issuecomment-803979809 """ bucket_name = "banana-slugs" key = "trash-file" diff --git a/tests/test_core/test_url_base_regex.py b/tests/test_core/test_url_base_regex.py index 54d9d9070..491512401 100644 --- a/tests/test_core/test_url_base_regex.py +++ b/tests/test_core/test_url_base_regex.py @@ -13,7 +13,7 @@ service_names = [ class TestMockBucketStartingWithServiceName: """ - https://github.com/spulec/moto/issues/4099 + https://github.com/getmoto/moto/issues/4099 """ @pytest.mark.parametrize("service_name,decorator", service_names) diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py index 244502cdb..8f3459ef9 100644 --- a/tests/test_dynamodb/test_dynamodb.py +++ b/tests/test_dynamodb/test_dynamodb.py @@ -1920,7 +1920,7 @@ def test_update_continuous_backups_errors(): ex.response["Error"]["Message"].should.equal("Table not found: not-existing-table") -# https://github.com/spulec/moto/issues/1043 +# https://github.com/getmoto/moto/issues/1043 @mock_dynamodb def test_query_missing_expr_names(): client = boto3.client("dynamodb", region_name="us-east-1") @@ -1964,7 +1964,7 @@ def test_query_missing_expr_names(): resp["Items"][0]["client"]["S"].should.equal("test2") -# https://github.com/spulec/moto/issues/2328 +# https://github.com/getmoto/moto/issues/2328 @mock_dynamodb def test_update_item_with_list(): dynamodb = boto3.resource("dynamodb", region_name="us-east-1") @@ -1986,7 +1986,7 @@ def test_update_item_with_list(): resp["Item"].should.equal({"key": "the-key", "list": [1, 2]}) -# https://github.com/spulec/moto/issues/2328 +# https://github.com/getmoto/moto/issues/2328 @mock_dynamodb def test_update_item_with_no_action_passed_with_list(): dynamodb = boto3.resource("dynamodb", region_name="us-east-1") @@ -2010,7 +2010,7 @@ def test_update_item_with_no_action_passed_with_list(): resp["Item"].should.equal({"key": "the-key", "list": [1, 2]}) -# https://github.com/spulec/moto/issues/1342 +# https://github.com/getmoto/moto/issues/1342 @mock_dynamodb def test_update_item_on_map(): dynamodb = boto3.resource("dynamodb", region_name="us-east-1") @@ -2089,7 +2089,7 @@ def test_update_item_on_map(): ) -# https://github.com/spulec/moto/issues/1358 +# https://github.com/getmoto/moto/issues/1358 @mock_dynamodb def test_update_if_not_exists(): dynamodb = boto3.resource("dynamodb", region_name="us-east-1") @@ -2133,7 +2133,7 @@ def test_update_if_not_exists(): assert resp["Items"][0]["created_at"] == 123 -# https://github.com/spulec/moto/issues/1937 +# https://github.com/getmoto/moto/issues/1937 @mock_dynamodb def test_update_return_attributes(): dynamodb = boto3.client("dynamodb", region_name="us-east-1") @@ -2175,7 +2175,7 @@ def test_update_return_attributes(): err["Message"].should.equal("Return values set to invalid value") -# https://github.com/spulec/moto/issues/3448 +# https://github.com/getmoto/moto/issues/3448 @mock_dynamodb def test_update_return_updated_new_attributes_when_same(): dynamo_client = boto3.resource("dynamodb", region_name="us-east-1") @@ -2872,7 +2872,7 @@ def test_sorted_query_with_numerical_sort_key(): ), "result items are not sorted by numerical value" -# https://github.com/spulec/moto/issues/1874 +# https://github.com/getmoto/moto/issues/1874 @mock_dynamodb def test_item_size_is_under_400KB(): dynamodb = boto3.resource("dynamodb", region_name="us-east-1") @@ -4206,7 +4206,7 @@ def create_simple_table_and_return_client(): return dynamodb -# https://github.com/spulec/moto/issues/2806 +# https://github.com/getmoto/moto/issues/2806 # https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html # #DDB-UpdateItem-request-UpdateExpression @mock_dynamodb @@ -4357,7 +4357,7 @@ def test_summing_up_2_strings_raises_exception(): ) -# https://github.com/spulec/moto/issues/2806 +# https://github.com/getmoto/moto/issues/2806 @mock_dynamodb def test_update_item_with_attribute_in_right_hand_side(): """ @@ -5412,7 +5412,7 @@ def test_describe_endpoints(region): @mock_dynamodb def test_update_non_existing_item_raises_error_and_does_not_contain_item_afterwards(): """ - https://github.com/spulec/moto/issues/3729 + https://github.com/getmoto/moto/issues/3729 Exception is raised, but item was persisted anyway Happened because we would create a placeholder, before validating/executing the UpdateExpression :return: @@ -5484,7 +5484,7 @@ def test_batch_write_item(): @mock_dynamodb def test_gsi_lastevaluatedkey(): - # github.com/spulec/moto/issues/3968 + # github.com/getmoto/moto/issues/3968 conn = boto3.resource("dynamodb", region_name="us-west-2") name = "test-table" table = conn.Table(name) @@ -5544,7 +5544,7 @@ def test_gsi_lastevaluatedkey(): @mock_dynamodb def test_filter_expression_execution_order(): - # As mentioned here: https://github.com/spulec/moto/issues/3909 + # As mentioned here: https://github.com/getmoto/moto/issues/3909 # and documented here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.FilterExpression # the filter expression should be evaluated after the query. # The same applies to scan operations: diff --git a/tests/test_dynamodb/test_dynamodb_update_expressions.py b/tests/test_dynamodb/test_dynamodb_update_expressions.py index f2b36d779..82cd0c42d 100644 --- a/tests/test_dynamodb/test_dynamodb_update_expressions.py +++ b/tests/test_dynamodb/test_dynamodb_update_expressions.py @@ -5,7 +5,7 @@ from moto import mock_dynamodb @mock_dynamodb def test_update_different_map_elements_in_single_request(): - # https://github.com/spulec/moto/issues/5552 + # https://github.com/getmoto/moto/issues/5552 dynamodb = boto3.resource("dynamodb", region_name="us-east-1") dynamodb.create_table( TableName="example_table", diff --git a/tests/test_ec2/test_amis.py b/tests/test_ec2/test_amis.py index 6a6410431..b8a46be3f 100644 --- a/tests/test_ec2/test_amis.py +++ b/tests/test_ec2/test_amis.py @@ -833,7 +833,7 @@ def test_ami_attribute_user_and_group_permissions(): @mock_ec2 def test_filter_description(): - # https://github.com/spulec/moto/issues/4460 + # https://github.com/getmoto/moto/issues/4460 client = boto3.client("ec2", region_name="us-west-2") # Search for partial description diff --git a/tests/test_ec2/test_elastic_block_store.py b/tests/test_ec2/test_elastic_block_store.py index 5d872be59..fb1c24245 100644 --- a/tests/test_ec2/test_elastic_block_store.py +++ b/tests/test_ec2/test_elastic_block_store.py @@ -715,7 +715,7 @@ def test_modify_attribute_blockDeviceMapping(): Reproduces the missing feature explained at [0], where we want to mock a call to modify an instance attribute of type: blockDeviceMapping. - [0] https://github.com/spulec/moto/issues/160 + [0] https://github.com/getmoto/moto/issues/160 """ client = boto3.client("ec2", region_name="us-east-1") ec2 = boto3.resource("ec2", region_name="us-east-1") diff --git a/tests/test_ec2/test_regions.py b/tests/test_ec2/test_regions.py index d26e9658f..9109f5fa3 100644 --- a/tests/test_ec2/test_regions.py +++ b/tests/test_ec2/test_regions.py @@ -145,7 +145,7 @@ def test_describe_regions_dryrun(): def test_describe_zones_and_get_instance_types(region_name): """ Verify that instance types exist in all exposed Availability Zones - https://github.com/spulec/moto/issues/5494 + https://github.com/getmoto/moto/issues/5494 """ client = boto3.client("ec2", region_name=region_name) zones = client.describe_availability_zones()["AvailabilityZones"] diff --git a/tests/test_ec2/test_subnets.py b/tests/test_ec2/test_subnets.py index 09a41f697..7eb43978d 100644 --- a/tests/test_ec2/test_subnets.py +++ b/tests/test_ec2/test_subnets.py @@ -680,7 +680,7 @@ def validate_subnet_details_after_creating_eni( @mock_ec2 def test_run_instances_should_attach_to_default_subnet(): - # https://github.com/spulec/moto/issues/2877 + # https://github.com/getmoto/moto/issues/2877 ec2 = boto3.resource("ec2", region_name="sa-east-1") client = boto3.client("ec2", region_name="sa-east-1") sec_group_name = str(uuid4())[0:6] diff --git a/tests/test_elbv2/test_elbv2.py b/tests/test_elbv2/test_elbv2.py index ff16b35b9..fcded943b 100644 --- a/tests/test_elbv2/test_elbv2.py +++ b/tests/test_elbv2/test_elbv2.py @@ -304,7 +304,7 @@ def test_create_listeners_without_port(): @mock_ec2 @mock_elbv2 def test_create_rule_forward_config_as_second_arg(): - # https://github.com/spulec/moto/issues/4123 + # https://github.com/getmoto/moto/issues/4123 # Necessary because there was some convoluted way of parsing arguments # Actions with type=forward had to be the first action specified response, vpc, _, _, _, elbv2 = create_load_balancer() diff --git a/tests/test_s3/test_s3.py b/tests/test_s3/test_s3.py index 3ebee03fd..dac1d2d4a 100644 --- a/tests/test_s3/test_s3.py +++ b/tests/test_s3/test_s3.py @@ -1102,7 +1102,7 @@ def test_website_redirect_location(): resp = s3.get_object(Bucket="mybucket", Key="steve") resp.get("WebsiteRedirectLocation").should.equal(None) - url = "https://github.com/spulec/moto" + url = "https://github.com/getmoto/moto" s3.put_object( Bucket="mybucket", Key="steve", Body=b"is awesome", WebsiteRedirectLocation=url ) @@ -3445,7 +3445,7 @@ def test_head_object_should_return_default_content_type(): @mock_s3 def test_request_partial_content_should_contain_all_metadata(): - # github.com/spulec/moto/issues/4203 + # github.com/getmoto/moto/issues/4203 bucket = "bucket" object_key = "key" body = "some text" diff --git a/tests/test_s3/test_s3_classdecorator.py b/tests/test_s3/test_s3_classdecorator.py index 5b3021697..ecb10299d 100644 --- a/tests/test_s3/test_s3_classdecorator.py +++ b/tests/test_s3/test_s3_classdecorator.py @@ -7,7 +7,7 @@ from moto import mock_s3 @mock_s3 class ClassDecoratorTest(unittest.TestCase): """ - https://github.com/spulec/moto/issues/3535 + https://github.com/getmoto/moto/issues/3535 An update to the mock-package introduced a failure during teardown. This test is in place to catch any similar failures with our mocking approach """ diff --git a/tests/test_s3/test_s3_file_handles.py b/tests/test_s3/test_s3_file_handles.py index 984cbbdac..868717dfd 100644 --- a/tests/test_s3/test_s3_file_handles.py +++ b/tests/test_s3/test_s3_file_handles.py @@ -190,7 +190,7 @@ class TestS3FileHandleClosures(TestCase): def test_verify_key_can_be_copied_after_disposing(): - # https://github.com/spulec/moto/issues/5588 + # https://github.com/getmoto/moto/issues/5588 # Multithreaded bug where: # - User: calls list_object_versions # - Moto creates a list of all keys diff --git a/tests/test_s3/test_server.py b/tests/test_s3/test_server.py index 222ced7b9..25531ecbb 100644 --- a/tests/test_s3/test_server.py +++ b/tests/test_s3/test_server.py @@ -202,7 +202,7 @@ def test_s3_server_post_cors(): def test_s3_server_post_cors_exposed_header(): """Test that we can override default CORS headers with custom bucket rules""" - # github.com/spulec/moto/issues/4220 + # github.com/getmoto/moto/issues/4220 cors_config_payload = """ diff --git a/tests/test_sqs/test_server.py b/tests/test_sqs/test_server.py index fd8b8a77e..9a737c093 100644 --- a/tests/test_sqs/test_server.py +++ b/tests/test_sqs/test_server.py @@ -20,7 +20,7 @@ def test_sqs_list_identities(): # Make sure that we can receive messages from queues whose name contains dots (".") # The AWS API mandates that the names of FIFO queues use the suffix ".fifo" - # See: https://github.com/spulec/moto/issues/866 + # See: https://github.com/getmoto/moto/issues/866 for queue_name in ("testqueue", "otherqueue.fifo"):