Elements 6.3.3
A C++ base framework for the Euclid Software.
|
A class to download test data from a data repository prior to the unit test run. More...
#include <DataSync.h>
Public Member Functions | |
DataSync (path connectionFile, path dependencyFile) | |
Initialize the synchronizer with configuration files. | |
void | download () |
Download the test data. | |
void | downloadWithFallback (path connectionFile) |
Download the test data and provide a fallback host in case the primary host fails. | |
path | absolutePath (path relativePath) |
Get the absolute path to a local test file which has been downloaded. |
Private Attributes | |
ConnectionConfiguration | m_connectionConfig |
path | m_distantRoot |
path | m_localRoot |
DependencyConfiguration | m_dependencyConfig |
A class to download test data from a data repository prior to the unit test run.
Refer to the corresponding Redmine project for more details.
Definition at line 47 of file DataSync.h.
Initialize the synchronizer with configuration files.
connectionFile | Path to the connection configuration file relative to the configuration directory. |
dependencyFile | Path to the dependency configuration file relative to the configuration directory. |
Definition at line 33 of file DataSync.cpp.
References m_connectionConfig, m_dependencyConfig, m_distantRoot, and m_localRoot.
Get the absolute path to a local test file which has been downloaded.
The absolute path is the concatenation of:
On LODEEN, the prefix is empty. On CODEEN, it is the job workspace which the user do not know. It can be set by the user through the variable name in the DATASYNC_WORKDIR_VAR or by the WORKSPACE environment variable if the later is empty.
Definition at line 53 of file DataSync.cpp.
References m_localRoot.
void Elements::Services::DataSync::DataSync::download | ( | ) |
Download the test data.
Definition at line 39 of file DataSync.cpp.
References Elements::Services::DataSync::createSynchronizer(), m_connectionConfig, and m_dependencyConfig.
Referenced by downloadWithFallback().
void Elements::Services::DataSync::DataSync::downloadWithFallback | ( | path | connectionFile | ) |
Download the test data and provide a fallback host in case the primary host fails.
connectionFile | Path to the connection configuration file of the fallback host relative to the configuration directory. |
Definition at line 44 of file DataSync.cpp.
References download(), and m_connectionConfig.
|
private |
Definition at line 95 of file DataSync.h.
Referenced by DataSync(), download(), and downloadWithFallback().
|
private |
Definition at line 98 of file DataSync.h.
Referenced by DataSync(), and download().
|
private |
Definition at line 96 of file DataSync.h.
Referenced by DataSync().
|
private |
Definition at line 97 of file DataSync.h.
Referenced by absolutePath(), and DataSync().