aboutsummaryrefslogtreecommitdiffstats
path: root/extras
AgeCommit message (Collapse)AuthorFilesLines
3 dayshs-test: shutdown VPP cleanly when finishing a testcaseSemir Sionek5-3/+25
Good practice in general, but especially helpful when SIGKILL'd VPP can't write out coverage data. Type: fix Change-Id: I7e7261b6f2e63fd4a6b24a3832c32800c71493c2 Signed-off-by: Semir Sionek <ssionek@cisco.com>
4 dayshttp: http_transport_connect TLS supportMatus Fabian1-1/+20
enable HTTPS for client apps Type: improvement Change-Id: I2ca8b926771a350863cca81729102faf6ee9c874 Signed-off-by: Matus Fabian <matfabia@cisco.com>
10 daysmisc: add and consolidate host stack scriptsFlorin Coras21-0/+638
Move all existing host stack scripts under extras/scripts/host-stack Also add scripts for iperf/vcl performance testing Type: improvement Change-Id: Ia79b6bd061db49f61a0e4c6577cf45afe0323eb1 Signed-off-by: Florin Coras <fcoras@cisco.com>
11 dayssession: uri parsing improvementsAdrian Villin1-13/+12
- It is now possible to use "proto://ip4:port/target" or "proto://[ip6]:port/target" format. - Updated http_client and related tests to use the new format Type: improvement Change-Id: Ic6afd8c66eddca2ab1d7afc034e193441c34f8ee Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-02-27hs-test: make docker cache dir multi-user friendlyMatus Fabian1-0/+6
Type: test Change-Id: Ib569a48b61e337e3a1bef5ba5b37d10e3322c44a Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-02-27hs-test: create docker buildx with proxyMatus Fabian1-1/+1
Type: test Change-Id: If887916bc540a51747e342a76edc2f37d54e6b0f Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-02-27hs-test: fix make install-depsMatus Fabian1-4/+4
run apt-get commands with sudo Type: test Change-Id: I1044be65a21bd8a830c11f53239accf2cf86c33d Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-02-25http_static: squash subsequent forward slashes in request target pathSemir Sionek1-2/+25
In the file handler, squash groups of forward slashes during path sanitation to minify the risk of running out of memory. Type: fix Change-Id: Ic29d691f876b891ff588157851334162b4e3c5e3 Signed-off-by: Semir Sionek <ssionek@cisco.com>
2025-02-20libmemif: Fixed strlcpy symbol detection.Alexander Slesarev5-14/+14
Type: fix libmemif can't be compiled with the modern glibc (since 2.38) and musl as they include strlcpy for _GNU_SOURCE by default now. The change introduced: - proper symbol detection for both strlcpy and memfd_create; - bumped CMake version requirements due to soon-to-be failed compilation for very old version; - fixed Unity compilation on the modern compilers (it has warnings, but compiled with `-Werror`). Change-Id: I48f9c410aa5405174dc6b65e9c9001e8b11ba276 Signed-off-by: Alexander Slesarev <aslesare@cisco.com>
2025-02-12build: fix broken HST gcov buildAdrian Villin2-8/+25
- also added a "NO_COLOR" option for HS tests - http coverage is not generated for now Type: make Change-Id: Ib58672ae6035fda01efee933ebf35a1dd48e8afa Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-02-11hsa: http client parallel sessionsAdrian Villin3-52/+90
- client is now able to use multiple workers to send requests (sometimes it uses multiple sessions on a single worker) Type: feature Change-Id: I2d83d47a9768011b3d8d05ed320852606841e4b8 Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-02-10hs-test: option to skip tests using cli argsAdrian Villin2-3/+13
Type: test Change-Id: Ic0fd117c53a3547cebfca38d089b5ba3f79cca28 Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-02-06hs-test: fix numa node core retrievalSemir Sionek1-10/+16
In CpuAllocator, the default assumption of two node core ranges seems to not be fully correct. Added handling of multiple ranges and singular cores. Type: fix Change-Id: Id50147c5360baa4035fcd87e3717b0d6c9ea7e5f Signed-off-by: Semir Sionek <ssionek@cisco.com>
2025-02-05hs-test: fix vppConnectUdpStressLoad panicMatus Fabian1-1/+1
Type: test Change-Id: Id5573d4e1a9216297046db33be887ebfa343fa28 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-02-04build: check cmake3 command silentlyNicolas PLANEL1-1/+1
Avoid which shell command to output verbose errors like """ which: no cmake3 in (/usr/sbin:/sbin:/bin: ... """ Type: make Change-Id: Ib9a5fee72055b80b5e4e4c73280b19fea736c352 Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2025-01-31hs-test: fixed incorrect exit statusAdrian Villin1-12/+27
Type: fix Change-Id: Icabe556448ad7109f4802ad48a701667911652de Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-01-30hs-test: fix broken testMatus Fabian1-2/+2
AssertContains and AssertNotContains are now case insensitive to prevent issues like in HttpPersistentConnectionTest. Type: test Change-Id: Ic52e3fa5a7d1d5cb8486e86aa39a845cbd911d94 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-01-23http_static: introduce max-body-size parameterSemir Sionek1-2/+21
Introduce the max-body-size parameter to put a limit on how big of a POST request can the static server take (and how big of a memory allocation that causes). Type: improvement Change-Id: I93cdeaf38dabe2850665e92bedbaa0545c375214 Signed-off-by: Semir Sionek <ssionek@cisco.com>
2025-01-23build: add golang checkstyle for hs-test to ci checkstyle-test targetDave Wallace1-6/+6
- Ensure extras/hs-test code is verified for style compliance in the vpp-checkstyle-verify-*-*-* ci jobs Type: make Change-Id: If3900cbc028f0bd38b14fb9dd08841e21fec15da Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2025-01-21http: target parsing improvementMatus Fabian3-3/+91
Make it http version neutral, since h2 and h3 use 3 pseudo-headers. Added scheme, target_authority_offset and target_authority_len to http_msg_data_t, target_form removed. Http transport now validate if correct form of request target is received, so now we are also able to receive requests with absolute-form target in server apps like http_static. As bonus, unformat is not longer used to parse IP addresses. Type: improvement Change-Id: I369f77e2639c43cc1244d91f883c526eb88af63e Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-01-17hs-test: temporarily skip VppEchoQuicTestAdrian Villin1-0/+1
Type: test Change-Id: I06937c491303dfe2f0b2e847d05a4220c14e83e0 Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-01-09hs-test: http tps test with tlsMatus Fabian1-1/+21
Type: test Change-Id: I0b4044c2924855f4be03c301f75e6a3e31aa29a9 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-01-09hs-test: fix skipping docker image buildingAdrian Villin1-11/+11
- building docker images will now be properly skipped Type: test Change-Id: I57ae71814bdf5eefaac16472dfb56e86564219e6 Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-01-09hs-test: copy vpp-data to docker images lastAdrian Villin2-3/+6
Type: test Change-Id: I773321d21c75e081fa54fae1d9862b4bc75e3794 Signed-off-by: Adrian Villin <avillin@cisco.com>
2025-01-09hsa: proxying UDP in HTTP/1.1Matus Fabian6-17/+446
Type: feature Change-Id: Ic0ff9b9bfbad9fbc602fbcec0d8906cd21d63a2c Signed-off-by: Matus Fabian <matfabia@cisco.com>
2025-01-07hs-test: cleanup nsim testFlorin Coras1-6/+0
After nsim fixes in gerrit 42052 echo tests with nsim should be stable with multiple workers and should no longer require a ping to work. Type: improvement Change-Id: Ice4b353153c57b547df60d21723fa8cf953ca5d0 Signed-off-by: Florin Coras <fcoras@cisco.com>
2024-12-30session: proxy session migration fixMatus Fabian2-2/+30
Type: fix Change-Id: I487ee4e69d8885f46d7a4af2c66a710da66108c5 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-22hs-test: vpp connect proxy stress testsMatus Fabian2-2/+190
Type: test Change-Id: Ie0b4e2d5f6d8ac19e86599f5f9ecbb642c3027ea Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-21hs-test: rebuild images when switching build typeMatus Fabian2-4/+5
Rebuild hst docker images when the previous test run had different vpp build type, e.g. 1) make test 2) make tes-debug Type: test Change-Id: If3a6f11f4f50bbfa88ef3808f98dcba3ab61d348 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-21hs-test: display vpp version in the summaryMatus Fabian2-0/+15
Display output of 'show version verbose' from vpp in the summary report at the end of a test run. Type: test Change-Id: Iae3d886dd4106678b60389ec42ba42a159940403 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-18hs-test: fix readCpusMatus Fabian1-2/+5
return error otherwise hst might panic Type: test Change-Id: Ib3ec8a2113af4594f2c2fc54ae72e358bfadaef2 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-13hs-test: always build when running 'make build'Adrian Villin2-10/+16
- running 'make build' will now always build docker images, 'make test' will try to skip building them unless FORCE_BUILD=true - now also checking ubuntu version Type: make Change-Id: Ie16e8dc4712963de19e2450e058b867c1cede7ee Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-12hs-test: skip building images if no new changesAdrian Villin1-0/+20
- skip building if new changes are .go, .sum, .mod, .txt, .test, IP address files or dotfiles Type: test Change-Id: Ib041a077fa34120e86ebb43cd19e50142ef01f16 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-12hs-test: update docs, makefile, maintainersAdrian Villin3-16/+29
- don't run 'make list-tests' after 'make help' Type: docs Change-Id: I1b2ae02faf53b072b96c91f2e1fead52128f4710 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-12hs-test: added a test counter and time elapsedAdrian Villin1-0/+14
- only works when not running in parallel Type: test Change-Id: Iab9881f8a2a93c6ef5129742e3c0ad950f9e5328 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-12hs-test: fix a runtime errorAdrian Villin1-2/+6
- framework panicked if core_pattern was set to "core" Type: test Change-Id: I14211cc59779090a61e6e08a18d16fd7399b2bed Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-11hs-test: fix nginx http3 dockerfileAdrian Villin1-1/+1
- now working with UBUNTU_VERSION=24.04 Type: test Change-Id: I60aa62b8dcf3e96392af7179925e0f0fa3e15f11 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-11hs-test: replaced container/interface getter funcAdrian Villin22-374/+378
- replaced s.GetContainerByName("xyz") with s.Containers.Xyz in tests and suites - same thing for interfaces - each suite has its own structs with containers/interfaces - structs are initialized in SetupSuite Type: test Change-Id: I5bd99605b40921b7b8c844e8650f6fb0915e9e99 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-10hs-test: added multi-threaded proxy testsAdrian Villin8-52/+176
- TCP and UDP iperf proxy tests added Type: test Change-Id: Ic6f429cc6d48388ce9a17f8b9cd7c4b54b9a7e4d Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-10hs-test: skip vppctl assert on teardownAdrian Villin1-1/+18
- core dump check would get skipped if vpp crashed and vppctl was called on teardown Type: test Change-Id: I9dda7036042158332c8ec815f6eb4bb3c2f7000f Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-10http: fix http_free_header_tableMatus Fabian1-0/+10
Type: fix Change-Id: I014aebc84d0c219cc0c99120e9cd51fcc520a41c Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-10http: connection upgrade mechanismMatus Fabian2-9/+65
Handle "Connection" and "Upgrade" headers in http transport layer which are used to create a tunnel for some other protocol on the same connection. Type: improvement Change-Id: Icf5479f36fbcc7259b157eaad957211be5ea2aae Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-10hs-test: arm supportMatus Fabian13-23/+44
CPU arch dependencies cleanup. Everything works fine apart from redis-benchmark test. Type: test Change-Id: I4a1e7d3bce994f6ea0681e06955ef9c621468642 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-12-10hs-test: improved iperf testingAdrian Villin4-11/+125
- set iperf to json output - added iperf json parsing function - we can now check if iperf transferred more than X megabytes (other asserts can be added) Type: test Change-Id: I560104a153456b46f22a1affee4301018063b99d Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-10hs-test: remove client app retriesAdrian Villin1-22/+12
- simple fix to avoid apps trying to start after a test timeout/interrupt Type: test Change-Id: I4e6fcbb2bb00c07e35cda1ebf6fcb76a913f7a32 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-12-08http: http_decap_udp_payload_datagram fixMatus Fabian1-1/+1
Properly handle incomplete capsule. Type: fix Change-Id: Ied7fca861f02e401451beaff09e612bcf471d8e0 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-11-27hs-test: added ldp iperf tcp testAdrian Villin2-6/+13
- renamed other iperf tests Type: test Change-Id: I9cc7b49f23e9e0c6a01d2f74aef722d580478f75 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-11-27hs-test: don't use reserved UDP ports for bindingAdrian Villin1-2/+36
Type: test Change-Id: Ief0d238bbbf533779618b971f01099aa113c1c08 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-11-22hs-test: added multithreaded vpp proxy testsAdrian Villin6-16/+67
- if a test is named '...MTTest', 3 cpus will be allocated to vpp - updated docs Type: test Change-Id: I756dfb6cdbff4368d606ca3abbc1a510cd1d6b51 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-11-21hs-test: added tls tcp iperf testAdrian Villin2-5/+23
Type: test Change-Id: I7ed1a6dea644eb19b8022db07344503121e61517 Signed-off-by: Adrian Villin <avillin@cisco.com>