diff options
author | Adrian Villin <avillin@cisco.com> | 2024-09-25 14:49:11 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-10-10 15:50:15 +0000 |
commit | 2acdf1e629a0e5463ed6820b9de4ae5ab7101cf6 (patch) | |
tree | c4a31f7720046076b01529308cf8afc50b124ed5 /extras/hs-test/infra/suite_no_topo.go | |
parent | 77ca487742310e4cdab5cad134de408b755e388b (diff) |
hs-test: added dry run mode
- DRYRUN=true will set up most containers. Some need to be started
manually (curl, nginx...). The framework will create a vpp-config
file with interface configs that will get executed on VPP startup.
- set Ginkgo to use -v instead of -vv when running a single test
- s.Log() now supports formatting
- added 'useEnvVars' parameter to container.Exec
Type: test
Change-Id: Id1da7947a1448ee4b74b86cc4f243442256a5ba8
Signed-off-by: Adrian Villin <avillin@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, 8 insertions, 4 deletions
diff --git a/extras/hs-test/infra/suite_no_topo.go b/extras/hs-test/infra/suite_no_topo.go index f518ba7c5e1..590bd2b2852 100644 --- a/extras/hs-test/infra/suite_no_topo.go +++ b/extras/hs-test/infra/suite_no_topo.go @@ -55,11 +55,15 @@ func (s *NoTopoSuite) SetupTest() { container := s.GetContainerByName(SingleTopoContainerVpp) vpp, _ := container.newVppInstance(container.AllocatedCpus, sessionConfig) - s.AssertNil(vpp.Start()) + s.AssertNil(vpp.Start()) tapInterface := s.GetInterfaceByName(TapInterfaceName) - s.AssertNil(vpp.createTap(tapInterface), "failed to create tap interface") + + if *DryRun { + s.LogStartedContainers() + s.Skip("Dry run mode = true") + } } func (s *NoTopoSuite) TearDownTest() { @@ -81,7 +85,7 @@ func (s *NoTopoSuite) CreateNginxConfig(container *Container, multiThreadWorkers }{ Workers: workers, } - container.CreateConfig( + container.CreateConfigFromTemplate( "/nginx.conf", "./resources/nginx/nginx.conf", values, @@ -131,7 +135,7 @@ func (s *NoTopoSuite) CreateNginxHttp3Config(container *Container) { }{ LogPrefix: container.Name, } - container.CreateConfig( + container.CreateConfigFromTemplate( "/nginx.conf", "./resources/nginx/nginx_http3.conf", nginxSettings, |