Mercurial > hg > orthanc
diff UnitTestsSources/RestApiTests.cpp @ 2363:f8ef157f2d73
fix unit tests given www.orthanc-server.com now mandatory uses HTTPS
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Aug 2017 15:04:20 +0200 |
parents | a3a65de1840f |
children | 883387e2b379 |
line wrap: on
line diff
--- a/UnitTestsSources/RestApiTests.cpp Mon Aug 21 13:53:29 2017 +0200 +++ b/UnitTestsSources/RestApiTests.cpp Mon Aug 21 15:04:20 2017 +0200 @@ -66,8 +66,15 @@ ASSERT_FALSE(c.IsVerbose()); #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 + // It is not guaranteed that the URL on server + // "www.montefiore.ulg.ac.be" will work forever. We switched to it, + // as the "www.orthanc-server.com" now mandatory uses HTTPS. + const std::string BASE = "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/"; + //const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; + Json::Value v; - c.SetUrl("http://www.orthanc-server.com/downloads/third-party/Product.json"); + c.SetUrl(BASE + "Product.json"); + c.Apply(v); ASSERT_TRUE(v.type() == Json::objectValue); ASSERT_TRUE(v.isMember("Description"));