diff --git a/METdbLoad/test/data/vsdb/gfs_20140802.vsdb b/METdbLoad/test/data/vsdb/gfs_20140802.vsdb new file mode 100644 index 0000000..ad13560 --- /dev/null +++ b/METdbLoad/test/data/vsdb/gfs_20140802.vsdb @@ -0,0 +1,24 @@ +V01 GFS 45 2014080221 STAGE2 G218/LMV FHO>.50 APCP/03 SFC = 5789 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/APL FHO>.50 APCP/03 SFC = 2814 0.00000 0.00000 0.00249 +V01 GFS 45 2014080221 STAGE2 G218/NEC FHO>.50 APCP/03 SFC = 3052 0.00197 0.00000 0.00229 +V01 GFS 45 2014080221 STAGE2 G218/SEC FHO>.50 APCP/03 SFC = 3524 0.03490 0.00028 0.00738 +V01 GFS 45 2014080221 STAGE2 G218/GMC FHO>.50 APCP/03 SFC = 3524 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE4 G218/RFC FHO>.50 APCP/03 SFC = 60582 0.00213 0.00002 0.00271 +V01 GFS 45 2014080221 STAGE2 G218/NWC FHO>.75 APCP/03 SFC = 2556 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/SWC FHO>.75 APCP/03 SFC = 1422 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/NMT FHO>.75 APCP/03 SFC = 6251 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/GRB FHO>.75 APCP/03 SFC = 3400 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/SMT FHO>.75 APCP/03 SFC = 3802 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/SPL FHO>1.0 APCP/03 SFC = 5484 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/MDW FHO>1.0 APCP/03 SFC = 10240 0.00000 0.00000 0.00283 +V01 GFS 45 2014080221 STAGE2 G218/LMV FHO>1.0 APCP/03 SFC = 5789 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/APL FHO>1.0 APCP/03 SFC = 2814 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/NEC FHO>1.0 APCP/03 SFC = 3052 0.00000 0.00000 0.00033 +V01 GFS 45 2014080221 STAGE2 G218/SEC FHO>1.0 APCP/03 SFC = 3524 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE2 G218/GMC FHO>1.0 APCP/03 SFC = 3524 0.00000 0.00000 0.00000 +V01 GFS 45 2014080221 STAGE4 G218/RFC FHO>1.0 APCP/03 SFC = 60582 0.00000 0.00000 0.00050 +V01 GFS 45 2014080221 STAGE2 G218/NWC SL1L2 APCP/03 SFC= 2556 0.2401E-01 0.6913E-01 0.0000E+00 0.4112E-01 0.1017E+00 +V01 GFS 45 2014080221 STAGE2 G218/SWC SL1L2 APCP/03 SFC= 1422 0.7749E-01 0.2632E+00 0.2126E-01 0.1783E+00 0.8898E+00 +V01 GFS 45 2014080221 STAGE2 G218/NMT SL1L2 APCP/03 SFC= 6251 0.6989E-01 0.3756E-01 0.1510E-02 0.1398E+00 0.6695E-01 +V01 GFS 45 2014080221 STAGE2 G218/GRB SL1L2 APCP/03 SFC= 3400 0.1266E-01 0.4206E-02 0.1994E-04 0.1205E-01 0.3085E-02 +V01 GFS 45 2014080221 STAGE2 G218/SMT SL1L2 APCP/03 SFC= 3802 0.6522E+00 0.2165E+00 0.4879E+00 0.1883E+01 0.7141E+00 \ No newline at end of file diff --git a/METdbLoad/test/test_met_db_load.py b/METdbLoad/test/test_met_db_load.py index 86e4a4c..289da2f 100644 --- a/METdbLoad/test/test_met_db_load.py +++ b/METdbLoad/test/test_met_db_load.py @@ -11,6 +11,7 @@ MTD_DATA_DIR, MODE_DATA_DIR, TCDIAG_DATA_DIR, + VSDB_DATA_DIR, ) @@ -92,6 +93,14 @@ def assert_count_rows(cur, table, expected_count): "mode_obj_single": 6, }, ), + ( + VSDB_DATA_DIR, + "vsdb", + { + "line_data_ctc": 19, + "line_data_sl1l2": 5, + }, + ), ], ) def test_met_db_table_counts( diff --git a/METdbLoad/test/utils.py b/METdbLoad/test/utils.py index d070837..9299eac 100644 --- a/METdbLoad/test/utils.py +++ b/METdbLoad/test/utils.py @@ -18,6 +18,8 @@ def abs_path(rel_path): MTD_DATA_DIR = abs_path("METdbLoad/test/data/mtd/") MODE_DATA_DIR = abs_path("METdbLoad/test/data/mode/") +# Very small data sample for testing +VSDB_DATA_DIR = abs_path("METdbLoad/test/data/vsdb/") DEFAULT_LOAD_FLAGS = { "stat_header_db_check": "true",