comparison UnitTestsSources/RestApiTests.cpp @ 1533:0011cc99443c

improving HTTPS support
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Aug 2015 17:52:10 +0200
parents b5eb5210af91
children 95b3b0260240
comparison
equal deleted inserted replaced
1532:b5eb5210af91 1533:0011cc99443c
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://www.montefiore.ulg.ac.be/~jodogne/Orthanc/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());
68 #endif 67 #endif
69 } 68 }
70 69
71 70
72 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 71 #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1
73 TEST(HttpClient, DISABLED_Ssl) 72 TEST(HttpClient, Ssl)
74 { 73 {
75 HttpClient c; 74 HttpClient c;
76 c.SetUrl("https://www.montefiore.ulg.ac.be/~jodogne/Orthanc/Configuration.json"); 75 c.SetUrl("https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-0.9.3/Resources/Configuration.json");
77 76
78 Json::Value v; 77 std::string s;
78 c.Apply(s);
79
80 /*Json::Value v;
79 c.Apply(v); 81 c.Apply(v);
80 ASSERT_TRUE(v.isMember("LuaScripts")); 82 ASSERT_TRUE(v.isMember("LuaScripts"));*/
81 } 83 }
82 #endif 84 #endif
83 85
84 86
85 TEST(RestApi, ChunkedBuffer) 87 TEST(RestApi, ChunkedBuffer)