From ce790e61b1a0a983a1900b76b1ad9864d15b1496 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 21 Jul 2022 11:36:32 +0200 Subject: enable linter for pkg/machine/e2e Rename all files to _test.go and rename the package to e2e_test. This makes the linter less strict about things like dot imports. Add some unused nolint directives to silence some warnings, these can be used to find untested options so someone could add tests for them. Fixes #14996 Signed-off-by: Paul Holzinger --- pkg/machine/e2e/config_stop_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkg/machine/e2e/config_stop_test.go (limited to 'pkg/machine/e2e/config_stop_test.go') diff --git a/pkg/machine/e2e/config_stop_test.go b/pkg/machine/e2e/config_stop_test.go new file mode 100644 index 000000000..41142ec7e --- /dev/null +++ b/pkg/machine/e2e/config_stop_test.go @@ -0,0 +1,15 @@ +package e2e_test + +type stopMachine struct { + /* + No command line args other than a machine vm name (also not required) + */ +} + +func (s stopMachine) buildCmd(m *machineTestBuilder) []string { + cmd := []string{"machine", "stop"} + if len(m.name) > 0 { + cmd = append(cmd, m.name) + } + return cmd +} -- cgit v1.2.3-54-g00ecf