Mercurial > hg > orthanc
comparison UnitTestsSources/LuaTests.cpp @ 4251:6784a119484d Orthanc-0.8.6
hotpatch to make Orthanc 0.8.6 compile on Ubuntu 16.04
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Oct 2020 13:56:50 +0200 |
parents | 6e7e5ed91c2d |
children |
comparison
equal
deleted
inserted
replaced
2757:fef260693d4e | 4251:6784a119484d |
---|---|
241 TEST(Lua, Http) | 241 TEST(Lua, Http) |
242 { | 242 { |
243 Orthanc::LuaContext lua; | 243 Orthanc::LuaContext lua; |
244 | 244 |
245 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 | 245 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 |
246 lua.Execute("JSON = loadstring(HttpGet('http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/JSON.lua')) ()"); | 246 lua.Execute("JSON = loadstring(HttpGet('http://www.orthanc-server.com/downloads/third-party/JSON.lua')) ()"); |
247 const std::string url("http://orthanc.googlecode.com/hg/OrthancCppClient/SharedLibrary/Product.json"); | 247 const std::string url("http://www.orthanc-server.com/downloads/third-party/Product.json"); |
248 #endif | 248 #endif |
249 | 249 |
250 std::string s; | 250 std::string s; |
251 lua.Execute(s, "print(HttpGet({}))"); | 251 lua.Execute(s, "print(HttpGet({}))"); |
252 ASSERT_EQ("ERROR", Orthanc::Toolbox::StripSpaces(s)); | 252 ASSERT_EQ("ERROR", Orthanc::Toolbox::StripSpaces(s)); |