Skip to content

Commit

Permalink
feat: test file and upload for acc pac ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonPaulGithub committed Mar 21, 2024
1 parent 882c0a2 commit 12c1060
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,18 +402,29 @@ jobs:
SN_LOG: "all"
timeout-minutes: 15

# ---> DEPRECATED(!!): We are removing use of this upload cmd in favour of AccPac
- name: Start a client to upload files
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 15

# ---> DEPRECATED(!!): We are removing use of this download cmd in favour of AccPac
- name: Start a client to download files
run: cargo run --bin safe --release -- --log-output-dest=data-dir files download --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 2

# Test for Acc Pac file Upload and download. Attached Test File: "ATF001.txt"
- name: Run upload and download file procedure via Acc Pac
run: |
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources/test_files/ATF001.txt"
exit 1
env:
SN_LOG: "all"
timeout-minutes: 2

# Client FoldersApi tests against local network
- name: Client FoldersApi tests against local network
run: cargo test --release --package sn_client --test folders_api
Expand Down
11 changes: 11 additions & 0 deletions resources/test_files/ATF001.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This a test file that is attached to a CI test that will upload and download for the file procedure
via Acc Pac'.

The contents of this file must meet a minimum threshold in order to be chunked and uploaded to the
network.

The test itself will upload this file to the network, and then download it.

The MD5 hash of this file will be checked to see if it is the same before, as it is after.
This will ensure the file stays maintains its integrity despite going through chunking, as well as
the upload and download process.

0 comments on commit 12c1060

Please sign in to comment.