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

USS Update file contents endpoint #83

Closed
jordanCain opened this issue Mar 26, 2019 · 0 comments

Comments

@jordanCain
Copy link
Contributor

commented Mar 26, 2019

There's currently no option to update the contents of a unix file

The solution for this would be the implementation of a PUT endpoint that would take a request body that contains the new file contents along with a potential E-Tag header in order to update the contents of the file.

Any updates to files should not contradict with the existing codepage of files

Original issue: #75

As a USS endpoint user
I want the ability to update the contents of a unix file
so that I can edit files on the remote system

Acceptance Criteria

*Scenario 1: update file contents without any overwrite check
Given an existing unix file
When I submit a PUT request with new content
Then the file contents on the system are updated

*Scenario 2: update file contents with overwrite check
Given an existing unix file and E-Tag value
When I submit a PUT request with new content and existing E-Tag value
Then the systems verifies the existing file on the system hasn't changed based on E-Tag
And file contents are updated

*Scenario 3: update file contents with overwrite check that fails
Given an existing unix file and E-Tag value
When I submit a PUT request with new content and existing E-Tag value
Then the systems detects the file has changed based on E-Tag
And appropriate response is returned

*Scenario 4: Update file containing EBCDC
Given an existing unix file that's contents are EBCDC characters
When I submit a PUT request with new content
Then the file contents on the system are updated and all characters in the file are EBCDC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.