diff options
author | Matus Fabian <matfabia@cisco.com> | 2024-08-26 18:01:14 +0200 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2024-08-26 18:03:31 +0200 |
commit | a647a83496f81a83c02fe9317955a781b7f95d8c (patch) | |
tree | de2c54b572d7d2a725b5b55b442178b2dca020b2 /extras/hs-test/infra/suite_no_topo.go | |
parent | 62b508b396b4bcca37b934247ea04f5efef85354 (diff) |
hs-test: http tests improvement
- added http specific asserts
- added helper functions to NoTopoSuite
Type: test
Change-Id: I0a7e77ed3ffd938aa3eaa37ed5432fbaab0dab64
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'extras/hs-test/infra/suite_no_topo.go')
-rw-r--r-- | extras/hs-test/infra/suite_no_topo.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/extras/hs-test/infra/suite_no_topo.go b/extras/hs-test/infra/suite_no_topo.go index 5f53f55f1bb..9b4998a77a1 100644 --- a/extras/hs-test/infra/suite_no_topo.go +++ b/extras/hs-test/infra/suite_no_topo.go @@ -60,6 +60,18 @@ func (s *NoTopoSuite) SetupTest() { s.AssertNil(vpp.createTap(tapInterface), "failed to create tap interface") } +func (s *NoTopoSuite) VppAddr() string { + return s.GetInterfaceByName(TapInterfaceName).Peer.Ip4AddressString() +} + +func (s *NoTopoSuite) VppIfName() string { + return s.GetInterfaceByName(TapInterfaceName).Peer.Name() +} + +func (s *NoTopoSuite) HostAddr() string { + return s.GetInterfaceByName(TapInterfaceName).Ip4AddressString() +} + var _ = Describe("NoTopoSuite", Ordered, ContinueOnFailure, func() { var s NoTopoSuite BeforeAll(func() { |