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

Refresher_spec: Add deletions tests #44

Merged
merged 1 commit into from
Jun 21, 2017

Conversation

zakiva
Copy link
Contributor

@zakiva zakiva commented Jun 20, 2017

Extracted k8s entities tests from ManageIQ/manageiq-providers-openshift#18

@simon3z @cben @moolitayer Please review

Copy link
Contributor

@cben cben left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, will do

Copy link
Contributor

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.

Copy link
Contributor Author

@zakiva zakiva Jun 21, 2017

Choose a reason for hiding this comment

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

@zakiva
Copy link
Contributor Author

zakiva commented Jun 20, 2017

Eh, that's easier than I feared.
The cassettes are exactly the same, right?

Yes, just copied them here

@zakiva zakiva force-pushed the deletions_tests branch 3 times, most recently from 8e8fb9f to 12b4c7b Compare June 20, 2017 11:08
@miq-bot
Copy link
Member

miq-bot commented Jun 20, 2017

Checked commit zakiva@12b4c7b with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@zakiva
Copy link
Contributor Author

zakiva commented Jun 21, 2017

@miq-bot add_label test

@miq-bot miq-bot added the test label Jun 21, 2017
@simon3z simon3z merged commit 79887d1 into ManageIQ:master Jun 21, 2017
@moolitayer moolitayer added this to the Sprint 64 Ending Jul 10, 2017 milestone Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants