ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
20 stars 21 forks source link

Download publication test file during setup_publisher #416

Closed William-Hill closed 6 years ago

William-Hill commented 6 years ago

When running the publication test (esgtest_publish) post-installation, the test expects a test file to live at /esg/data/test/sftlf.nc.

Add a function that downloads the file when running setup_publisher()

sashakames commented 6 years ago

The publication test automatically downloads the file from the mirror, so this isn't needed. Perhaps there was some other issue?

William-Hill commented 6 years ago

@sashakames The problem seems to occur if the test directory (i.e. /esg/data/test) doesn't exist.
The test subdirectory didn't get created on my installation (I just had /esg/data) and I got the following error:

Set up Publication Test Checking write permissions for /esg/data/test/sftlf.nc, user root... [FAIL]

Creating the test subdirectory solved the problem though.

sashakames commented 6 years ago

I think you were on to something here. I think the 2.x installer does create ../test in preparation.

William-Hill commented 6 years ago

I can reopen and add code to the setup_publisher() function to create that directory. Should be an easy fix.