comparison UnitTestsSources/LuaTests.cpp @ 2186:8b51b133bb8b

move of third party downloads to the main server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Nov 2016 12:22:59 +0100
parents 8c506670f3cd
children a3a65de1840f
comparison
equal deleted inserted replaced
2185:d402a80567e6 2186:8b51b133bb8b
285 TEST(Lua, Http) 285 TEST(Lua, Http)
286 { 286 {
287 Orthanc::LuaContext lua; 287 Orthanc::LuaContext lua;
288 288
289 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 289 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1
290 lua.Execute("JSON = loadstring(HttpGet('http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/JSON.lua')) ()"); 290 lua.Execute("JSON = loadstring(HttpGet('http://www.orthanc-server.com/downloads/third-party/JSON.lua')) ()");
291 const std::string url("http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/Product.json"); 291 const std::string url("http://www.orthanc-server.com/downloads/third-party/Product.json");
292 #endif 292 #endif
293 293
294 std::string s; 294 std::string s;
295 lua.Execute(s, "print(HttpGet({}))"); 295 lua.Execute(s, "print(HttpGet({}))");
296 ASSERT_EQ("nil", Orthanc::Toolbox::StripSpaces(s)); 296 ASSERT_EQ("nil", Orthanc::Toolbox::StripSpaces(s));