477 lines
17 KiB
Go
477 lines
17 KiB
Go
package app
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
"errors"
|
|
"fmt"
|
|
"io"
|
|
"net/http"
|
|
"os"
|
|
"path/filepath"
|
|
"strings"
|
|
"sync"
|
|
"testing"
|
|
|
|
"github.com/Nwflower/reims-go/internal/config"
|
|
"github.com/Nwflower/reims-go/internal/macos/reims"
|
|
"github.com/Nwflower/reims-go/internal/guesttools"
|
|
"github.com/Nwflower/reims-go/internal/host"
|
|
)
|
|
|
|
func folderTestDir(t *testing.T, parts ...string) string {
|
|
t.Helper()
|
|
path := filepath.Join(parts...)
|
|
if err := os.MkdirAll(path, 0o755); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
return path
|
|
}
|
|
|
|
func folderTestVM(t *testing.T, root string) reims.VMDetail {
|
|
t.Helper()
|
|
dir := folderTestDir(t, root, "vm")
|
|
if err := os.WriteFile(filepath.Join(dir, "vm.toml"), nil, 0o600); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
return reims.VMDetail{Name: "mac", Directory: dir}
|
|
}
|
|
|
|
func TestSharedFolderChangesAndVolumeDrift(t *testing.T) {
|
|
t.Setenv("LOCALAPPDATA", "")
|
|
tmp := t.TempDir()
|
|
root := folderTestDir(t, tmp, "data")
|
|
vm := folderTestVM(t, root)
|
|
work := folderTestDir(t, tmp, "private", "Work")
|
|
second := folderTestDir(t, tmp, "other", "work")
|
|
guid := "original"
|
|
canonical := work
|
|
srv := guesttools.NewTransportServer(nil)
|
|
t.Cleanup(func() { srv.Close(context.Background()) })
|
|
a := &App{cfg: &config.Config{DataRoot: root}, guestTools: srv}
|
|
a.resolveFolderVolume = func(path string) (host.DirectoryVolume, error) {
|
|
if path == work {
|
|
return host.DirectoryVolume{CanonicalPath: canonical, VolumeGUID: guid, FixedInternal: true}, nil
|
|
}
|
|
resolved, err := filepath.EvalSymlinks(path)
|
|
return host.DirectoryVolume{CanonicalPath: resolved, VolumeGUID: guid, FixedInternal: true}, err
|
|
}
|
|
change := func(id, action, path string) SharedFolderSettings {
|
|
t.Helper()
|
|
settings, err := a.changeVMSharedFolder(vm.Name, vm.Directory, id, action, path, a.vmDeleteEpoch(vm.Name))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
return settings
|
|
}
|
|
list := func() string {
|
|
t.Helper()
|
|
cfg, ok := guesttools.ReadVMConfig(vm.Directory)
|
|
if !ok {
|
|
t.Fatal("missing persisted config")
|
|
}
|
|
req, err := http.NewRequest("GET", fmt.Sprintf("http://127.0.0.1:%d/v1/folders", srv.Port()), nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
req.Header.Set("Authorization", "Bearer "+cfg.Token)
|
|
res, err := http.DefaultClient.Do(req)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer res.Body.Close()
|
|
body, err := io.ReadAll(res.Body)
|
|
if err != nil || res.StatusCode != http.StatusOK {
|
|
t.Fatalf("list folders: %s %s %v", res.Status, body, err)
|
|
}
|
|
return string(body)
|
|
}
|
|
settings := change("", "add", work)
|
|
info := settings.Folders[0]
|
|
if settings.RequiredAgentVersion != guesttools.SharedFolderAgentVersion || !info.Available || !info.Enabled ||
|
|
info.Writable || !strings.EqualFold(info.HostPath, work) || !strings.HasPrefix(list(), info.ID+"|ro|") {
|
|
t.Fatalf("initial settings: %+v", settings)
|
|
}
|
|
if !strings.HasPrefix(info.ID, "work-") {
|
|
t.Fatalf("missing readable directory prefix: %q", info.ID)
|
|
}
|
|
settings = change("", "add", second)
|
|
secondInfo := settings.Folders[1]
|
|
if strings.EqualFold(secondInfo.Name, info.Name) || secondInfo.ID == info.ID {
|
|
t.Fatalf("duplicate names or IDs: %+v", settings)
|
|
}
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "", "add", work, a.vmDeleteEpoch(vm.Name)); err == nil || !strings.Contains(err.Error(), "overlap") {
|
|
t.Fatalf("duplicate path: %v", err)
|
|
}
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "", "add", filepath.Dir(work), a.vmDeleteEpoch(vm.Name)); err == nil || !strings.Contains(err.Error(), "overlap") {
|
|
t.Fatalf("overlapping parent: %v", err)
|
|
}
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "", "add", folderTestDir(t, work, "child"), a.vmDeleteEpoch(vm.Name)); err == nil || !strings.Contains(err.Error(), "overlap") {
|
|
t.Fatalf("overlapping child: %v", err)
|
|
}
|
|
if got := change(info.ID, "rw", "").Folders[0]; !got.Writable || !strings.Contains(list(), info.ID+"|rw|") {
|
|
t.Fatalf("read-write mode: %+v", got)
|
|
}
|
|
|
|
guid = "replacement"
|
|
// Refresh the real registration path used by GetVMDetail.
|
|
a.populateGuestToolsDetail(&vm, a.vmDeleteEpoch(vm.Name))
|
|
cfg, _ := guesttools.ReadVMConfig(vm.Directory)
|
|
settings, _ = a.resolveSharedFolders(cfg, a.folderPolicy())
|
|
if got := settings.Folders[0]; got.Issue != "volume_mismatch" || got.Available || !got.Enabled ||
|
|
cfg.SharedFolders[0].VolumeGUID != "original" || list() != "" {
|
|
t.Fatalf("volume drift: %+v", got)
|
|
}
|
|
guid = "original"
|
|
canonical = second
|
|
a.populateGuestToolsDetail(&vm, a.vmDeleteEpoch(vm.Name))
|
|
cfg, _ = guesttools.ReadVMConfig(vm.Directory)
|
|
settings, _ = a.resolveSharedFolders(cfg, a.folderPolicy())
|
|
if got := settings.Folders[0]; got.Issue != "path_changed" || got.Available || !got.Enabled ||
|
|
!got.Writable || cfg.SharedFolders[0].HostPath != info.HostPath || !strings.HasPrefix(list(), secondInfo.ID+"|ro|") {
|
|
t.Fatalf("same-volume path drift: %+v", got)
|
|
}
|
|
canonical = filepath.Join(filepath.Dir(work), "work")
|
|
a.populateGuestToolsDetail(&vm, a.vmDeleteEpoch(vm.Name))
|
|
settings, _ = a.resolveSharedFolders(cfg, a.folderPolicy())
|
|
if got := settings.Folders[0]; got.Issue != "path_changed" || got.Available || strings.Contains(list(), info.ID+"|") {
|
|
t.Fatalf("case-only path drift: %+v", got)
|
|
}
|
|
canonical = work
|
|
if got := change(info.ID, "disabled", "").Folders[0]; got.Enabled || !got.Available || strings.Contains(list(), info.ID+"|") {
|
|
t.Fatalf("disabled mode: %+v", got)
|
|
}
|
|
if got := change(info.ID, "ro", "").Folders[0]; !got.Enabled || got.Writable || !strings.Contains(list(), info.ID+"|ro|") {
|
|
t.Fatalf("read-only mode: %+v", got)
|
|
}
|
|
if got := change(info.ID, "remove", ""); len(got.Folders) != 1 || strings.Contains(list(), info.ID+"|") {
|
|
t.Fatalf("removed folder: %+v", got)
|
|
}
|
|
if _, err := os.Stat(work); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if got := change("", "add", work).Folders[1]; got.ID == info.ID {
|
|
t.Fatalf("recreating a share reused its ID: %q", got.ID)
|
|
}
|
|
for _, line := range a.recentLogs {
|
|
if strings.Contains(strings.ToLower(line), strings.ToLower(work)) ||
|
|
strings.Contains(strings.ToLower(line), strings.ToLower(second)) {
|
|
t.Fatalf("host path in log: %s", line)
|
|
}
|
|
}
|
|
}
|
|
|
|
func TestSharedFolderPathPolicy(t *testing.T) {
|
|
base := t.TempDir()
|
|
root := folderTestDir(t, base, "app", "data")
|
|
win := folderTestDir(t, base, "Windows")
|
|
programs := folderTestDir(t, base, "Program Files")
|
|
profile := folderTestDir(t, base, "Users", "Rei")
|
|
appData := folderTestDir(t, profile, "AppData", "Roaming")
|
|
localAppData := folderTestDir(t, profile, "AppData", "Local")
|
|
t.Setenv("USERPROFILE", profile)
|
|
t.Setenv("SystemRoot", win)
|
|
t.Setenv("ProgramFiles", programs)
|
|
t.Setenv("APPDATA", appData)
|
|
t.Setenv("LOCALAPPDATA", localAppData)
|
|
a := &App{cfg: &config.Config{DataRoot: root}}
|
|
policy := a.folderPolicy()
|
|
for _, path := range []string{root, filepath.Dir(root), filepath.Join(root, "child"),
|
|
filepath.Join(win, "System32"), filepath.Join(programs, "child"),
|
|
appData, filepath.Dir(appData), filepath.Join(localAppData, "child"), filepath.Join(profile, ".ssh", "keys"),
|
|
profile, filepath.Dir(profile), filepath.VolumeName(base) + string(os.PathSeparator)} {
|
|
if !policy.blocked(path) {
|
|
t.Errorf("allowed blocked path %q", path)
|
|
}
|
|
}
|
|
for _, path := range []string{filepath.Join(profile, "Documents"), filepath.Join(base, "Windows Projects"),
|
|
filepath.Join(filepath.Dir(root), "data-sibling")} {
|
|
if policy.blocked(path) {
|
|
t.Errorf("blocked valid path %q", path)
|
|
}
|
|
}
|
|
for _, path := range []string{`\\host\share`, "//host/share", `\\?\C:\dir`, `\\.\C:\dir`} {
|
|
if _, err := a.directoryVolume(path); err == nil {
|
|
t.Errorf("accepted %q", path)
|
|
}
|
|
}
|
|
volume := host.DirectoryVolume{CanonicalPath: filepath.Join(profile, "Documents"), VolumeGUID: "id"}
|
|
if issue := folderVolumeIssue(policy, volume, nil); issue != "blocked" {
|
|
t.Fatalf("external volume: %s", issue)
|
|
}
|
|
volume.FixedInternal = true
|
|
volume.IsVolumeRoot = true
|
|
if issue := folderVolumeIssue(policy, volume, nil); issue != "blocked" {
|
|
t.Fatalf("allowed a volume mounted at a directory: %q", issue)
|
|
}
|
|
shared := folderTestDir(t, base, "shared")
|
|
a.resolveFolderVolume = func(path string) (host.DirectoryVolume, error) {
|
|
return host.DirectoryVolume{CanonicalPath: path, VolumeGUID: "id", FixedInternal: true}, nil
|
|
}
|
|
for _, path := range []string{shared, strings.ToUpper(filepath.Join(shared, "child")), filepath.Dir(shared)} {
|
|
settings, resolved := a.resolveSharedFolders(guesttools.VMConfig{
|
|
SharedDir: shared, SharedFolders: []guesttools.SharedFolderConfig{
|
|
{ID: "test", Name: "Test", HostPath: path, VolumeGUID: "id", Enabled: true},
|
|
},
|
|
}, folderPathPolicy{})
|
|
if settings.Folders[0].Issue != "overlap" || len(resolved) != 0 {
|
|
t.Fatalf("allowed overlap with default folder: %+v", settings)
|
|
}
|
|
}
|
|
}
|
|
|
|
func TestSharedFolderConcurrentSaveAndRefresh(t *testing.T) {
|
|
t.Setenv("LOCALAPPDATA", "")
|
|
tmp := t.TempDir()
|
|
root := folderTestDir(t, tmp, "data")
|
|
vm := folderTestVM(t, root)
|
|
srv := guesttools.NewTransportServer(nil)
|
|
t.Cleanup(func() { srv.Close(context.Background()) })
|
|
a := &App{cfg: &config.Config{DataRoot: root}, guestTools: srv}
|
|
a.resolveFolderVolume = func(path string) (host.DirectoryVolume, error) {
|
|
return host.DirectoryVolume{CanonicalPath: path, VolumeGUID: "id", FixedInternal: true}, nil
|
|
}
|
|
const n = 8
|
|
var wg sync.WaitGroup
|
|
start := make(chan struct{})
|
|
_, port, err := a.ensureGuestToolsBridge()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
for i := range n {
|
|
path := folderTestDir(t, tmp, fmt.Sprintf("work-%d", i))
|
|
wg.Go(func() {
|
|
<-start
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "", "add", path, a.vmDeleteEpoch(vm.Name)); err != nil {
|
|
t.Error(err)
|
|
}
|
|
})
|
|
wg.Go(func() {
|
|
<-start
|
|
detail := vm
|
|
epoch := a.vmDeleteEpoch(vm.Name)
|
|
a.populateGuestToolsDetail(&detail, epoch)
|
|
a.registerSavedGuestToolsConfig(srv, port, vm.Name, vm.Directory, epoch)
|
|
})
|
|
}
|
|
close(start)
|
|
wg.Wait()
|
|
cfg, ok := guesttools.ReadVMConfig(vm.Directory)
|
|
if !ok || len(cfg.SharedFolders) != n {
|
|
t.Fatalf("persisted %d folders, want %d", len(cfg.SharedFolders), n)
|
|
}
|
|
req, err := http.NewRequest("GET", fmt.Sprintf("http://127.0.0.1:%d/v1/folders", port), nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
req.Header.Set("Authorization", "Bearer "+cfg.Token)
|
|
res, err := http.DefaultClient.Do(req)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer res.Body.Close()
|
|
body, err := io.ReadAll(res.Body)
|
|
if err != nil || res.StatusCode != http.StatusOK || strings.Count(string(body), "\n") != n {
|
|
t.Fatalf("published folders: %s %q %v", res.Status, body, err)
|
|
}
|
|
}
|
|
|
|
func TestSharedFolderIDUsesASCIISlug(t *testing.T) {
|
|
for name, prefix := range map[string]string{
|
|
"__My 工作 Files-": "my-files-",
|
|
strings.Repeat("X", 50): strings.Repeat("x", 40) + "-",
|
|
"共享文件夹": "folder-",
|
|
} {
|
|
id := newSharedFolderID(name)
|
|
suffixLength := 6
|
|
if prefix == "folder-" {
|
|
suffixLength = 8
|
|
}
|
|
if normalized, valid := guesttools.NormalizeFolderID(id); !valid || normalized != id ||
|
|
!strings.HasPrefix(id, prefix) || len(id) != len(prefix)+suffixLength {
|
|
t.Errorf("invalid ID for %q: %q", name, id)
|
|
}
|
|
}
|
|
}
|
|
|
|
func TestSharedFolderCorruptConfigAndModeErrors(t *testing.T) {
|
|
root := t.TempDir()
|
|
vm := folderTestVM(t, root)
|
|
srv := guesttools.NewTransportServer(nil)
|
|
t.Cleanup(func() { srv.Close(context.Background()) })
|
|
a := &App{cfg: &config.Config{DataRoot: root}, guestTools: srv}
|
|
if _, err := a.SetVMSharedFolderMode(vm.Name, "absent", "invalid"); err == nil || err.Error() != "shared folder: invalid_mode" {
|
|
t.Fatalf("invalid mode: %v", err)
|
|
}
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "absent", "remove", "", a.vmDeleteEpoch(vm.Name)); err == nil || err.Error() != "shared folder: not_found" {
|
|
t.Fatalf("missing folder: %v", err)
|
|
}
|
|
path := filepath.Join(vm.Directory, guesttools.ConfigFileName)
|
|
const broken = "{bad JSON"
|
|
if err := os.WriteFile(path, []byte(broken), 0o600); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "", "add", root, a.vmDeleteEpoch(vm.Name)); err == nil || err.Error() != "shared folder: corrupt_config" {
|
|
t.Fatalf("corrupt config: %v", err)
|
|
}
|
|
if contents, err := os.ReadFile(path); err != nil || string(contents) != broken {
|
|
t.Fatalf("corrupt config was replaced: %q, %v", contents, err)
|
|
}
|
|
}
|
|
|
|
func TestDeletedVMConfigCannotBeSavedOrRegistered(t *testing.T) {
|
|
for _, keepFiles := range []bool{false, true} {
|
|
t.Run(fmt.Sprintf("keep_files_%v", keepFiles), func(t *testing.T) {
|
|
root := t.TempDir()
|
|
vm := folderTestVM(t, root)
|
|
a := &App{cfg: &config.Config{DataRoot: root}}
|
|
srv, port, err := a.ensureGuestToolsBridge()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Cleanup(func() { srv.Close(context.Background()) })
|
|
epoch := a.vmDeleteEpoch("MAC")
|
|
cfg, err := a.loadAndRegisterGuestTools(srv, port, vm.Directory, vm.Name, epoch)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
assertStatus := func(want int) {
|
|
t.Helper()
|
|
req, err := http.NewRequest("GET", fmt.Sprintf("http://127.0.0.1:%d/v1/config", port), nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
req.Header.Set("Authorization", "Bearer "+cfg.Token)
|
|
res, err := http.DefaultClient.Do(req)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer res.Body.Close()
|
|
if res.StatusCode != want {
|
|
t.Fatalf("VM config endpoint returned %s, want %d", res.Status, want)
|
|
}
|
|
}
|
|
assertStatus(http.StatusOK)
|
|
configPath := filepath.Join(vm.Directory, guesttools.ConfigFileName)
|
|
before, err := os.ReadFile(configPath)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
share := folderTestDir(t, root, "work")
|
|
a.resolveFolderVolume = func(path string) (host.DirectoryVolume, error) {
|
|
return host.DirectoryVolume{CanonicalPath: path, VolumeGUID: "id", FixedInternal: true}, nil
|
|
}
|
|
|
|
var wg sync.WaitGroup
|
|
removed, err := a.deleteVMWithGuestTools(vm.Name, func() error {
|
|
wg.Go(func() {
|
|
a.registerSavedGuestToolsConfig(srv, port+1, vm.Name, vm.Directory, epoch)
|
|
detail := vm
|
|
a.populateGuestToolsDetail(&detail, epoch)
|
|
if keepFiles && detail.GuestToolsConfigured {
|
|
t.Error("stale detail loaded kept Guest Tools config")
|
|
}
|
|
})
|
|
wg.Go(func() {
|
|
if _, err := a.loadAndRegisterGuestTools(srv, port, vm.Directory, vm.Name, epoch); !errors.Is(err, os.ErrNotExist) {
|
|
t.Errorf("save after deletion: %v", err)
|
|
}
|
|
})
|
|
wg.Go(func() {
|
|
if _, err := a.changeVMSharedFolder(vm.Name, vm.Directory, "", "add", share, epoch); !errors.Is(err, os.ErrNotExist) {
|
|
t.Errorf("folder change after deletion: %v", err)
|
|
}
|
|
})
|
|
if keepFiles {
|
|
return nil
|
|
}
|
|
return os.Rename(vm.Directory, filepath.Join(root, "deleted"))
|
|
}, nil)
|
|
wg.Wait()
|
|
if err != nil || !removed {
|
|
t.Fatalf("deletion removed=%v: %v", removed, err)
|
|
}
|
|
if keepFiles {
|
|
if _, err := os.Stat(filepath.Join(vm.Directory, "vm.toml")); err != nil {
|
|
t.Fatalf("kept vm.toml: %v", err)
|
|
}
|
|
after, err := os.ReadFile(configPath)
|
|
if err != nil || !bytes.Equal(before, after) {
|
|
t.Fatalf("kept Guest Tools config changed: %v", err)
|
|
}
|
|
} else {
|
|
if _, err := os.Stat(vm.Directory); !errors.Is(err, os.ErrNotExist) {
|
|
t.Fatalf("deleted VM directory reappeared: %v", err)
|
|
}
|
|
}
|
|
assertStatus(http.StatusUnauthorized)
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestDeleteBrokenVMUnregistersGuestTools(t *testing.T) {
|
|
for _, corrupt := range []bool{false, true} {
|
|
t.Run(fmt.Sprintf("corrupt_toml_%v", corrupt), func(t *testing.T) {
|
|
root := t.TempDir()
|
|
if corrupt {
|
|
if err := os.WriteFile(filepath.Join(root, "vm.toml"), []byte("[broken"), 0o600); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
const name, token = "broken", "broken-token"
|
|
a := &App{
|
|
cfg: &config.Config{DataRoot: root},
|
|
transitions: map[string]string{name: "stopping"},
|
|
}
|
|
srv, port, err := a.ensureGuestToolsBridge()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Cleanup(func() { srv.Close(context.Background()) })
|
|
srv.RegisterVM(guesttools.VMConfig{VMName: name, Token: token})
|
|
assertStatus := func(want int) {
|
|
t.Helper()
|
|
req, err := http.NewRequestWithContext(t.Context(), http.MethodGet, fmt.Sprintf("http://127.0.0.1:%d/v1/config", port), nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
req.Header.Set("Authorization", "Bearer "+token)
|
|
res, err := http.DefaultClient.Do(req)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer res.Body.Close()
|
|
if res.StatusCode != want {
|
|
t.Fatalf("VM config endpoint returned %d, want %d", res.StatusCode, want)
|
|
}
|
|
}
|
|
assertStatus(http.StatusOK)
|
|
deleteErr := errors.New("disk cleanup failed")
|
|
if removed, err := a.deleteVMWithGuestTools(name, func() error {
|
|
return deleteErr
|
|
}, func() (bool, error) {
|
|
return true, nil
|
|
}); removed || !errors.Is(err, deleteErr) {
|
|
t.Fatalf("failed deletion: removed=%v err=%v", removed, err)
|
|
}
|
|
assertStatus(http.StatusOK)
|
|
if a.vmDeleteEpoch(name) != 0 {
|
|
t.Fatal("failed deletion advanced the epoch")
|
|
}
|
|
var wantErr error
|
|
if corrupt {
|
|
wantErr = deleteErr
|
|
}
|
|
called := false
|
|
removed, err := a.deleteVMWithGuestTools(name, func() error {
|
|
called = true
|
|
return wantErr
|
|
}, func() (bool, error) { return false, nil })
|
|
if !removed || !called || !errors.Is(err, wantErr) || a.vmDeleteEpoch("BROKEN") != 1 {
|
|
t.Fatalf("broken VM deletion removed=%v called=%v, error=%v, epoch=%d", removed, called, err, a.vmDeleteEpoch(name))
|
|
}
|
|
assertStatus(http.StatusUnauthorized)
|
|
})
|
|
}
|
|
}
|