-
Notifications
You must be signed in to change notification settings - Fork 1
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 tests for prepareForDataSynchronization func #52
Conversation
81de935
to
422e9f9
Compare
Expect(ctrlClient).NotTo(BeNil()) | ||
primaryBackups := append(primaryBackupsWithoutTarget, backup.DeepCopy()) | ||
for _, backup := range primaryBackups { | ||
shouldbeDeleted := false |
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.
shouldbeDeleted := false | |
shouldBeDeleted := false |
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.
|
||
var _ = Describe("prepareForDataSynchronization", func() { | ||
testPVCUID := "d3b07384-d9a7-4e6b-8a3b-1f4b7b7b7b7b" | ||
testName := "test5" |
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 belive "testSnap5" is better since "5" doesn't mean just a unique number among all tests but is equal to the snapID. Other testNames, "testN" should also be changed.
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.
422e9f9
to
a0e5141
Compare
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
a0e5141
to
b1f8ee9
Compare
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Although |
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.
@peng225 LGTM. Do you plan to squash commits? If else, I'll merge this PR after CI succeeded.
No, I don't. Now that CI has passed, I'll merge it. |
Signed-off-by: Shinya Hayashi shinya-hayashi@cybozu.co.jp