comparison OrthancFramework/UnitTestsSources/RestApiTests.cpp @ 5432:59e3b6f8c5be

migration to UCLouvain servers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 Nov 2023 18:16:31 +0100
parents cb11e5ced4e3
children 48b8dae6dc77
comparison
equal deleted inserted replaced
5431:4be5f117aa0d 5432:59e3b6f8c5be
526 ASSERT_EQ(1u, h.GetParameters().size()); 526 ASSERT_EQ(1u, h.GetParameters().size());
527 ASSERT_EQ("0.5", h.GetParameters() ["q"]); 527 ASSERT_EQ("0.5", h.GetParameters() ["q"]);
528 } 528 }
529 529
530 // Below are the tests from issue 216: 530 // Below are the tests from issue 216:
531 // https://bugs.orthanc-server.com/show_bug.cgi?id=216 531 // https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=216
532 532
533 { 533 {
534 HttpContentNegociation d; 534 HttpContentNegociation d;
535 d.Register("application/dicom+json", h); 535 d.Register("application/dicom+json", h);
536 ASSERT_TRUE(d.Apply("image/webp, */*;q=0.8, text/html, application/xhtml+xml, application/xml;q=0.9")); 536 ASSERT_TRUE(d.Apply("image/webp, */*;q=0.8, text/html, application/xhtml+xml, application/xml;q=0.9"));
1111 } 1111 }
1112 1112
1113 1113
1114 TEST(MultipartStreamReader, Issue190) 1114 TEST(MultipartStreamReader, Issue190)
1115 { 1115 {
1116 // https://bugs.orthanc-server.com/show_bug.cgi?id=190 1116 // https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=190
1117 // https://hg.orthanc-server.com/orthanc-dicomweb/rev/6dc2f79b5579 1117 // https://orthanc.uclouvain.be/hg/orthanc-dicomweb/rev/6dc2f79b5579
1118 1118
1119 std::map<std::string, std::string> headers; 1119 std::map<std::string, std::string> headers;
1120 headers["content-type"] = "multipart/related; type=application/dicom; boundary=0f3cf5c0-70e0-41ef-baef-c6f9f65ec3e1"; 1120 headers["content-type"] = "multipart/related; type=application/dicom; boundary=0f3cf5c0-70e0-41ef-baef-c6f9f65ec3e1";
1121 1121
1122 { 1122 {
1321 1321
1322 #include "../Sources/HttpServer/HttpServer.h" 1322 #include "../Sources/HttpServer/HttpServer.h"
1323 1323
1324 TEST(HttpClient, DISABLED_Issue156_Slow) 1324 TEST(HttpClient, DISABLED_Issue156_Slow)
1325 { 1325 {
1326 // https://bugs.orthanc-server.com/show_bug.cgi?id=156 1326 // https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=156
1327 1327
1328 TotoServer handler; 1328 TotoServer handler;
1329 HttpServer server; 1329 HttpServer server;
1330 server.SetPortNumber(5000); 1330 server.SetPortNumber(5000);
1331 server.Register(handler); 1331 server.Register(handler);