summaryrefslogtreecommitdiffstats
path: root/extras/hs-test
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test')
-rw-r--r--extras/hs-test/docker/Dockerfile.vpp2
-rw-r--r--extras/hs-test/http_test.go12
-rw-r--r--extras/hs-test/vppinstance.go2
3 files changed, 16 insertions, 0 deletions
diff --git a/extras/hs-test/docker/Dockerfile.vpp b/extras/hs-test/docker/Dockerfile.vpp
index d9b3f276442..7c6d7f9b8a7 100644
--- a/extras/hs-test/docker/Dockerfile.vpp
+++ b/extras/hs-test/docker/Dockerfile.vpp
@@ -15,6 +15,8 @@ COPY \
$DIR/http_plugin.so \
$DIR/unittest_plugin.so \
$DIR/quic_plugin.so \
+ $DIR/http_static_plugin.so \
+ $DIR/prom_plugin.so \
/usr/lib/x86_64-linux-gnu/vpp_plugins/
COPY vpp-data/bin/* /usr/bin/
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)
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go
index c20c5e2ee8c..e31b7929fd8 100644
--- a/extras/hs-test/vppinstance.go
+++ b/extras/hs-test/vppinstance.go
@@ -56,6 +56,8 @@ plugins {
plugin af_packet_plugin.so { enable }
plugin hs_apps_plugin.so { enable }
plugin http_plugin.so { enable }
+ plugin http_static_plugin.so { enable }
+ plugin prom_plugin.so { enable }
}
logging {