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
555a4418
Commit
555a4418
authored
1 year ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
investigating failing env suit full fat failure
parent
bc5bb303
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
tests/integration/full/full_test_env_suit.py
+3
-4
3 additions, 4 deletions
tests/integration/full/full_test_env_suit.py
tests/integration/partial/integration_test_utils.py
+25
-28
25 additions, 28 deletions
tests/integration/partial/integration_test_utils.py
with
28 additions
and
32 deletions
tests/integration/full/full_test_env_suit.py
+
3
−
4
View file @
555a4418
...
...
@@ -46,10 +46,9 @@ class FullTestEnvSuit(BaseEnvSuitTestSuite.EnvSuitTestSuite):
@staticmethod
def
run_env_pipeline
():
# IntegrationTestUtils.run_external_pipeline(BaseEnvSuitTestSuite.EnvSuitTestSuite.ENV_COMPONENT_NAME,
# IntegrationTestUtils.TEST_START_DATE,
# IntegrationTestUtils.EMAIL_CRED_PATH)
pass
IntegrationTestUtils
.
run_external_pipeline
(
BaseEnvSuitTestSuite
.
EnvSuitTestSuite
.
ENV_COMPONENT_NAME
,
IntegrationTestUtils
.
TEST_START_DATE
,
IntegrationTestUtils
.
EMAIL_CRED_PATH
)
if
__name__
==
'
__main__
'
:
_success
:
bool
=
IntegrationTestUtils
.
run_full_integration_test_pipeline
(
FullTestEnvSuit
,
...
...
This diff is collapsed.
Click to expand it.
tests/integration/partial/integration_test_utils.py
+
25
−
28
View file @
555a4418
...
...
@@ -197,38 +197,35 @@ class IntegrationTestUtils:
email_cred_path
:
str
,
**
kwargs
):
print
(
"
running external pipeline1
"
)
# need EMAIL_CRED in the environment before we import Processor
os
.
environ
[
"
EMAIL_CRED
"
]
=
email_cred_path
print
(
"
running external pipeline2
"
)
import
Processor
reload
(
Processor
)
# reload the class to reset all variables
from
Processor
import
run_Process
,
set_log_level
print
(
"
running external pipeline3
"
)
args_dict
:
dict
=
{}
# import Processor
# reload(Processor) # reload the class to reset all variables
# from Processor import run_Process, set_log_level
#
# args_dict: dict = {}
#
# note, possible to override these values in the kwargs loop below
args_dict
[
'
live
'
]
=
False
args_dict
[
'
noupload
'
]
=
True
args_dict
[
'
start_date
'
]
=
start_date
args_dict
[
'
component
'
]
=
component
args_dict
[
'
config_paths
'
]
=
[
IntegrationTestUtils
.
TEMP_CONFIG_FILE_NAME
]
args_dict
[
'
log_level
'
]
=
'
info
'
args_dict
[
'
clearup
'
]
=
True
for
key
,
value
in
kwargs
.
items
():
args_dict
[
key
]
=
value
log_level
=
args_dict
[
'
log_level
'
]
set_log_level
(
log_level
)
try
:
run_Process
(
args_dict
)
except
SystemExit
:
#
we will eventually want to throw these to the calling class to be dealt with
pass
#
args_dict['live'] = False
#
args_dict['noupload'] = True
#
args_dict['start_date'] = start_date
#
args_dict['component'] = component
#
args_dict['config_paths'] = [IntegrationTestUtils.TEMP_CONFIG_FILE_NAME]
#
args_dict['log_level'] = 'info'
#
args_dict['clearup'] = True
#
#
for key, value in kwargs.items():
#
args_dict[key] = value
#
#
log_level = args_dict['log_level']
#
set_log_level(log_level)
#
#
try:
#
run_Process(args_dict)
#
except SystemExit:
#
we will eventually want to throw these to the calling class to be dealt with
#
pass
@staticmethod
...
...
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