hs-test: add test suite features
Test suite now supports assertions which on fail stop test case run, also it allows to create docker containers which are going to be stopped automatically after the test run is finished. Type: improvement Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech> Change-Id: I2834709b1efd17b8182d36cc0404b986b4ed595d Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
b01efc557b
commit
11a03e972e
@@ -7,21 +7,21 @@ import (
|
||||
"github.com/edwarnicke/exechelper"
|
||||
)
|
||||
|
||||
func (s *Veths2Suite) TestVclEchoQuic() {
|
||||
func (s *VethsSuite) TestVclEchoQuic() {
|
||||
s.T().Skip("quic test skipping..")
|
||||
s.testVclEcho("quic")
|
||||
}
|
||||
|
||||
func (s *Veths2Suite) TestVclEchoUdp() {
|
||||
func (s *VethsSuite) TestVclEchoUdp() {
|
||||
s.T().Skip("udp echo currently broken in vpp, skipping..")
|
||||
s.testVclEcho("udp")
|
||||
}
|
||||
|
||||
func (s *Veths2Suite) TestVclEchoTcp() {
|
||||
func (s *VethsSuite) TestVclEchoTcp() {
|
||||
s.testVclEcho("tcp")
|
||||
}
|
||||
|
||||
func (s *Veths2Suite) testVclEcho(proto string) {
|
||||
func (s *VethsSuite) testVclEcho(proto string) {
|
||||
t := s.T()
|
||||
|
||||
exechelper.Run("docker volume create --name=echo-srv-vol")
|
||||
@@ -86,12 +86,12 @@ func (s *Veths2Suite) testVclEcho(proto string) {
|
||||
fmt.Println(o)
|
||||
}
|
||||
|
||||
func (s *Veths2Suite) TestVclRetryAttach() {
|
||||
func (s *VethsSuite) TestVclRetryAttach() {
|
||||
s.T().Skip()
|
||||
s.testRetryAttach("tcp")
|
||||
}
|
||||
|
||||
func (s *Veths2Suite) testRetryAttach(proto string) {
|
||||
func (s *VethsSuite) testRetryAttach(proto string) {
|
||||
t := s.T()
|
||||
|
||||
exechelper.Run("docker volume create --name=echo-srv-vol")
|
||||
|
Reference in New Issue
Block a user