Skip to content

Commit

Permalink
refactor: rename test_database_config.yaml to database_config.yaml in…
Browse files Browse the repository at this point in the history
… exampleDataset
  • Loading branch information
Taepper authored and fengelniederhammer committed Aug 9, 2023
1 parent b9ff422 commit 7e81f8a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/silo/config/database_config.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ INSTANTIATE_TEST_SUITE_P(
TEST(DatabaseConfigReader, shouldReadConfigWithCorrectParameters) {
DatabaseConfig config;
ASSERT_NO_THROW(
config =
DatabaseConfigReader().readConfig("testBaseData/exampleDataset/test_database_config.yaml")
config = DatabaseConfigReader().readConfig("testBaseData/test_database_config.yaml")
);

ASSERT_EQ(config.schema.instance_name, "sars_cov-2_minimal_test_config");
Expand Down
2 changes: 1 addition & 1 deletion src/silo/database.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ silo::Database buildTestDatabase() {
.mergeValuesFromOrDefault(silo::preprocessing::OptionalPreprocessingConfig());

const auto database_config = silo::config::ConfigRepository().getValidatedConfig(
input_directory.directory + "test_database_config.yaml"
input_directory.directory + "database_config.yaml"
);

return silo::Database::preprocessing(config, database_config);
Expand Down
29 changes: 29 additions & 0 deletions testBaseData/test_database_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
schema:
instanceName: sars_cov-2_minimal_test_config
metadata:
- name: gisaid_epi_isl
type: string
- name: date
type: date
- name: unsorted_date
type: date
- name: region
type: string
generateIndex: true
- name: country
type: string
generateIndex: true
- name: pango_lineage
type: pango_lineage
- name: division
type: string
generateIndex: true
- name: age
type: int
- name: qc_value
type: float
- name: insertions
type: insertion
primaryKey: gisaid_epi_isl
dateToSortBy: date
partitionBy: pango_lineage

0 comments on commit 7e81f8a

Please sign in to comment.