@@ -96,3 +96,80 @@ func TestMultiNodeInstallation(t *testing.T) {
9696 t .Fatalf ("fail to install helmvm from node 00: %v" , err )
9797 }
9898}
99+
100+ func TestSingleNodeInstallationRockyLinux8 (t * testing.T ) {
101+ t .Parallel ()
102+ tc := cluster .NewTestCluster (& cluster.Input {
103+ T : t ,
104+ Nodes : 1 ,
105+ Image : "rockylinux/8" ,
106+ SSHPublicKey : "../output/tmp/id_rsa.pub" ,
107+ SSHPrivateKey : "../output/tmp/id_rsa" ,
108+ HelmVMPath : "../output/bin/helmvm" ,
109+ })
110+ defer tc .Destroy ()
111+ t .Log ("installing ssh on node 0" )
112+ commands := [][]string {
113+ {"dnf" , "install" , "-y" , "openssh-server" },
114+ {"systemctl" , "enable" , "sshd" },
115+ {"systemctl" , "start" , "sshd" },
116+ }
117+ if err := RunCommandsOnNode (t , tc , 0 , commands ); err != nil {
118+ t .Fatalf ("fail to install ssh on node %s: %v" , tc .Nodes [0 ], err )
119+ }
120+ t .Log ("installing helmvm on node 0" )
121+ line := []string {"single-node-install.sh" }
122+ if _ , _ , err := RunCommandOnNode (t , tc , 0 , line ); err != nil {
123+ t .Fatalf ("fail to install helmvm on node %s: %v" , tc .Nodes [0 ], err )
124+ }
125+ }
126+
127+ func TestSingleNodeInstallationDebian12 (t * testing.T ) {
128+ t .Parallel ()
129+ tc := cluster .NewTestCluster (& cluster.Input {
130+ T : t ,
131+ Nodes : 1 ,
132+ Image : "debian/12" ,
133+ SSHPublicKey : "../output/tmp/id_rsa.pub" ,
134+ SSHPrivateKey : "../output/tmp/id_rsa" ,
135+ HelmVMPath : "../output/bin/helmvm" ,
136+ })
137+ defer tc .Destroy ()
138+ t .Log ("installing ssh on node 0" )
139+ line := []string {"apt" , "install" , "openssh-server" , "-y" }
140+ if _ , _ , err := RunCommandOnNode (t , tc , 0 , line ); err != nil {
141+ t .Fatalf ("fail to install ssh on node 0: %v" , err )
142+ }
143+ t .Log ("installing helmvm on node 0" )
144+ line = []string {"single-node-install.sh" }
145+ if _ , _ , err := RunCommandOnNode (t , tc , 0 , line ); err != nil {
146+ t .Fatalf ("fail to install helmvm on node %s: %v" , tc .Nodes [0 ], err )
147+ }
148+ }
149+
150+ func TestSingleNodeInstallationCentos8Stream (t * testing.T ) {
151+ t .Parallel ()
152+ tc := cluster .NewTestCluster (& cluster.Input {
153+ T : t ,
154+ Nodes : 1 ,
155+ Image : "centos/8-Stream" ,
156+ SSHPublicKey : "../output/tmp/id_rsa.pub" ,
157+ SSHPrivateKey : "../output/tmp/id_rsa" ,
158+ HelmVMPath : "../output/bin/helmvm" ,
159+ })
160+ defer tc .Destroy ()
161+ t .Log ("installing ssh on node 0" )
162+ commands := [][]string {
163+ {"dnf" , "install" , "-y" , "openssh-server" },
164+ {"systemctl" , "enable" , "sshd" },
165+ {"systemctl" , "start" , "sshd" },
166+ }
167+ if err := RunCommandsOnNode (t , tc , 0 , commands ); err != nil {
168+ t .Fatalf ("fail to install ssh on node %s: %v" , tc .Nodes [0 ], err )
169+ }
170+ t .Log ("installing helmvm on node 0" )
171+ line := []string {"single-node-install.sh" }
172+ if _ , _ , err := RunCommandOnNode (t , tc , 0 , line ); err != nil {
173+ t .Fatalf ("fail to install helmvm on node %s: %v" , tc .Nodes [0 ], err )
174+ }
175+ }
0 commit comments