getmoto / moto

A library that allows you to easily mock out tests based on AWS infrastructure.

Home Page:http://docs.getmoto.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default cache cluster for elasticcache

archinksagar opened this issue · comments

When we call create_cache_cluster, an additional cluster ("default") gets created, This is causing problem with our testing.
What is the reason for adding the default cluster? Can that be removed?

self.cache_clusters["default"] = CacheCluster(

@jfmainville I think this was added in your PR originally, #6754

Do you remember why you added the default cluster? Is that automatically added in specific regions, or automatically created when a user creates clusters/users?
I've tried this out in AWS, but i can't replicate a scenario where the default cluster is created automatically.

Indeed, it's an oversight on my end, the default cache_cluster creation shouldn't be included as part of the Elasticache cache clusters initialization process, I created the MR #7622 to fix this issue.

Fixed as of moto >= 5.0.6.dev30. Thank you for raising this @archinksagar, and thanks again for the fix @jfmainville!