Skip to content

Commit

Permalink
Added tests for doi in CatalogInfo. Refs #8538.
Browse files Browse the repository at this point in the history
- Also added missing testing for external download url (IDS).
  • Loading branch information
jawrainey committed Apr 7, 2014
1 parent ecea7bc commit 866ff0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/Framework/Kernel/test/CatalogInfoTest.h
Expand Up @@ -25,6 +25,8 @@ class CatalogInfoTest : public CxxTest::TestSuite
"<facility name=\"ISIS\">"
"<catalog name=\"ICat3Catalog\">"
"<soapendpoint url=\"https://facilities01.esc.rl.ac.uk:443/ICATService/ICAT\"></soapendpoint>"
"<externaldownload url=\"https://isisicatds.stfc.ac.uk/\"></externaldownload>"
"<doiendpoint url=\"https://data4.isis.stfc.ac.uk/doi/DOIService\"></doiendpoint>"
"<filelocation>"
"<prefix regex=\"\\\\\\\\isis\\\\inst\\$\\\\Instruments\\$\"></prefix>"
"<windows replacement=\"\"></windows>"
Expand All @@ -40,6 +42,8 @@ class CatalogInfoTest : public CxxTest::TestSuite

TS_ASSERT_EQUALS( catalogInfo->catalogName(), "ICat3Catalog");
TS_ASSERT_EQUALS( catalogInfo->soapEndPoint(), "https://facilities01.esc.rl.ac.uk:443/ICATService/ICAT");
TS_ASSERT_EQUALS( catalogInfo->externalDownloadURL(), "https://isisicatds.stfc.ac.uk/");
TS_ASSERT_EQUALS( catalogInfo->doiEndPoint(), "https://data4.isis.stfc.ac.uk/doi/DOIService");
// The regex needs escaped in order to work correctly. The output should be same as Facilities.xml (\\\\isis\\inst\$\\Instruments\$)
TS_ASSERT_EQUALS( catalogInfo->catalogPrefix(), "\\\\\\\\isis\\\\inst\\$\\\\Instruments\\$");
TS_ASSERT_EQUALS( catalogInfo->windowsPrefix(), "");
Expand Down

0 comments on commit 866ff0f

Please sign in to comment.