aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/mirroring_test.go
blob: daf3fc913e0fec35376e409f573e44e2b9bb01ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main

import (
	"github.com/edwarnicke/exechelper"
)

func init() {
	// registerNginxTests(MirroringTest)
}

// broken when CPUS > 1
func MirroringTest(s *NginxSuite) {
	s.skip("Broken in the CI")
	s.SkipIfMultiWorker()
	proxyAddress := s.getInterfaceByName(mirroringClientInterfaceName).peer.ip4AddressString()

	path := "/64B.json"

	testCommand := "wrk -c 20 -t 10 -d 10 http://" + proxyAddress + ":80" + path
	s.log(testCommand)
	o, _ := exechelper.Output(testCommand)
	s.log(string(o))
	s.assertNotEmpty(o)

	vppProxyContainer := s.getContainerByName(vppProxyContainerName)
	s.assertEqual(0, vppProxyContainer.vppInstance.GetSessionStat("no lcl port"))
}