comparison UnitTestsSources/RestApiTests.cpp @ 3853:ba53d51ffa9a

leaving bitbucket
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 Apr 2020 18:13:31 +0200
parents 94f4a18a79cc
children f9863630ec7f
comparison
equal deleted inserted replaced
3852:ee0a1211419f 3853:ba53d51ffa9a
119 }*/ 119 }*/
120 120
121 HttpClient c; 121 HttpClient c;
122 c.SetHttpsVerifyPeers(true); 122 c.SetHttpsVerifyPeers(true);
123 c.SetHttpsCACertificates("UnitTestsResults/bitbucket.cert"); 123 c.SetHttpsCACertificates("UnitTestsResults/bitbucket.cert");
124 c.SetUrl("https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-0.9.3/Resources/Configuration.json"); 124
125 // Test file modified on 2020-04-20, in order to use a git
126 // repository on BitBucket instead of a Mercurial repository
127 // (because Mercurial support disappears on 2020-05-31)
128 c.SetUrl("https://bitbucket.org/osimis/orthanc-setup-samples/raw/master/docker/serve-folders/orthanc/serve-folders.json");
125 129
126 Json::Value v; 130 Json::Value v;
127 c.Apply(v); 131 c.Apply(v);
128 ASSERT_TRUE(v.isMember("LuaScripts")); 132 ASSERT_TRUE(v.isMember("ServeFolders"));
129 } 133 }
130 134
131 TEST(HttpClient, SslNoVerification) 135 TEST(HttpClient, SslNoVerification)
132 { 136 {
133 HttpClient c; 137 HttpClient c;
134 c.SetHttpsVerifyPeers(false); 138 c.SetHttpsVerifyPeers(false);
135 c.SetUrl("https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-0.9.3/Resources/Configuration.json"); 139 c.SetUrl("https://bitbucket.org/osimis/orthanc-setup-samples/raw/master/docker/serve-folders/orthanc/serve-folders.json");
136 140
137 Json::Value v; 141 Json::Value v;
138 c.Apply(v); 142 c.Apply(v);
139 ASSERT_TRUE(v.isMember("LuaScripts")); 143 ASSERT_TRUE(v.isMember("ServeFolders"));
140 } 144 }
141 145
142 #endif 146 #endif
143 147
144 148