aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/http_test.go
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-11-29 12:59:05 +0100
committerFlorin Coras <florin.coras@gmail.com>2023-11-30 03:33:02 +0000
commitcc1475cdc2bddeac5237012dae1c19278ee5346c (patch)
tree3a1badeadbca46571eb51083ea6715e618d7c638 /extras/hs-test/http_test.go
parent18710d58f0dfae6c8455eedfe46545566e7ed4a8 (diff)
hs-test: add http prom test
Type: test Change-Id: Ia15ecc3cf2c087a6959601ff02e187c32570ff60 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'extras/hs-test/http_test.go')
-rw-r--r--extras/hs-test/http_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/extras/hs-test/http_test.go b/extras/hs-test/http_test.go
index 4aab55335d2..53e6ec22ac3 100644
--- a/extras/hs-test/http_test.go
+++ b/extras/hs-test/http_test.go
@@ -60,6 +60,18 @@ func (s *NoTopoSuite) TestNginxHttp3() {
s.assertContains(o, "<http>", "<http> not found in the result!")
}
+func (s *NoTopoSuite) TestHttpStaticProm() {
+ finished := make(chan error, 1)
+ query := "stats.prom"
+ vpp := s.getContainerByName("vpp").vppInstance
+ serverAddress := s.netInterfaces[tapInterfaceName].peer.ip4AddressString()
+ s.log(vpp.vppctl("http static server uri tcp://" + serverAddress + "/80 url-handlers"))
+ s.log(vpp.vppctl("prom enable"))
+ go s.startWget(finished, serverAddress, "80", query, "")
+ err := <-finished
+ s.assertNil(err)
+}
+
func (s *NoTopoSuite) TestNginxAsServer() {
query := "return_ok"
finished := make(chan error, 1)