summaryrefslogtreecommitdiff
path: root/tests/server-test.c
Commit message (Collapse)AuthorAgeFilesLines
* server: close http/2 connection after io error or goaway receivedCarlos Garcia Campos2022-11-101-0/+13
|
* server: do not leak idle connections closed by the clientCarlos Garcia Campos2022-11-081-0/+29
|
* server-test: ensure we unpause the message from the server threadCarlos Garcia Campos2022-08-121-1/+3
|
* server: deprecate soup_server_message_pause/unpause methodsCarlos Garcia Campos2022-08-121-7/+5
| | | | | They don't use the server at all, they just call soup_server_message_pause/unpause, so we can make them public instead.
* test: add test about invalid percent encoding pathsIgnacio Casal Quinteiro2022-01-311-0/+24
|
* message: rename options-ping property as is-options-pingCarlos Garcia Campos2021-03-291-10/+6
| | | | And add public getter, setter and constructor.
* Make soup_message_set_http_version() privatePatrick Griffis2021-03-251-0/+1
|
* Stop using emacs indent-tabs-modeCarlos Garcia Campos2021-03-181-1/+1
| | | | We prefer spaces now instead of tabs.
* Use g_memory_output_stream_new_resizable()Patrick Griffis2021-03-051-1/+1
|
* session: add soup_session_send_and_read APIscarlosgc/send_and_readCarlos Garcia Campos2021-03-031-3/+3
| | | | | | This is convenient API to send a message and read its body into a GBytes. This should replace the basic APIs since it covers the same use case, but using a SoupMessage instead of a URI and with ore flexibility.
* Remove http and https aliases supportCarlos Garcia Campos2021-02-111-104/+0
| | | | | It doesn't seem to be used. If needed we can just bring it back in the future.
* tests: Use TAP format for all outputPatrick Griffis2020-12-181-2/+2
|
* Update soup.h removing private headersPatrick Griffis2020-12-011-0/+1
|
* Support running tests without ipv6Patrick Griffis2020-11-261-23/+6
|
* tests: Add convenient soup_test_assert_handled_by()Philip Chimento2020-11-211-10/+3
| | | | | | This code is repeated a few times, so move it into a macro similar to soup_test_assert_message_status(). This macro will be used a few more times in a subsequent commit.
* Stop using soup_session_cancel_message() in testsCarlos Garcia Campos2020-11-151-8/+8
|
* Remove non-HTTP SoupStatus valuesCarlos Garcia Campos2020-11-151-8/+8
| | | | | Stop using the message status for internal or transport errors and always use GError for those.
* Restore ability to send/recv `OPTIONS *` messagesPatrick Griffis2020-11-141-8/+10
| | | | | Since GUri does not support an invalid path of just `*` we have to handle that ourselves.
* Replace SoupURI with GUriPatrick Griffis2020-11-141-64/+66
|
* Remove type argument from soup_test_session_new()Patrick Griffis2020-11-061-13/+12
|
* Make SoupMessage a private and final typePatrick Griffis2020-10-281-5/+5
|
* Remove property aliasesPatrick Griffis2020-10-281-3/+3
| | | | | | | | | | | This was an oddity of libsoup that no other GObject library does. The downsides are mostly that tooling doesn't expect it so its easy to not document them or not define them and developers don't expect them so they don't realize the defines are just property names or search codebases for one but miss the other. It just doesn't follow convention.
* Split SoupMessage into client and server partscarlosgc/split-ioCarlos Garcia Campos2020-10-191-82/+106
| | | | Add SoupServerMessage and move there all the server only functionality.
* server-test: Fix crash on cleanupPatrick Griffis2020-10-081-1/+0
| | | | index doesn't transfer ownership and shouldn't be unrefed
* server-test: Handle do_fd_import_test() being flakyPatrick Griffis2020-10-081-4/+2
|
* Stop using soup_message_set_requestCarlos Garcia Campos2020-10-081-1/+2
| | | | | Use soup_message_set_request_body() or soup_message_set_request_body_from_bytes() instead.
* tests: stop using soup_session_send_message in testsCarlos Garcia Campos2020-09-301-21/+26
| | | | | Except for a few tests that seem to be testing the old API that we will remove once the old api is gone.
* tests: stop using soup_session_queue_message in testsCarlos Garcia Campos2020-09-301-10/+24
| | | | | Except for a few tests that seem to be testing the old API that we will remove once the old api is gone.
* Replace SoupBuffer with GBytesPatrick Griffis2020-09-191-7/+5
|
* Rename soup_client_context_get_gsocket to soup_client_context_get_socketPatrick Griffis2020-09-191-1/+1
|
* Delete SoupSocket::fd and all fd exposing APIsPatrick Griffis2020-09-191-1/+1
|
* tests: More removal of deprecated async sessionPatrick Griffis2020-09-191-14/+14
|
* Remove deprecated SoupSessionAsync usagePatrick Griffis2020-09-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | connection-test: Remove all deprecated session usage misc-test: Remove sync session usage no-ssl-test: Remove deprecated session usage proxy-test: Remove deprecated session usage resource-test: Remove deprecated session usage redirect-tests: Remove deprecated session usage xmlrpc-test: Remove deprecated session usage timeout-test: Remove sync session usage ssl-test: Remove deprecated session usage session-test: Remove deprecated session usage server-test: Remove sync session usage
* Remove deprecated proxy APIsPatrick Griffis2020-09-191-3/+9
|
* SoupServer: fix to not allow smuggling ".." into pathIgnacio Casal Quinteiro2019-09-111-0/+66
| | | | | This was already fixed for Unix like systems but it was still possible to smuggle .. into a windows like server.
* Don't use C++ comments as libsoup uses C89Tomas Popela2017-11-161-1/+1
|
* tests: fix when building without glib-networking availableDan Winship2015-03-031-1/+3
| | | | | | At some point soup_test_session_new() got broken so that it would always fail if TLS wasn't availble. Fix that. Also fix two tests in server-test that would crash when TLS wasn't available.
* tests: plug leaks, update libsoup.suppDan Winship2015-03-021-2/+7
|
* soup-server: add soup_client_context_steal_connection()Dan Winship2015-03-011-0/+249
| | | | | | | Add a method to allow a SoupServer handler to steal the connection from the server, and use this in simple-proxy to implement CONNECT. Incorporates a patch from Lionel Landwerlin.
* soup-server: add "early" handlersDan Winship2015-03-011-0/+205
| | | | | | | Add soup_server_add_early_handler(), for registering handlers to be run from got-headers rather than got-body. https://bugzilla.gnome.org/show_bug.cgi?id=625645
* tests: rewrite server-test a bitDan Winship2015-03-011-100/+117
| | | | | Use setup/teardown functions rather than leaving a single SoupServer running for the whole test.
* soup-server: fix return status on server errorDan Winship2015-03-011-0/+97
| | | | | | | If a handler is called, but does not set msg->status_code, return "500 Internal Server Error". Add tests for this and for the automatic 404 case.
* tests: add /server/accept/iostreamMarc-André Lureau2015-02-211-0/+139
| | | | | | This new test shows how soup_server_accept_iostream() can be used. https://bugzilla.gnome.org/show_bug.cgi?id=744186
* tests: fix small leaks in server-testMarc-André Lureau2015-02-211-0/+2
| | | | Pushed as trivial without review.
* tests: port old tests to new SoupServer APIs, add some new testsDan Winship2014-05-021-26/+334
|
* tests: use g_test_bug() to annotate test casesDan Winship2014-03-151-0/+8
|
* tests: remove debug_printf()s that are redundant with test namesDan Winship2014-03-151-8/+0
|
* tests: initial port to the gtestutils frameworkDan Winship2014-02-081-78/+30
| | | | | Some programs need to be split up into more tests, and the debug output is mostly not updated for the new format.
* SoupServer: add :http-aliases and :https-aliases propertiesDan Winship2013-08-261-2/+128
| | | | | | | | | Add :http-aliases and :https-aliases properties to SoupServer, to allow it to handle requests like: GET daap://host:port/path HTTP/1.1 https://bugzilla.gnome.org/show_bug.cgi?id=703694
* server-test: split SoupServer-specific tests out of misc-testDan Winship2013-08-261-0/+251