-
Notifications
You must be signed in to change notification settings - Fork 35
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 Review API Test #456
Conversation
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
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.
Overall looks good! Left few comments.
Please don't forget update https://github.com/konveyor/tackle2-hub/blob/main/docs/test-api-matrix.md |
Related to konveyor/operator#220 |
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
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.
Commented few things I missed before, otherwise looks good to me!
test/api/review/api_test.go
Outdated
assert.Must(t, Application.Delete(app.ID)) | ||
}) | ||
|
||
t.Run("Delete Review and its dependencies", func(t *testing.T) { |
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.
Not sure why is application delete before the reviews (so why there is a separated subtets for the deletion).
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.
Will merge the test!
} | ||
assert.Must(t, Application.Create(&destApp)) | ||
|
||
err := Review.Copy(r.ID, destApp.ID) |
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.
It cold be better check the copied review fields with AssertEqualReviews
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
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 to me! Will merge when #467 gets in.
Add review API Test
Work to be Done