summaryrefslogtreecommitdiff
path: root/pkg/machine/e2e/config_ssh_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/machine/e2e/config_ssh_test.go')
-rw-r--r--pkg/machine/e2e/config_ssh_test.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/machine/e2e/config_ssh_test.go b/pkg/machine/e2e/config_ssh_test.go
new file mode 100644
index 000000000..f062625fa
--- /dev/null
+++ b/pkg/machine/e2e/config_ssh_test.go
@@ -0,0 +1,31 @@
+package e2e_test
+
+type sshMachine struct {
+ /*
+ --username string Username to use when ssh-ing into the VM.
+ */
+
+ username string //nolint:unused
+ sshCommand []string
+}
+
+func (s sshMachine) buildCmd(m *machineTestBuilder) []string {
+ cmd := []string{"machine", "ssh"}
+ if len(m.name) > 0 {
+ cmd = append(cmd, m.name)
+ }
+ if len(s.sshCommand) > 0 {
+ cmd = append(cmd, s.sshCommand...)
+ }
+ return cmd
+}
+
+func (s *sshMachine) withUsername(name string) *sshMachine { //nolint:unused
+ s.username = name
+ return s
+}
+
+func (s *sshMachine) withSSHComand(sshCommand []string) *sshMachine {
+ s.sshCommand = sshCommand
+ return s
+}