Mercurial > hg > orthanc
comparison UnitTestsSources/LuaTests.cpp @ 2386:883387e2b379
remove dependendy upon ULg Montefiore Web server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Aug 2017 09:15:06 +0200 |
parents | f8ef157f2d73 |
children | 878b59270859 |
comparison
equal
deleted
inserted
replaced
2384:74d0953a3681 | 2386:883387e2b379 |
---|---|
286 TEST(Lua, Http) | 286 TEST(Lua, Http) |
287 { | 287 { |
288 Orthanc::LuaContext lua; | 288 Orthanc::LuaContext lua; |
289 | 289 |
290 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 | 290 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 |
291 // It is not guaranteed that the URL on server | 291 // The "http://www.orthanc-server.com/downloads/third-party/" does |
292 // "www.montefiore.ulg.ac.be" will work forever. We switched to it, | 292 // not automatically redirect to HTTPS, so we cas use it even if the |
293 // as the "www.orthanc-server.com" now mandatory uses HTTPS. | 293 // OpenSSL/HTTPS support is disabled in curl |
294 const std::string BASE = "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/"; | 294 const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; |
295 //const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; | |
296 | 295 |
297 lua.Execute("JSON = loadstring(HttpGet('" + BASE + "JSON.lua')) ()"); | 296 lua.Execute("JSON = loadstring(HttpGet('" + BASE + "JSON.lua')) ()"); |
298 const std::string url(BASE + "Product.json"); | 297 const std::string url(BASE + "Product.json"); |
299 #endif | 298 #endif |
300 | 299 |