FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
97823e87
Commit
97823e87
authored
2 years ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
adding flag for storing output after running
parent
5e1f085d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
tests/integration/full/full_test_deposition.py
+21
-2
21 additions, 2 deletions
tests/integration/full/full_test_deposition.py
with
23 additions
and
4 deletions
.gitlab-ci.yml
+
2
−
2
View file @
97823e87
...
...
@@ -172,8 +172,8 @@ full_fat_tests:
--config /storage/app/EWS_prod/regions/EastAfrica/resources/coordinator/configs/config_EastAfrica_fc_live.json
--outdir $OUTPUT_DIR
--email_cred /storage/app/EWS_prod/envs/credentials/Cred_gmail.json
#
--run_date_type $FULL_FAT_RUN_DATE
#
--custom_run_date $CUSTOM_RUN_DATE
--run_date_type $FULL_FAT_RUN_DATE
--custom_run_date $CUSTOM_RUN_DATE
if [[ "$FULL_FAT_COPY_OUTPUT" == "true" ]];
then
...
...
This diff is collapsed.
Click to expand it.
tests/integration/full/full_test_deposition.py
+
21
−
2
View file @
97823e87
...
...
@@ -8,6 +8,7 @@ from integration.partial.integration_test_utils import IntegrationTestUtils
class
TestFullDeposition
(
unittest
.
TestCase
):
TEST_OUT_PATH
:
str
=
"
not_set
"
TEST_START_DATE
:
str
=
'
20230126
'
TEST_JOB_DIR
:
str
=
"
DEPOSITION_
"
+
TEST_START_DATE
...
...
@@ -94,18 +95,36 @@ if __name__ == '__main__':
parser
.
add_argument
(
'
--config
'
,
required
=
True
)
parser
.
add_argument
(
'
--outdir
'
,
required
=
True
)
parser
.
add_argument
(
'
--email_cred
'
,
required
=
True
)
parser
.
add_argument
(
'
--run_date_type
'
,
required
=
False
)
parser
.
add_argument
(
'
--custom_run_date
'
,
required
=
False
)
parser
.
add_argument
(
'
unittest_args
'
,
nargs
=
'
*
'
)
_args
=
parser
.
parse_args
()
_config_file
:
str
=
_args
.
config
_outdir
:
str
=
_args
.
outdir
_email_cred_path
:
str
=
_args
.
email_cred
_run_date_type
:
str
=
_args
.
run_date_type
_custom_run_date
:
str
=
_args
.
custom_run_date
IntegrationTestUtils
.
DEFAULT_CONFIG_FILE_PATH
=
_config_file
TestFullDeposition
.
TEST_OUT_PATH
=
_outdir
IntegrationTestUtils
.
EMAIL_CRED_PATH
=
_email_cred_path
if
_run_date_type
==
"
today
"
:
print
(
"
today
"
)
elif
_run_date_type
==
"
yesterday
"
:
print
(
"
yesterday
"
)
elif
_run_date_type
==
"
custom
"
:
print
(
_custom_run_date
)
TestFullDeposition
.
TEST_START_DATE
=
_custom_run_date
TestFullDeposition
.
TEST_JOB_DIR
=
"
DEPOSITION_
"
+
_custom_run_date
else
:
print
(
"
default
"
)
TestFullDeposition
.
TEST_START_DATE
=
"
20230126
"
TestFullDeposition
.
TEST_JOB_DIR
=
"
DEPOSITION_
"
+
_custom_run_date
# Now set the sys.argv to the unittest_args (leaving sys.argv[0] alone)
sys
.
argv
[
1
:]
=
_args
.
unittest_args
unittest
.
main
()
#
sys.argv[1:] = _args.unittest_args
#
unittest.main()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment