hs-test: various improvements

- fixed timed out/panicked tests not copying logs to CI archives
- fixed log formatting
- renamed SuiteTimeout to TestTimeout
- fixed ginkgo node leak on test timeout -> added AssertChannelClosed
- updated docs

Type: test

Change-Id: Ia71d765bd61576230a4cfd26d4b14fd1be1692c7
Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:
Adrian Villin
2024-10-15 14:56:16 +02:00
committed by Florin Coras
parent 6771af7328
commit 514098ee82
15 changed files with 53 additions and 42 deletions

View File

@ -167,8 +167,8 @@ Modifying the framework
// Add custom setup code here
s.ConfigureNetworkTopology("myTopology")
s.LoadContainerTopology("2peerVeth")
s.ConfigureNetworkTopology("myNetworkTopology")
s.LoadContainerTopology("myContainerTopology")
}
#. In suite file, implement ``SetupTest`` method which gets executed before each test. Starting containers and
@ -216,7 +216,7 @@ Modifying the framework
It(testName, func(ctx SpecContext) {
s.Log(testName + ": BEGIN")
test(&s)
}, SpecTimeout(SuiteTimeout))
}, SpecTimeout(TestTimeout))
}
}
})
@ -237,7 +237,7 @@ Modifying the framework
It(testName, Label("SOLO"), func(ctx SpecContext) {
s.Log(testName + ": BEGIN")
test(&s)
}, SpecTimeout(time.Minute*5))
}, SpecTimeout(TestTimeout))
})
#. Next step is to add test cases to the suite. For that, see section `Adding a test case`_ above