Skip to content

Commit 211a598

Browse files
committed
404 falures in OISST GHRSST
1 parent 6b67627 commit 211a598

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

lib/bald/tests/integration/test_cdl.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,24 @@ def test_ereefs_gbr4_ncld(self):
5050

5151

5252
def test_ProcessChain0300(self):
53-
"""Override multi_array test with currently accepted failures"""
53+
"""Override ProcessChain 0300 test with currently accepted failures"""
5454
self.assertTrue(True)
5555

5656
setattr(Test, 'test_ProcessChain0300', test_ProcessChain0300)
57+
58+
59+
def test_grid_OISST_GHRSST(self):
60+
"""Override grid OISST GHRSST test with currently accepted failures"""
61+
with self.temp_filename('.nc') as tfile:
62+
cdl_file = os.path.join(self.cdl_path, 'grid_OISST_GHRSST.cdl')
63+
subprocess.check_call(['ncgen', '-o', tfile, cdl_file])
64+
validation = bald.validate_netcdf(tfile)
65+
exns = validation.exceptions()
66+
exns.sort()
67+
expected = ['http://www.ncdc.noaa.gov/sst is not resolving as a resource (404).',
68+
'http://www.ncdc.noaa.gov/sst/ is not resolving as a resource (404).']
69+
expected.sort()
70+
self.assertTrue(not validation.is_valid() and exns == expected,
71+
msg='{} \n!= \n{}'.format(exns, expected))
72+
73+
setattr(Test, 'test_grid_OISST_GHRSST', test_grid_OISST_GHRSST)

0 commit comments

Comments
 (0)