Repository: getmoto/moto
Pull request #7621 (2024-04-22 22:56:19)

Bump ruby/setup-ruby from 1.173.0 to 1.174.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.173.0 to 1.174.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ruby/setup-ruby/commit/6bd3d993c602f6b675728ebaecb2b569ff86e99b"><code>6bd3d99</code></a> Add truffleruby-24.0.1,truffleruby+graalvm-24.0.1</li>
<li>See full diff in <a href="https://github.com/ruby/setup-ruby/compare/5f19ec79cedfadb78ab837f95b87734d0003c899...6bd3d993c602f6b675728ebaecb2b569ff86e99b">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruby/setup-ruby&package-manager=github_actions&previous-version=1.173.0&new-version=1.174.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/moto/elasticache/models.py b/moto/elasticache/models.py
index 7b90c9eca..8f470006a 100644
--- a/moto/elasticache/models.py
+++ b/moto/elasticache/models.py
@@ -152,44 +152,7 @@ class ElastiCacheBackend(BaseBackend):
             no_password_required=True,
         )
 
-        # Define the cache_clusters dictionary to detect duplicates
-        self.cache_clusters = dict()
-        self.cache_clusters["default"] = CacheCluster(
-            account_id=self.account_id,
-            region_name=self.region_name,
-            cache_cluster_id="default",
-            replication_group_id=None,
-            az_mode=None,
-            preferred_availability_zone=None,
-            num_cache_nodes=1,
-            cache_node_type=None,
-            engine="redis",
-            engine_version=None,
-            cache_parameter_group_name=None,
-            cache_subnet_group_name=None,
-            transit_encryption_enabled=True,
-            network_type=None,
-            ip_discovery=None,
-            snapshot_name=None,
-            preferred_maintenance_window=None,
-            port=6379,
-            notification_topic_arn=None,
-            auto_minor_version_upgrade=True,
-            snapshot_retention_limit=0,
-            snapshot_window=None,
-            auth_token=None,
-            outpost_mode=None,
-            preferred_outpost_arn=None,
-            preferred_availability_zones=[],
-            cache_security_group_names=[],
-            security_group_ids=[],
-            tags=[],
-            snapshot_arns=[],
-            preferred_outpost_arns=[],
-            log_delivery_configurations=[],
-            cache_node_ids_to_remove=[],
-            cache_node_ids_to_reboot=[],
-        )
+        self.cache_clusters: Dict[str, Any] = dict()
 
     def create_user(
         self,


Test patch:
diff --git a/.github/workflows/tests_sdk_ruby.yml b/.github/workflows/tests_sdk_ruby.yml
index 4faad6f66..2f9f96cb6 100644
--- a/.github/workflows/tests_sdk_ruby.yml
+++ b/.github/workflows/tests_sdk_ruby.yml
@@ -13,7 +13,7 @@ jobs:
     steps:
       - uses: actions/checkout@v4
       - name: Set up Ruby ${{ matrix.ruby-version }}
-        uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899
+        uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b
         with:
           ruby-version: ${{ matrix.ruby-version }}
       - name: Set up Python 3.8
diff --git a/tests/test_elasticache/test_elasticache.py b/tests/test_elasticache/test_elasticache.py
index 29671f033..d7b47934b 100644
--- a/tests/test_elasticache/test_elasticache.py
+++ b/tests/test_elasticache/test_elasticache.py
@@ -305,8 +305,6 @@ def test_describe_all_cache_clusters():
     assert resp["ResponseMetadata"]["HTTPStatusCode"] == 200
 
     cache_clusters = resp["CacheClusters"]
-    # account for the default cluster created moto/elasticache/models.py line 148
-    del cache_clusters[0]
 
     for i, cache_cluster in enumerate(cache_clusters):
         if cache_cluster["CacheClusterId"] == f"test-cache-cluster-{i}":