aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/proxy_test.go
AgeCommit message (Collapse)AuthorFilesLines
2024-09-28hs-test: replaced gofmt with goimportsAdrian Villin1-1/+2
- goimports properly formats imports Type: test Change-Id: I78c162dd552fd3ee3d59955d7ea215af30601425 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-09-10hs-test: upload via proxy testsMatus Fabian1-5/+24
Type: test Change-Id: Id6b4e2348735081c827f814a814c976b601432ec Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-08-22hs-test: nginx proxy/mirroring test cleanupMatus Fabian1-0/+8
- test moved to proxy_test.go - topology and suite updated to be vpp/envoy proxy compliant Type: test Change-Id: Iabee50b76bb8d96851f831c0b57d0e98dc4b3a5f Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-08-22hs-test: proxy testing improvementMatus Fabian1-94/+23
- new container topologies and suites for VPP proxy and Envoy proxy - removed build docker image since it can't be used with CI cache builder, container builders are designed to be stateless, they only preserve build-cache, but not images Type: test Change-Id: I93e4d079780d18d6aa3b5ce807adc4707b6f2d9b Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-07-17hs-test: use docker sdkAdrian Villin1-2/+1
Type: test Change-Id: I9d6b15ca6a9aac3343e10f480dec43c4c538f1b7 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-06-14hs-test: separate infra from testsAdrian Villin1-33/+33
- most functions and vars now start with a capital letter: needed to access them outside the package that declares them - updated README.md - very minor changes in MAKEFILE Type: test Change-Id: I4b5a194f08f09d59e372e57da6451fbb5a1de4da Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-06-12hs-test: improved suite teardown and replaced PIDs with PPIDsAdrian Villin1-7/+7
- Fixed an issue where containers wouldn't stop and get removed when a test run is interrupted - Replaced PIDs with Ginkgo process indexes + PPIDs - Fixed CPU allocation for envoy and nginx-ldp containers - All container logs should now get saved properly Type: test Change-Id: I4c737c1d326390494c0dda1ec6d3fc1f04f51663 Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-04-19hs-test: transition to ginkgo test frameworkAdrian Villin1-9/+17
Type: test Change-Id: Ia38bf5549d20b22876f6082085b69a52a03d0142 Signed-off-by: Adrian Villin <avillin@cisco.com> Signed-off-by: Matus Fabian <matfabia@cisco.com>
2024-03-12hs-test: experimental support for multiple test instancesadrianvillin1-13/+14
- appending PID to interface and container names - added a check for used IP addresses - TestEnvoyProxyHttpTcp and TestTcpWithLoss are broken when running multiple instances Type: test Change-Id: Ib917079ec7cf851dee59ff9c67e74f48c7c5e3c6 Signed-off-by: adrianvillin <avillin@cisco.com>
2024-02-15hs-test: shortened interface names to avoid character limitadrianvillin1-7/+11
Type: test Change-Id: I09df597ccb8a3c4af47b8a36010afb81df533236 Signed-off-by: adrianvillin <avillin@cisco.com>
2024-02-15hs-test: improved loggingadrianvillin1-6/+7
- improved readability of some error messages - printing container logs to stdout on test failure (last 20 lines) Type: test Change-Id: Idbb358bdd89aa7b1a6bdc9d96bf029d4c299ce64 Signed-off-by: adrianvillin <avillin@cisco.com>
2024-01-11hs-test: add tls proxy testFilip Tehlar1-12/+20
Type: test Change-Id: I8f3f4c464907356bb1990ea53f0f46befc057acf Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-09-04hs-test: log external appsFilip Tehlar1-1/+1
Type: test Change-Id: Id2b0d408bd46f20b81422506f9db4eb655feddac Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2023-03-15hs-test: use consistent naming conventionMaros Ondrejicka1-4/+4
Exported indentifiers in Go start with capital letters. Only few fields in hs-test, which are being unmarshaled from yaml are required to be exported. Every other field name or method name should start with lower-case letter, to be consistent with this naming convention. Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I7eab0eef9fd08a7890c77b6ce1aeb3fa4b80f3cd
2023-03-07hs-test: fix envoy testFilip Tehlar1-2/+1
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I776e0f1f7ea700439d1fe6a598772776ae6a1493
2023-02-28hs-test: fill configuration files at runtimeMaros Ondrejicka1-10/+21
Treat certain configuration files, which contain runtime-dependent information, as templates. The information is filled at runtime and the files are copied into containers. This allows to avoid hard-coding IP addresses into configuration files. Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I1dae8f15f4f76c0bf1779d7c68b7f3859bf5a861
2023-02-27hs-test: refactor netconfigMaros Ondrejicka1-2/+2
This joins separate representations of veth and tap interfaces into a single struct. It removes the need for type interface and embedding which simplifies the code. Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I1b2c368bfe90a5bdfaaa9a5129c27d7d96f8fe3b
2023-02-10hs-test: refactor test cases from no-topo suiteMaros Ondrejicka1-2/+2
This converts remaining tests to configation of VPP from test context. Type: test Change-Id: I386714f6b290e03d1757c2a033a25fae0340f5d6 Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
2023-02-10hs-test: refactor test cases from ns suiteMaros Ondrejicka1-18/+21
This converts more tests to configure VPP from test context. Type: test Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech> Change-Id: Idf26b0c16f87e87c97b198412af39b99d947ced6
2023-01-16hs-test: restrict concurrency on envoyFilip Tehlar1-1/+1
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I8b06f4554a6ee5b13de829e47eaa82431a76c332
2023-01-09hs-test: remove exec flags from source filesFilip Tehlar1-0/+0
Type: style Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Ia87b28e81b6fd06c8c3681bf3cb1dd6ce8c84f41
2022-12-21hs-test: small improvementsFilip Tehlar1-14/+9
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Ifa56da632b139acd5e743c3076c24b5b55388924
2022-12-20hs-test: add runtime optionsMaros Ondrejicka1-5/+5
Options "-p" to not remove topology elements after the test finishes "-v" from now on extra output from tests is hidden by default, this will show it again Type: test Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech> Change-Id: I626188561c883534e9004d5130ee2a972d12b4e2
2022-12-19hs-test: abstract away topology from test casesMaros Ondrejicka1-49/+30
Definition of shared volumes and containers has been moved to yaml files to be together with network topology. Containers are automatically run at the beginning of each test case and stopped afterward. Type: test Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech> Change-Id: I264cbb4f1355f8bd7aade221e9609fb5b9bd693e
2022-12-07hs-test: use assert-like approach in test casesMaros Ondrejicka1-31/+37
Type: test Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech> Change-Id: I1653001461d4dfc52f1fb3a9e0cf458a506b8324
2022-11-25hs-test: auto register test actionsFilip Tehlar1-4/+4
Type: improvement Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Icb5db6f69eda93181aba69b1f8676a73c0a4561b
2022-09-19misc: add test framework for host stackFilip Tehlar1-0/+98
Type: feature Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I5a64a2c095cae3a4d5f8fdc73e624b010339ec8e