-
Notifications
You must be signed in to change notification settings - Fork 900
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
Add tag to container_label_tag_mapping factory #16517
Add tag to container_label_tag_mapping factory #16517
Conversation
ContainerLabelTagMapping assumes it belongs_to a tag so add this to the factory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Confirmed it gets rid of the undefined method
name' for nil:NilClasserror from the
Factory`.
cc @Fryguy |
Checked commit agrare@e0e2cb4 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Thanks for the fix 🤕 I'm going to look for prettier alternatives but 👍 to merge this first. @miq-bot add-label gaprindashvili/yes |
OK turns out using the new UPDATE: that was merged, fixed ui master & gaprindashvili |
@cben that looks good, does it make sense to have a base container_label_tag_mapping factory that doesn't have a tag? Should we add just a |
See discussion on the other PR.
This base factory is now only useful if you provide a separately created
:tag, and we have tests that do exactly this.
I hope to delete some code & rewrite/remove those tests, and will
re-evaluate the factories then.
|
Ah okay this is what I was missing. |
ContainerLabelTagMapping assumes it belongs_to a tag so add this to the
factory.
Introduced by #16501