-
Notifications
You must be signed in to change notification settings - Fork 63
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
Refresher_spec: Add deletions tests #44
Conversation
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.
Eh, that's easier than I feared.
The cassettes are exactly the same, right?
expect(ContainerDefinition.where(:deleted_on => nil).count).to eq(7) | ||
end | ||
|
||
it "removes the deleted objects from the DB" do |
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.
I'd add here a comment with short overview of the deletions, to give some context to the reader.
(deleted whole "my-project-0", many (all?) entities in "my-project-1", a pod and a route label in "my-project-2" — something like that)
Risks getting out sync. Your call.
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.
right, will do
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.
@zakiva waiting for this before merging.
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.
Yes, just copied them here |
8e8fb9f
to
12b4c7b
Compare
Checked commit zakiva@12b4c7b with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add_label test |
Extracted k8s entities tests from ManageIQ/manageiq-providers-openshift#18
@simon3z @cben @moolitayer Please review