Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix that endpoint names are global #658

Closed
wants to merge 1 commit into from
Closed

Conversation

Yuuki77
Copy link
Contributor

@Yuuki77 Yuuki77 commented Mar 8, 2021

Fixes #616

If you create an endpoint named A in district 1, you cant make an endpoint named A in district 2, even though there is no reason you shouldn't be able to.

How to test
I think looking at the test should be ok

endpoint.save!
expect_any_instance_of(CloudFormation::Executor).to receive(:delete)
endpoint.destroy!
end
end

describe "#validations" do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoulda-matchers doesn't support scope with association.
so I wrote the code like this.
thoughtbot/shoulda-matchers#814

@Yuuki77
Copy link
Contributor Author

Yuuki77 commented Mar 9, 2021

actually this is not going to work because endpoint name is used for load balancer name and it should be unique in region.

@Yuuki77 Yuuki77 closed this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endpoint names are global
1 participant