diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2022-11-22 12:49:22 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-11-25 00:37:20 +0000 |
commit | 1a9dc75fe8099fdde9b1dd248a8fca35b001f9fc (patch) | |
tree | 729ad4b6b531ca3905434e1cbb4a950fff18dad6 /extras/hs-test/vcl_test.go | |
parent | b79d09bbfa93f0f752f7249ad27a08eae0863a6b (diff) |
hs-test: auto register test actions
Type: improvement
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: Icb5db6f69eda93181aba69b1f8676a73c0a4561b
Diffstat (limited to 'extras/hs-test/vcl_test.go')
-rwxr-xr-x | extras/hs-test/vcl_test.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/extras/hs-test/vcl_test.go b/extras/hs-test/vcl_test.go index fddd70d49d8..f699a65295c 100755 --- a/extras/hs-test/vcl_test.go +++ b/extras/hs-test/vcl_test.go @@ -32,14 +32,14 @@ func (s *Veths2Suite) testVclEcho(proto string) { echoSrv := "echo-srv" echoCln := "echo-cln" - err := dockerRun(srvInstance, "-v echo-srv-vol:/tmp/2veths") + err := dockerRun(srvInstance, "-v echo-srv-vol:/tmp/Configure2Veths") if err != nil { t.Errorf("%v", err) return } defer func() { exechelper.Run("docker stop " + srvInstance) }() - err = dockerRun(clnInstance, "-v echo-cln-vol:/tmp/2veths") + err = dockerRun(clnInstance, "-v echo-cln-vol:/tmp/Configure2Veths") if err != nil { t.Errorf("%v", err) return @@ -60,26 +60,26 @@ func (s *Veths2Suite) testVclEcho(proto string) { } defer func() { exechelper.Run("docker stop " + echoCln) }() - _, err = hstExec("2veths srv", srvInstance) + _, err = hstExec("Configure2Veths srv", srvInstance) if err != nil { t.Errorf("%v", err) return } - _, err = hstExec("2veths cln", clnInstance) + _, err = hstExec("Configure2Veths cln", clnInstance) if err != nil { t.Errorf("%v", err) return } // run server app - _, err = hstExec("echo-server "+proto, echoSrv) + _, err = hstExec("RunEchoServer "+proto, echoSrv) if err != nil { t.Errorf("echo server: %v", err) return } - o, err := hstExec("echo-client "+proto, echoCln) + o, err := hstExec("RunEchoClient "+proto, echoCln) if err != nil { t.Errorf("echo client: %v", err) } @@ -102,14 +102,14 @@ func (s *Veths2Suite) testRetryAttach(proto string) { echoSrv := "echo-srv" echoCln := "echo-cln" - err := dockerRun(srvInstance, "-v echo-srv-vol:/tmp/2veths") + err := dockerRun(srvInstance, "-v echo-srv-vol:/tmp/Configure2Veths") if err != nil { t.Errorf("%v", err) return } defer func() { exechelper.Run("docker stop " + srvInstance) }() - err = dockerRun(clnInstance, "-v echo-cln-vol:/tmp/2veths") + err = dockerRun(clnInstance, "-v echo-cln-vol:/tmp/Configure2Veths") if err != nil { t.Errorf("%v", err) return @@ -130,19 +130,19 @@ func (s *Veths2Suite) testRetryAttach(proto string) { } defer func() { exechelper.Run("docker stop " + echoCln) }() - _, err = hstExec("2veths srv-with-preset-hw-addr", srvInstance) + _, err = hstExec("Configure2Veths srv-with-preset-hw-addr", srvInstance) if err != nil { t.Errorf("%v", err) return } - _, err = hstExec("2veths cln", clnInstance) + _, err = hstExec("Configure2Veths cln", clnInstance) if err != nil { t.Errorf("%v", err) return } - _, err = hstExec("vcl-test-server "+proto, echoSrv) + _, err = hstExec("RunVclEchoServer "+proto, echoSrv) if err != nil { t.Errorf("vcl test server: %v", err) return @@ -150,7 +150,7 @@ func (s *Veths2Suite) testRetryAttach(proto string) { fmt.Println("This whole test case can take around 3 minutes to run. Please be patient.") fmt.Println("... Running first echo client test, before disconnect.") - _, err = hstExec("vcl-test-client "+proto, echoCln) + _, err = hstExec("RunVclEchoClient "+proto, echoCln) if err != nil { t.Errorf("vcl test client: %v", err) return @@ -171,7 +171,7 @@ func (s *Veths2Suite) testRetryAttach(proto string) { t.Errorf("error while stopping hs-test: %v", err) return } - _, err = hstExec("2veths srv-with-preset-hw-addr", srvInstance) + _, err = hstExec("Configure2Veths srv-with-preset-hw-addr", srvInstance) if err != nil { t.Errorf("%v", err) return @@ -181,7 +181,7 @@ func (s *Veths2Suite) testRetryAttach(proto string) { time.Sleep(30 * time.Second) // Wait a moment for the re-attachment to happen fmt.Println("... Running second echo client test, after disconnect and re-attachment.") - _, err = hstExec("vcl-test-client "+proto, echoCln) + _, err = hstExec("RunVclEchoClient "+proto, echoCln) if err != nil { t.Errorf("vcl test client: %v", err) } |