http: notify client when connection failed
Type: fix Change-Id: I87054e9667fe990d9a2dc3950bc3ce348460018a Signed-off-by: Matus Fabian <matfabia@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
b7a9ed75fb
commit
3d00893c37
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
func init() {
|
||||
registerNsTests(HttpTpsTest)
|
||||
registerVethTests(HttpCliTest)
|
||||
registerVethTests(HttpCliTest, HttpCliConnectErrorTest)
|
||||
registerNoTopoTests(NginxHttp3Test, NginxAsServerTest,
|
||||
NginxPerfCpsTest, NginxPerfRpsTest, NginxPerfWrkTest, HeaderServerTest,
|
||||
HttpStaticMovedTest, HttpStaticNotFoundTest, HttpCliMethodNotAllowedTest,
|
||||
@@ -58,6 +58,20 @@ func HttpCliTest(s *VethsSuite) {
|
||||
s.assertContains(o, "<html>", "<html> not found in the result!")
|
||||
}
|
||||
|
||||
func HttpCliConnectErrorTest(s *VethsSuite) {
|
||||
clientContainer := s.getContainerByName("client-vpp")
|
||||
|
||||
serverVeth := s.getInterfaceByName(serverInterfaceName)
|
||||
|
||||
uri := "http://" + serverVeth.ip4AddressString() + "/80"
|
||||
|
||||
o := clientContainer.vppInstance.vppctl("http cli client" +
|
||||
" uri " + uri + " query /show/vlib/graph")
|
||||
|
||||
s.log(o)
|
||||
s.assertContains(o, "failed to connect")
|
||||
}
|
||||
|
||||
func NginxHttp3Test(s *NoTopoSuite) {
|
||||
s.SkipUnlessExtendedTestsBuilt()
|
||||
|
||||
|
Reference in New Issue
Block a user