Mercurial > hg > orthanc
comparison UnitTestsSources/RestApiTests.cpp @ 1419:20b4521631e1
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Jun 2015 11:41:03 +0200 |
parents | 6e7e5ed91c2d |
children | f3672356c121 |
comparison
equal
deleted
inserted
replaced
1418:efc448de0899 | 1419:20b4521631e1 |
---|---|
59 c.SetVerbose(false); | 59 c.SetVerbose(false); |
60 ASSERT_FALSE(c.IsVerbose()); | 60 ASSERT_FALSE(c.IsVerbose()); |
61 | 61 |
62 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 | 62 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 |
63 Json::Value v; | 63 Json::Value v; |
64 c.SetUrl("http://orthanc.googlecode.com/hg/Resources/Configuration.json"); | 64 c.SetUrl("http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/Configuration.json"); |
65 c.Apply(v); | 65 c.Apply(v); |
66 ASSERT_TRUE(v.isMember("StorageDirectory")); | 66 ASSERT_TRUE(v.isMember("StorageDirectory")); |
67 //ASSERT_EQ(GetLastStatusText()); | 67 //ASSERT_EQ(GetLastStatusText()); |
68 | 68 |
69 v = Json::nullValue; | 69 v = Json::nullValue; |
70 | 70 |
71 HttpClient cc(c); | 71 HttpClient cc(c); |
72 cc.SetUrl("https://orthanc.googlecode.com/hg/Resources/Configuration.json"); | 72 cc.SetUrl("https://www.montefiore.ulg.ac.be/~jodogne/Orthanc/Configuration.json"); |
73 cc.Apply(v); | 73 cc.Apply(v); |
74 ASSERT_TRUE(v.isMember("LuaScripts")); | 74 ASSERT_TRUE(v.isMember("LuaScripts")); |
75 #endif | 75 #endif |
76 } | 76 } |
77 | 77 |