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
6c3d48fc
Commit
6c3d48fc
authored
8 months ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
fixing tests
parent
89f34d22
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
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
tests/integration/full/full_test_epi.py
+0
-32
0 additions, 32 deletions
tests/integration/full/full_test_epi.py
with
1 addition
and
33 deletions
.gitlab-ci.yml
+
1
−
1
View file @
6c3d48fc
...
@@ -19,7 +19,7 @@ variables:
...
@@ -19,7 +19,7 @@ variables:
# selected, manually enter the key value pair using the format in this example: CUSTOM_RUN_DATE 20230115"
# selected, manually enter the key value pair using the format in this example: CUSTOM_RUN_DATE 20230115"
CUSTOM_RUN_DATE
:
CUSTOM_RUN_DATE
:
value
:
"
202407
02
"
value
:
"
202407
15
"
description
:
"
Full-fat
tests
will
pull
data
from
the
deployment
environment.
For
robustness,
the
default
option
is
a
description
:
"
Full-fat
tests
will
pull
data
from
the
deployment
environment.
For
robustness,
the
default
option
is
a
pre-selected
date
we
know
works.
To
override
the
default
date,
manually
enter
the
key
value
pair
using
the
format
pre-selected
date
we
know
works.
To
override
the
default
date,
manually
enter
the
key
value
pair
using
the
format
in
this
example
e.g.:
CUSTOM_RUN_DATE
20230115
-
NOTE
THAT
IF
YOU
SELECT
A
CUSTOM
DATE
BEFORE
THE
CURRENT
in
this
example
e.g.:
CUSTOM_RUN_DATE
20230115
-
NOTE
THAT
IF
YOU
SELECT
A
CUSTOM
DATE
BEFORE
THE
CURRENT
...
...
This diff is collapsed.
Click to expand it.
tests/integration/full/full_test_epi.py
+
0
−
32
View file @
6c3d48fc
...
@@ -2,20 +2,15 @@ import copy
...
@@ -2,20 +2,15 @@ import copy
import
os
import
os
import
sys
import
sys
from
ews.coordinator.processor_deposition
import
ProcessorDeposition
from
ews.coordinator.processor_environment
import
ProcessorEnvironment
from
ews.coordinator.processor_epidemiology
import
ProcessorEpidemiology
from
ews.coordinator.processor_epidemiology
import
ProcessorEpidemiology
from
ews.coordinator.utils.processor_utils
import
parse_json_file_with_tokens
from
ews.coordinator.utils.processor_utils
import
parse_json_file_with_tokens
from
integration.partial.integration_test_utils
import
IntegrationTestUtils
from
integration.partial.integration_test_utils
import
IntegrationTestUtils
from
integration.test_suites.depo_test_suite
import
BaseDepoTestSuite
from
integration.test_suites.env_suit_test_suite
import
BaseEnvSuitTestSuite
from
integration.test_suites.epi_test_suite
import
BaseEpiTestSuite
from
integration.test_suites.epi_test_suite
import
BaseEpiTestSuite
class
FullTestEpi
(
BaseEpiTestSuite
.
EpiTestSuite
):
class
FullTestEpi
(
BaseEpiTestSuite
.
EpiTestSuite
):
def
set_expected_values
(
self
):
def
set_expected_values
(
self
):
# nothing to override here
pass
pass
...
@@ -27,7 +22,6 @@ class FullTestEpi(BaseEpiTestSuite.EpiTestSuite):
...
@@ -27,7 +22,6 @@ class FullTestEpi(BaseEpiTestSuite.EpiTestSuite):
or
not
os
.
path
.
exists
(
IntegrationTestUtils
.
TEST_JOB_DIR
):
or
not
os
.
path
.
exists
(
IntegrationTestUtils
.
TEST_JOB_DIR
):
# if True:
# if True:
FullTestEpi
.
write_temp_run_config_files
()
FullTestEpi
.
write_temp_run_config_files
()
# FullTestEpi.run_dependent_pipelines()
FullTestEpi
.
run_epi_pipeline
()
FullTestEpi
.
run_epi_pipeline
()
else
:
else
:
print
(
f
"
output in
{
IntegrationTestUtils
.
TEST_JOB_DIR
}
already written, skipping rerun
"
)
print
(
f
"
output in
{
IntegrationTestUtils
.
TEST_JOB_DIR
}
already written, skipping rerun
"
)
...
@@ -35,16 +29,6 @@ class FullTestEpi(BaseEpiTestSuite.EpiTestSuite):
...
@@ -35,16 +29,6 @@ class FullTestEpi(BaseEpiTestSuite.EpiTestSuite):
@staticmethod
@staticmethod
def
write_temp_run_config_files
():
def
write_temp_run_config_files
():
# default_config = IntegrationTestUtils.DEFAULT_CONFIG_FILE_PATH
# default_config_dict: dict = IntegrationTestUtils.load_json_file(default_config)
# run_dict: dict = copy.deepcopy(default_config_dict)
#
#
# # may be reusing a non-timestamped output file during development, so allow extant TEST_OUT_PATH
# os.makedirs(IntegrationTestUtils.TEST_OUT_PATH, exist_ok = True)
# IntegrationTestUtils.RUN_CONFIG_FILE_PATH = IntegrationTestUtils.TEST_OUT_PATH + "temp_config.json"
# IntegrationTestUtils.write_json_file(run_dict, IntegrationTestUtils.RUN_CONFIG_FILE_PATH)
"""
"""
IntegrationTestUtils.RUN_SYS_CONFIG_FILE_PATH will have been set from the command line args, and point to the
IntegrationTestUtils.RUN_SYS_CONFIG_FILE_PATH will have been set from the command line args, and point to the
production sys config file. We need to modify this file to point to the test output directory.
production sys config file. We need to modify this file to point to the test output directory.
...
@@ -94,22 +78,6 @@ class FullTestEpi(BaseEpiTestSuite.EpiTestSuite):
...
@@ -94,22 +78,6 @@ class FullTestEpi(BaseEpiTestSuite.EpiTestSuite):
IntegrationTestUtils
.
RUN_CONFIG_FILE_PATH
=
job_run_config_file
IntegrationTestUtils
.
RUN_CONFIG_FILE_PATH
=
job_run_config_file
@staticmethod
def
run_dependent_pipelines
():
depo_processor
=
ProcessorDeposition
()
IntegrationTestUtils
.
run_external_pipeline
(
BaseDepoTestSuite
.
DepoTestSuite
.
DEPO_COMPONENT_NAME
,
BaseDepoTestSuite
.
DepoTestSuite
.
DEPO_PROCESSOR_DIR
,
IntegrationTestUtils
.
TEST_START_DATE
,
depo_processor
)
env_processor
=
ProcessorEnvironment
()
IntegrationTestUtils
.
run_external_pipeline
(
BaseEnvSuitTestSuite
.
EnvSuitTestSuite
.
ENV_COMPONENT_NAME
,
BaseEnvSuitTestSuite
.
EnvSuitTestSuite
.
ENV_PROCESSOR_DIR
,
IntegrationTestUtils
.
TEST_START_DATE
,
env_processor
)
pass
@staticmethod
@staticmethod
def
run_epi_pipeline
():
def
run_epi_pipeline
():
epi_processor
=
ProcessorEpidemiology
()
epi_processor
=
ProcessorEpidemiology
()
...
...
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