From Fedora Project Wiki
Description
Basic file-transfer functionality.
Setup
You will need an Amazon Drive account. The level included with Amazon Prime will be sufficient. Note that if this test puts you over your storage limit, you may incur charges; don't do that.
If you have not done so already, follow the Authorization steps for acd_cli. (To do: this should be split into an individual test case.)
How to test
- Create a remote folder: acd_cli mkdir /FedoraTest (There will be no output on success.)
- Upload a file: acd_cli upload /usr/share/doc/acd_cli/README.rst /FedoraTest/ (Will print [###] hashes and transfer stats while uploading.)
- Download that file to local temporary storage: acd_cli download /FedoraTest3/README.rst /tmp/</t> (Will print [###] hashes and transfer stats while downloading.)
Expected Results
- The file should be visible in the web-based Drive access at https://amazon.com/clouddrive/folder/root (under the FedoraTest folder we created.
- No Python tracebacks or other errors.
- No errors from the program while transferring.
- Downloaded and uploaded files are identical. (diff /tmp/README.rst /usr/share/doc/acd_cli/README.rst && echo OK should result in "OK", not a list of differences.)