-
Notifications
You must be signed in to change notification settings - Fork 152
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 Profile datamover #2266
Conversation
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Thanks for submitting this pull request 🎉. The team will review it soon and get back to you. If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document. |
func (ps *ProfileSuite) TestLocationOperationsForProfileDataMover(c *C) { | ||
p := testutil.ObjectStoreProfileOrSkip(c, objectstore.ProviderTypeS3, *ps.location) | ||
dir := c.MkDir() | ||
path := filepath.Join(dir, "test-object1.txt") |
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.
[nit] The filename can be declared as const
err = locationPush(ps.ctx, p, path, source) | ||
c.Assert(err, IsNil) | ||
|
||
path = filepath.Join(dir, "test-object2.txt") |
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.
same here
Change Overview
Add Tests for Profile datamover
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan
Manual Testing
$ cd pkg/datamover