hs-test: added ldp iperf tcp test
- renamed other iperf tests Type: test Change-Id: I9cc7b49f23e9e0c6a01d2f74aef722d580478f75 Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:
Adrian Villin
committed by
Florin Coras
parent
f9f5717633
commit
3628353e09
@ -9,10 +9,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterIperfTests(IperfLinuxTest)
|
RegisterIperfTests(IperfUdpLinuxTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
func IperfLinuxTest(s *IperfSuite) {
|
func IperfUdpLinuxTest(s *IperfSuite) {
|
||||||
serverContainer := s.GetContainerByName(ServerIperfContainerName)
|
serverContainer := s.GetContainerByName(ServerIperfContainerName)
|
||||||
serverIpAddress := s.GetInterfaceByName(ServerIperfInterfaceName).Ip4AddressString()
|
serverIpAddress := s.GetInterfaceByName(ServerIperfInterfaceName).Ip4AddressString()
|
||||||
clientContainer := s.GetContainerByName(ClientIperfContainerName)
|
clientContainer := s.GetContainerByName(ClientIperfContainerName)
|
||||||
|
@ -9,15 +9,18 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterLdpTests(LDPreloadIperfVppTest, LDPreloadIperfVppInterruptModeTest, RedisBenchmarkTest, LDPreloadIperfTlsTcpTest)
|
RegisterLdpTests(LdpIperfUdpVppTest, LdpIperfUdpVppInterruptModeTest, RedisBenchmarkTest, LdpIperfTlsTcpTest, LdpIperfTcpVppTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
func LDPreloadIperfVppInterruptModeTest(s *LdpSuite) {
|
func LdpIperfUdpVppInterruptModeTest(s *LdpSuite) {
|
||||||
ldPreloadIperfVpp(s, true)
|
ldPreloadIperfVpp(s, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func LDPreloadIperfTlsTcpTest(s *LdpSuite) {
|
func LdpIperfTlsTcpTest(s *LdpSuite) {
|
||||||
for _, c := range s.Containers {
|
for _, c := range s.Containers {
|
||||||
|
defer delete(c.EnvVars, "LDP_TRANSPARENT_TLS")
|
||||||
|
defer delete(c.EnvVars, "LDP_TLS_CERT_FILE")
|
||||||
|
defer delete(c.EnvVars, "LDP_TLS_KEY_FILE")
|
||||||
c.Exec(false, "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.key -out crt.crt -subj \"/CN=test\"")
|
c.Exec(false, "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.key -out crt.crt -subj \"/CN=test\"")
|
||||||
c.AddEnvVar("LDP_TRANSPARENT_TLS", "1")
|
c.AddEnvVar("LDP_TRANSPARENT_TLS", "1")
|
||||||
c.AddEnvVar("LDP_TLS_CERT_FILE", "/crt.crt")
|
c.AddEnvVar("LDP_TLS_CERT_FILE", "/crt.crt")
|
||||||
@ -26,7 +29,11 @@ func LDPreloadIperfTlsTcpTest(s *LdpSuite) {
|
|||||||
ldPreloadIperfVpp(s, false)
|
ldPreloadIperfVpp(s, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
func LDPreloadIperfVppTest(s *LdpSuite) {
|
func LdpIperfTcpVppTest(s *LdpSuite) {
|
||||||
|
ldPreloadIperfVpp(s, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
func LdpIperfUdpVppTest(s *LdpSuite) {
|
||||||
ldPreloadIperfVpp(s, true)
|
ldPreloadIperfVpp(s, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user