def move_to_tmp_incoming(netcdf_path): # [org_filename withouth creation date].[md5].nc to have unique filename in new_filename = '%s.%s.nc' % (os.path.splitext(os.path.basename(remove_end_date_from_filename(netcdf_path)))[0], md5(netcdf_path)) os.chmod(netcdf_path, 0664) # change to 664 for pipeline v2 shutil.move(netcdf_path, os.path.join(TMP_MANIFEST_DIR, new_filename))
def move_to_tmp_incoming(netcdf_path): # [org_filename withouth creation date].[md5].nc to have unique filename in new_filename = '%s.%s.nc' % (os.path.splitext( os.path.basename( remove_end_date_from_filename(netcdf_path)))[0], md5(netcdf_path)) os.chmod(netcdf_path, 0o0664) # change to 664 for pipeline v2 shutil.move(netcdf_path, os.path.join(TMP_MANIFEST_DIR, new_filename))
def test_aims_validation(self): if sys.version_info[0] < 3: self.md5_expected_value = '76c9a595264a8173545b6dc0c518a280' else: self.md5_expected_value = '96c025179afcfcfd0f105473332719f0' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): if sys.version_info[0] < 3: self.md5_expected_value = '20eeb53140d06e9cbea7e941caa108b5' else: self.md5_expected_value = '67f116b43dd8592373fb94438e619d93' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): if sys.version_info[0] < 3: self.md5_expected_value = '18770178cd71c228e8b59ccba3c7b8b5' else: self.md5_expected_value = '2cc22593a87186d992090cc138f5daa8' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): if sys.version_info[0] < 3: self.md5_expected_value = '76c9a595264a8173545b6dc0c518a280' else: self.md5_expected_value = '49a861285f98026f695e9fa43db42a07' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): if sys.version_info[0] < 3: self.md5_expected_value = '18770178cd71c228e8b59ccba3c7b8b5' else: self.md5_expected_value = '3464ee1a8bcd600645b6cdb7516fd9e4' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): self.md5_expected_value = '18770178cd71c228e8b59ccba3c7b8b5' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): self.md5_expected_value = '20eeb53140d06e9cbea7e941caa108b5' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)
def test_aims_validation(self): self.md5_expected_value = '2c354af05e56f3999fcfa3dda7bc8035' self.md5_netcdf_value = md5(self.netcdf_tmp_file_path) self.assertEqual(self.md5_netcdf_value, self.md5_expected_value)