You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scope of testing here verifies the possibility of correctly uploading and downloading
16
+
a finite set of file types in a particular size range to [Permanent.org](Permanent.org) using [rclone](https://rclone.org/)
17
+
which talks to permanent using the [SFTP service](https://github.com/PermanentOrg/sftp-service)
18
+
19
+
### What file types and scenarios are covered?
20
+
21
+
- Text and png images with obscure names generated via [generate-tree.py](generate-tree.py)
22
+
- Images in `.jpg` and `.png` format downloaded from [APOD](https://apod.nasa.gov/apod) via [apod-downloader.py](apod-downloader.py)
23
+
- Compressed files in `.zip` and `.tar`
24
+
- Videos in `.mp4`, `.webm`, `.gifs` and `.3gp` common in mobile devices.
25
+
- Executable files in `.exe`, `.run`, `.sh`, `.dep` and extension-less bin executables.
26
+
27
+
### What file types and scenarios are left out?
28
+
29
+
Anything not included in the section above describing what is currently covered is by implication excluded from these tests.
30
+
13
31
## Usage
14
32
33
+
You would have to install the python requirements used in this repo.
34
+
35
+
1.`python -m venv venv`
36
+
2.`source venv/bin/activate`
37
+
3.`pip install -r requirements.txt`
38
+
39
+
*It's possible to just install the requirements on your workspace however steps 1 and 2 would create and activate a virtual environment for this project alone! Recommended!*
40
+
15
41
### APOD
16
42
17
43
Run `./apod-downloader.py` to download a set of Astronomy Of The Day
18
44
photos, in a new directory called `test-tree/apod`.
19
45
20
-
Run `./upload-test.sh test-tree/apod` to try uploading the APOD photos
46
+
Run `./upload-test.py test-tree/apod --archive-path "/archives/rclone QA 1 (0a0j-0000)/My Files/"` to try uploading the APOD photos
21
47
(and some html) all at once to a directory on the server.
22
48
49
+
**NB: The `--archive-path` argument specifies the route to the the specific permanent archive to which uploads would be made. So how do you get the archive path? See [Constructing archive path](https://github.com/permanentOrg/sftp-service/#downloading-from-permanent)**
50
+
51
+
*That said, the archive path used in the sample command would have to be updated to match some archive created on Permanent.org*
52
+
23
53
### Challenging Names
24
54
25
55
Run `./generate-tree.py` to generate test data, which will be placed
26
56
in a new subdirectory named `test-tree/challenging-names`.
27
57
28
-
Then run `./upload-test.sh test-tree/challenging-names` to try uploading the data (you'll need to
58
+
Then run `./upload-test.py test-tree/challenging-names --archive-path "/archives/rclone QA 1 (0a0j-0000)/My Files/"` to try uploading the data (you'll need to
0 commit comments