X Tutup
Skip to content

Add test to get file size#36816

Closed
haribhandari07 wants to merge 1 commit intomasterfrom
get-size
Closed

Add test to get file size#36816
haribhandari07 wants to merge 1 commit intomasterfrom
get-size

Conversation

@haribhandari07
Copy link
Contributor

Description

Related Issue

  • Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@update-docs
Copy link

update-docs bot commented Jan 24, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

I made some comments on the words for the Gherkin steps.

}

/**
* @When user :user gets size of file :resource using the WebDAV API
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @When user :user gets size of file :resource using the WebDAV API
* @When user :user gets the size of file :resource using the WebDAV API


Scenario: Get the size of a file
When user "user0" gets size of file "textfile0.txt" using the WebDAV API
And the HTTP status code should be "207"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
And the HTTP status code should be "207"
Then the HTTP status code should be "207"

Scenario: Get the size of a file
When user "user0" gets size of file "textfile0.txt" using the WebDAV API
And the HTTP status code should be "207"
Then the size of file should be "26"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Then the size of file should be "26"
And the size of file should be "26"

}

/**
* @Then the size of file should be :size
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @Then the size of file should be :size
* @Then the size of the file should be :size

Then the value of the item "//s:message" in the response should be ""
And the HTTP status code should be "404"

Scenario: get the size of public link share
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Scenario: get the size of public link share
Scenario: get the size of a file shared by public link

@phil-davis
Copy link
Contributor

This was handed over to @jasson99 and done in PR #36778

@phil-davis phil-davis closed this Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup