hs-test: fix wait for app after ldp change 72/38372/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 28 Feb 2023 22:51:03 +0000 (14:51 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 1 Mar 2023 00:12:01 +0000 (00:12 +0000)
After gerrit 38370 (729b9c94), apps are registered via ldp using program
name. Update tests to support that.

Also add make file help for UNCONFIGURE.

Type: test

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I4ad50abfd175664b47b358df1a72e0758f51190d

extras/hs-test/Makefile
extras/hs-test/http_test.go
extras/hs-test/suite_nginx_test.go

index a392c14..268a518 100644 (file)
@@ -32,6 +32,7 @@ help:
        @echo " UBUNTU_VERSION           - ubuntu version for docker image"
        @echo " PERSIST=[true|false]     - whether clean up topology and dockers after test"
        @echo " VERBOSE=[true|false]     - verbose output"
+       @echo " UNCONFIGURE=[true|false] - unconfigure selected test"
        @echo " TEST=[test-name]         - specific test to run"
        @echo
        @echo "List of all tests:"
index c1b3b7f..3f1d303 100644 (file)
@@ -48,7 +48,7 @@ func (s *NoTopoSuite) TestNginxAsServer() {
        s.assertNil(nginxCont.run())
 
        vpp := s.getContainerByName("vpp").vppInstance
-       vpp.waitForApp("-app", 5)
+       vpp.waitForApp("nginx-", 5)
 
        serverAddress := s.netInterfaces[tapInterfaceName].Peer().IP4AddressString()
 
@@ -85,7 +85,7 @@ func runNginxPerf(s *NoTopoSuite, mode, ab_or_wrk string) error {
 
        nginxCont := s.getContainerByName("nginx")
        s.assertNil(nginxCont.run())
-       vpp.waitForApp("-app", 5)
+       vpp.waitForApp("nginx-", 5)
 
        cmd := exec.Command(exeName, args...)
        s.log(cmd)
index e66eca7..d811582 100644 (file)
@@ -60,5 +60,5 @@ func (s *NginxSuite) SetupTest() {
        )
        nginxContainer.start()
 
-       proxyVpp.waitForApp("-app", 5)
+       proxyVpp.waitForApp("nginx-", 5)
 }