From e7625d08566f6127acb351376797b4fdc75e3c6a Mon Sep 17 00:00:00 2001 From: Maros Ondrejicka Date: Tue, 28 Feb 2023 16:55:01 +0100 Subject: hs-test: use consistent naming convention Exported indentifiers in Go start with capital letters. Only few fields in hs-test, which are being unmarshaled from yaml are required to be exported. Every other field name or method name should start with lower-case letter, to be consistent with this naming convention. Type: test Signed-off-by: Maros Ondrejicka Change-Id: I7eab0eef9fd08a7890c77b6ce1aeb3fa4b80f3cd --- extras/hs-test/suite_ns_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extras/hs-test/suite_ns_test.go') diff --git a/extras/hs-test/suite_ns_test.go b/extras/hs-test/suite_ns_test.go index c4a3f426648..34fc9ec9723 100644 --- a/extras/hs-test/suite_ns_test.go +++ b/extras/hs-test/suite_ns_test.go @@ -18,17 +18,17 @@ func (s *NsSuite) SetupSuite() { func (s *NsSuite) SetupTest() { s.skipIfUnconfiguring() - s.SetupVolumes() - s.SetupContainers() + s.setupVolumes() + s.setupContainers() // Setup test conditions var startupConfig Stanza startupConfig. - NewStanza("session"). - Append("enable"). - Append("use-app-socket-api"). - Append("evt_qs_memfd_seg"). - Append("event-queue-length 100000").Close() + newStanza("session"). + append("enable"). + append("use-app-socket-api"). + append("evt_qs_memfd_seg"). + append("event-queue-length 100000").close() container := s.getContainerByName("vpp") vpp, _ := container.newVppInstance(startupConfig) @@ -42,5 +42,5 @@ func (s *NsSuite) SetupTest() { s.assertNil(err) s.assertNotEqual(0, idx) - container.exec("chmod 777 -R %s", container.GetContainerWorkDir()) + container.exec("chmod 777 -R %s", container.getContainerWorkDir()) } -- cgit 1.2.3-korg