-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated staging and upload so that they should work with AWS
- Loading branch information
Showing
5 changed files
with
211 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from xnat_ingest.cli import upload | ||
from xnat_ingest.utils import show_cli_trace | ||
from click.testing import CliRunner | ||
|
||
PATTERN = "{PatientName.given_name}_{PatientName.family_name}_{SeriesDate}.*" | ||
|
||
runner = CliRunner() | ||
|
||
result = runner.invoke( | ||
upload, | ||
[ | ||
"s3://ais-s3-tbp-s3bucket-1afz0bzdw5jd6/staging", | ||
], | ||
env={ | ||
"XNAT_INGEST_HOST": "https://xnat.sydney.edu.au", | ||
|
||
}, | ||
catch_exceptions=False, | ||
) | ||
|
||
assert result.exit_code == 0, show_cli_trace(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.