File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -465,6 +465,7 @@ func TestHostsReinstallOperatingSystemForDedicatedServer(t *testing.T) {
465465 osUbuntuServerID := int64 (1 )
466466 rootFilesystem := "ext4"
467467 raidLevel := 0
468+ userData := "#cloud-config\n packages:\n - nginx\n "
468469
469470 input := OperatingSystemReinstallInput {
470471 Hostname : "new-hostname" ,
@@ -482,6 +483,7 @@ func TestHostsReinstallOperatingSystemForDedicatedServer(t *testing.T) {
482483 },
483484 OperatingSystemID : & osUbuntuServerID ,
484485 SSHKeyFingerprints : []string {"48:81:0c:43:99:12:71:5e:ba:fd:e7:2f:20:d7:95:e8" },
486+ UserData : & userData ,
485487 }
486488
487489 ctx := context .TODO ()
Original file line number Diff line number Diff line change @@ -701,6 +701,7 @@ type OperatingSystemReinstallInput struct {
701701 Drives OperatingSystemReinstallDrivesInput `json:"drives"`
702702 OperatingSystemID * int64 `json:"operating_system_id,omitempty"`
703703 SSHKeyFingerprints []string `json:"ssh_key_fingerprints,omitempty"`
704+ UserData * string `json:"user_data,omitempty"`
704705}
705706
706707// OperatingSystemReinstallInput represents os reinstallation input
You can’t perform that action at this time.
0 commit comments