2020-02-15 22:13:50 +00:00
|
|
|
package dehub
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
2020-03-14 22:14:18 +00:00
|
|
|
"errors"
|
2020-02-15 22:13:50 +00:00
|
|
|
"io"
|
|
|
|
"math/rand"
|
|
|
|
"path/filepath"
|
|
|
|
"testing"
|
|
|
|
|
2020-04-05 18:28:32 +00:00
|
|
|
"dehub.dev/src/dehub.git/sigcred"
|
|
|
|
|
2020-02-29 20:02:25 +00:00
|
|
|
"gopkg.in/src-d/go-git.v4"
|
2020-02-15 22:13:50 +00:00
|
|
|
"gopkg.in/src-d/go-git.v4/plumbing"
|
|
|
|
yaml "gopkg.in/yaml.v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
type harness struct {
|
|
|
|
t *testing.T
|
|
|
|
rand *rand.Rand
|
2020-04-26 20:23:03 +00:00
|
|
|
proj *Project
|
2020-02-15 22:13:50 +00:00
|
|
|
cfg *Config
|
|
|
|
}
|
|
|
|
|
|
|
|
func newHarness(t *testing.T) *harness {
|
|
|
|
rand := rand.New(rand.NewSource(0xb4eadb01))
|
2020-04-18 18:05:56 +00:00
|
|
|
return &harness{
|
2020-02-15 22:13:50 +00:00
|
|
|
t: t,
|
|
|
|
rand: rand,
|
2020-04-26 20:23:03 +00:00
|
|
|
proj: InitMemProject(),
|
2020-04-18 18:05:56 +00:00
|
|
|
cfg: new(Config),
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *harness) stage(tree map[string]string) {
|
2020-04-26 20:23:03 +00:00
|
|
|
w, err := h.proj.GitRepo.Worktree()
|
2020-02-15 22:13:50 +00:00
|
|
|
if err != nil {
|
|
|
|
h.t.Fatal(err)
|
|
|
|
}
|
|
|
|
fs := w.Filesystem
|
|
|
|
for path, content := range tree {
|
|
|
|
if content == "" {
|
|
|
|
if _, err := w.Remove(path); err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("removing %q: %v", path, err)
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
dir := filepath.Dir(path)
|
|
|
|
if err := fs.MkdirAll(dir, 0666); err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("making directory %q: %v", dir, err)
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
f, err := fs.Create(path)
|
|
|
|
if err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("creating file %q: %v", path, err)
|
2020-02-15 22:13:50 +00:00
|
|
|
|
|
|
|
} else if _, err := io.Copy(f, bytes.NewBufferString(content)); err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("writing to file %q: %v", path, err)
|
2020-02-15 22:13:50 +00:00
|
|
|
|
|
|
|
} else if err := f.Close(); err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("closing file %q: %v", path, err)
|
2020-02-15 22:13:50 +00:00
|
|
|
|
|
|
|
} else if _, err := w.Add(path); err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("adding file %q to index: %v", path, err)
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-14 22:14:18 +00:00
|
|
|
func (h *harness) stageCfg() {
|
|
|
|
cfgBody, err := yaml.Marshal(h.cfg)
|
2020-02-15 22:13:50 +00:00
|
|
|
if err != nil {
|
2020-03-14 22:14:18 +00:00
|
|
|
h.t.Fatal(err)
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
2020-03-14 22:14:18 +00:00
|
|
|
h.stage(map[string]string{ConfigPath: string(cfgBody)})
|
|
|
|
}
|
2020-02-16 17:28:59 +00:00
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
func (h *harness) stageNewAccount(accountID string, anon bool) sigcred.Signifier {
|
2020-04-18 18:05:56 +00:00
|
|
|
sig, pubKeyBody := sigcred.TestSignifierPGP(accountID, anon, h.rand)
|
|
|
|
if !anon {
|
|
|
|
h.cfg.Accounts = append(h.cfg.Accounts, Account{
|
|
|
|
ID: accountID,
|
2020-04-26 20:23:03 +00:00
|
|
|
Signifiers: []sigcred.SignifierUnion{{PGPPublicKey: &sigcred.SignifierPGP{
|
2020-04-18 18:05:56 +00:00
|
|
|
Body: string(pubKeyBody),
|
|
|
|
}}},
|
|
|
|
})
|
|
|
|
h.stageCfg()
|
|
|
|
}
|
|
|
|
return sig
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *harness) stageAccessControls(aclYAML string) {
|
|
|
|
if err := yaml.Unmarshal([]byte(aclYAML), &h.cfg.AccessControls); err != nil {
|
|
|
|
h.t.Fatal(err)
|
|
|
|
}
|
|
|
|
h.stageCfg()
|
|
|
|
}
|
|
|
|
|
2020-03-14 22:14:18 +00:00
|
|
|
func (h *harness) checkout(branch plumbing.ReferenceName) {
|
2020-04-26 20:23:03 +00:00
|
|
|
w, err := h.proj.GitRepo.Worktree()
|
2020-03-14 22:14:18 +00:00
|
|
|
if err != nil {
|
|
|
|
h.t.Fatal(err)
|
2020-03-04 23:34:02 +00:00
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
head, err := h.proj.GetHeadCommit()
|
2020-04-05 18:28:32 +00:00
|
|
|
if errors.Is(err, ErrHeadIsZero) {
|
2020-04-24 19:33:33 +00:00
|
|
|
// if HEAD is not resolvable to any hash than the Checkout method
|
|
|
|
// doesn't work, just set HEAD manually.
|
2020-04-05 18:28:32 +00:00
|
|
|
ref := plumbing.NewSymbolicReference(plumbing.HEAD, branch)
|
2020-04-26 20:23:03 +00:00
|
|
|
if err := h.proj.GitRepo.Storer.SetReference(ref); err != nil {
|
2020-04-05 18:28:32 +00:00
|
|
|
h.t.Fatal(err)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
} else if err != nil {
|
2020-03-14 22:14:18 +00:00
|
|
|
h.t.Fatal(err)
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
_, err = h.proj.GitRepo.Storer.Reference(branch)
|
2020-03-22 23:56:00 +00:00
|
|
|
if errors.Is(err, plumbing.ErrReferenceNotFound) {
|
2020-03-14 22:14:18 +00:00
|
|
|
err = w.Checkout(&git.CheckoutOptions{
|
2020-04-26 20:23:03 +00:00
|
|
|
Hash: head.Hash,
|
2020-03-14 22:14:18 +00:00
|
|
|
Branch: branch,
|
|
|
|
Create: true,
|
|
|
|
})
|
|
|
|
} else if err != nil {
|
|
|
|
h.t.Fatalf("checking if branch already exists: %v", branch)
|
|
|
|
} else {
|
|
|
|
err = w.Checkout(&git.CheckoutOptions{
|
|
|
|
Branch: branch,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
h.t.Fatalf("checking out branch: %v", err)
|
|
|
|
}
|
2020-02-15 22:13:50 +00:00
|
|
|
}
|
2020-02-22 00:37:19 +00:00
|
|
|
|
2020-02-29 20:02:25 +00:00
|
|
|
func (h *harness) reset(to plumbing.Hash, mode git.ResetMode) {
|
2020-04-26 20:23:03 +00:00
|
|
|
w, err := h.proj.GitRepo.Worktree()
|
2020-02-29 20:02:25 +00:00
|
|
|
if err != nil {
|
|
|
|
h.t.Fatal(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
err = w.Reset(&git.ResetOptions{
|
|
|
|
Commit: to,
|
|
|
|
Mode: mode,
|
|
|
|
})
|
|
|
|
if err != nil {
|
|
|
|
h.t.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-24 19:33:33 +00:00
|
|
|
type verifyExpectation int
|
|
|
|
|
|
|
|
const (
|
|
|
|
verifyShouldSucceed verifyExpectation = 1
|
|
|
|
verifyShouldFail verifyExpectation = 0
|
|
|
|
verifySkip verifyExpectation = -1
|
|
|
|
)
|
|
|
|
|
2020-03-14 22:14:18 +00:00
|
|
|
func (h *harness) tryCommit(
|
2020-04-24 19:33:33 +00:00
|
|
|
verifyExp verifyExpectation,
|
2020-04-26 20:23:03 +00:00
|
|
|
payUn PayloadUnion,
|
|
|
|
accountSig sigcred.Signifier,
|
|
|
|
) Commit {
|
2020-03-14 22:14:18 +00:00
|
|
|
if accountSig != nil {
|
|
|
|
var err error
|
2020-04-26 20:23:03 +00:00
|
|
|
if payUn, err = h.proj.AccreditPayload(payUn, accountSig); err != nil {
|
|
|
|
h.t.Fatalf("accrediting payload: %v", err)
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
commit, err := h.proj.Commit(payUn)
|
2020-03-14 22:14:18 +00:00
|
|
|
if err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("committing PayloadChange: %v", err)
|
2020-04-24 19:33:33 +00:00
|
|
|
} else if verifyExp == verifySkip {
|
2020-04-26 20:23:03 +00:00
|
|
|
return commit
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
branch, err := h.proj.ReferenceToBranchName(plumbing.HEAD)
|
2020-03-14 22:14:18 +00:00
|
|
|
if err != nil {
|
|
|
|
h.t.Fatalf("determining checked out branch: %v", err)
|
|
|
|
}
|
|
|
|
|
2020-04-24 19:33:33 +00:00
|
|
|
shouldSucceed := verifyExp > 0
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
err = h.proj.VerifyCommits(branch, []Commit{commit})
|
2020-03-14 22:14:18 +00:00
|
|
|
if shouldSucceed && err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("verifying commit %q: %v", commit.Hash, err)
|
2020-03-14 22:14:18 +00:00
|
|
|
} else if shouldSucceed {
|
2020-04-26 20:23:03 +00:00
|
|
|
return commit
|
2020-03-14 22:14:18 +00:00
|
|
|
} else if !shouldSucceed && err == nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("verifying commit %q should have failed", commit.Hash)
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
|
|
|
|
2020-04-05 18:28:32 +00:00
|
|
|
var parentHash plumbing.Hash
|
2020-04-26 20:23:03 +00:00
|
|
|
if commit.Object.NumParents() > 0 {
|
|
|
|
parentHash = commit.Object.ParentHashes[0]
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
|
|
|
|
2020-04-05 18:28:32 +00:00
|
|
|
h.reset(parentHash, git.HardReset)
|
2020-04-26 20:23:03 +00:00
|
|
|
return commit
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
|
|
|
|
2020-04-18 18:05:56 +00:00
|
|
|
func (h *harness) assertCommitChange(
|
2020-04-24 19:33:33 +00:00
|
|
|
verifyExp verifyExpectation,
|
2020-03-14 22:14:18 +00:00
|
|
|
msg string,
|
2020-04-26 20:23:03 +00:00
|
|
|
sig sigcred.Signifier,
|
|
|
|
) Commit {
|
|
|
|
payUn, err := h.proj.NewPayloadChange(msg)
|
2020-03-14 22:14:18 +00:00
|
|
|
if err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
h.t.Fatalf("creating PayloadChange: %v", err)
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
2020-04-26 20:23:03 +00:00
|
|
|
return h.tryCommit(verifyExp, payUn, sig)
|
2020-03-14 22:14:18 +00:00
|
|
|
}
|
|
|
|
|
2020-02-22 00:37:19 +00:00
|
|
|
func TestHasStagedChanges(t *testing.T) {
|
2020-04-18 18:05:56 +00:00
|
|
|
h := newHarness(t)
|
|
|
|
rootSig := h.stageNewAccount("root", false)
|
2020-02-22 00:37:19 +00:00
|
|
|
assertHasStaged := func(expHasStaged bool) {
|
2020-04-26 20:23:03 +00:00
|
|
|
hasStaged, err := h.proj.HasStagedChanges()
|
2020-02-22 00:37:19 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("error calling HasStagedChanges: %v", err)
|
|
|
|
} else if hasStaged != expHasStaged {
|
|
|
|
t.Fatalf("expected HasStagedChanges to return %v", expHasStaged)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// the harness starts with some staged changes
|
|
|
|
assertHasStaged(true)
|
|
|
|
|
2020-04-18 18:05:56 +00:00
|
|
|
h.stage(map[string]string{"foo": "bar"})
|
2020-02-22 00:37:19 +00:00
|
|
|
assertHasStaged(true)
|
2020-04-24 19:33:33 +00:00
|
|
|
h.assertCommitChange(verifyShouldSucceed, "first commit", rootSig)
|
2020-02-22 00:37:19 +00:00
|
|
|
assertHasStaged(false)
|
|
|
|
|
2020-04-18 18:05:56 +00:00
|
|
|
h.stage(map[string]string{"foo": ""}) // delete foo
|
2020-02-22 00:37:19 +00:00
|
|
|
assertHasStaged(true)
|
2020-04-24 19:33:33 +00:00
|
|
|
h.assertCommitChange(verifyShouldSucceed, "second commit", rootSig)
|
2020-02-22 00:37:19 +00:00
|
|
|
assertHasStaged(false)
|
|
|
|
}
|
2020-02-29 20:02:25 +00:00
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
// TestThisProjectStillVerifies opens this actual project and ensures that all
|
|
|
|
// commits in it still verify.
|
|
|
|
func TestThisProjectStillVerifies(t *testing.T) {
|
|
|
|
proj, err := OpenProject(".")
|
2020-03-04 23:39:52 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("error opening repo: %v", err)
|
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
headCommit, err := proj.GetHeadCommit()
|
normalize how git commits are interacted with, including changing VerifyComit -> VerifyCommits
---
type: change
message: |-
normalize how git commits are interacted with, including changing VerifyComit -> VerifyCommits
This commit attempts to normalize git commit interactions in order to reduce
the amount of manual `GitRepo.CommitObject`, `GitRepo.TreeObject`,
`Commit.UnmarshalText`, and `Commit.Interface` calls are done, by creating a
single structure (`GitCommit`) which holds the output of those calls, and is
only created by a single method (`GetGitCommit`), which is then used by a bunch
of other methods to expand its functionality, including implementing a range
request which can be used by verify and the pre-receive hook (though it's only
used by the hook, currently).
change_hash: AMae4PL6+jrxhn2KEGHejstcdT37Gw/jjkl/UuovHcgd
credentials:
- type: pgp_signature
pub_key_id: 95C46FA6A41148AC
body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl5uhvoACgkQlcRvpqQRSKzJrhAAqi2LEQVTyVktfsOBv/CZmefclLLqWTChVoeIZt2EAGDDGygmrx88hI0SEAviOzPMn0kiZFDeY5k7ICJMhJ9RVDU9WjH7fbOboMJW19rVhx6Ke/M2ERtrT0OFLRmFVJVDM0P8SEheQvR3HE/iiypBICVCtp+meHEq9mOJWZlZnoCqMaulAy/Nnq4N1VD0yPPlr16+yxMqedKHcgKbcH8K61ltNAjXDT+tCWwCq1huA5MVSuTm5EwqIeKPN6JKgwATv8Ku2GhYZWHSGUwecP1J3x2XTDPeChCQVDpC232Pxwk8z/D36F3J/XOfkdl0QYQ077xL1IJfYOnuuHir47CokDf3G0XCQnJ/+X4pZdtP387rc045o/2bhUi2U4eJ5HgS7Hvyi6EApT0Czv7SeJePTvdnRUYse8ZYuIwYXj5GWWxnbKQzLpyjcHdQc2a3B3RN84zXqqAOS6ObFrFPZQIfz2rfQojZN8kvcmUvYhJXSaT65XmqFjyJ4n6grrEnK/N+MfbnpzyF/yvlzxWPqGFQOQj9meosbTAdgZbmdwYqa5r1ee8DmlkzNJJxze96h503a733yciN8Ef4hGZNlRV6YFegkK/cCgKaA4NCEALKb1t0Uri5gnPldXk4HsPF+23GANbE7mjytY8ra3fhXG4VhaFt/WsLg3Bu7djQ0H74y+g=
account: mediocregopher
2020-03-15 19:50:24 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("getting repo head: %v", err)
|
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
allCommits, err := proj.GetCommitRange(plumbing.ZeroHash, headCommit.Hash)
|
2020-03-04 23:39:52 +00:00
|
|
|
if err != nil {
|
2020-04-26 20:23:03 +00:00
|
|
|
t.Fatalf("getting all commits (up to %q): %v", headCommit.Hash, err)
|
2020-03-04 23:39:52 +00:00
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
checkedOutBranch, err := proj.ReferenceToBranchName(plumbing.HEAD)
|
2020-03-04 23:39:52 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("error determining checked out branch: %v", err)
|
|
|
|
}
|
|
|
|
|
2020-04-26 20:23:03 +00:00
|
|
|
if err := proj.VerifyCommits(checkedOutBranch, allCommits); err != nil {
|
normalize how git commits are interacted with, including changing VerifyComit -> VerifyCommits
---
type: change
message: |-
normalize how git commits are interacted with, including changing VerifyComit -> VerifyCommits
This commit attempts to normalize git commit interactions in order to reduce
the amount of manual `GitRepo.CommitObject`, `GitRepo.TreeObject`,
`Commit.UnmarshalText`, and `Commit.Interface` calls are done, by creating a
single structure (`GitCommit`) which holds the output of those calls, and is
only created by a single method (`GetGitCommit`), which is then used by a bunch
of other methods to expand its functionality, including implementing a range
request which can be used by verify and the pre-receive hook (though it's only
used by the hook, currently).
change_hash: AMae4PL6+jrxhn2KEGHejstcdT37Gw/jjkl/UuovHcgd
credentials:
- type: pgp_signature
pub_key_id: 95C46FA6A41148AC
body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl5uhvoACgkQlcRvpqQRSKzJrhAAqi2LEQVTyVktfsOBv/CZmefclLLqWTChVoeIZt2EAGDDGygmrx88hI0SEAviOzPMn0kiZFDeY5k7ICJMhJ9RVDU9WjH7fbOboMJW19rVhx6Ke/M2ERtrT0OFLRmFVJVDM0P8SEheQvR3HE/iiypBICVCtp+meHEq9mOJWZlZnoCqMaulAy/Nnq4N1VD0yPPlr16+yxMqedKHcgKbcH8K61ltNAjXDT+tCWwCq1huA5MVSuTm5EwqIeKPN6JKgwATv8Ku2GhYZWHSGUwecP1J3x2XTDPeChCQVDpC232Pxwk8z/D36F3J/XOfkdl0QYQ077xL1IJfYOnuuHir47CokDf3G0XCQnJ/+X4pZdtP387rc045o/2bhUi2U4eJ5HgS7Hvyi6EApT0Czv7SeJePTvdnRUYse8ZYuIwYXj5GWWxnbKQzLpyjcHdQc2a3B3RN84zXqqAOS6ObFrFPZQIfz2rfQojZN8kvcmUvYhJXSaT65XmqFjyJ4n6grrEnK/N+MfbnpzyF/yvlzxWPqGFQOQj9meosbTAdgZbmdwYqa5r1ee8DmlkzNJJxze96h503a733yciN8Ef4hGZNlRV6YFegkK/cCgKaA4NCEALKb1t0Uri5gnPldXk4HsPF+23GANbE7mjytY8ra3fhXG4VhaFt/WsLg3Bu7djQ0H74y+g=
account: mediocregopher
2020-03-15 19:50:24 +00:00
|
|
|
t.Fatal(err)
|
2020-03-04 23:39:52 +00:00
|
|
|
}
|
|
|
|
}
|
2020-04-09 02:10:33 +00:00
|
|
|
|
|
|
|
func TestShortHashResolving(t *testing.T) {
|
2020-04-18 18:05:56 +00:00
|
|
|
// TODO ideally this test would test that conflicting hashes are noticed,
|
|
|
|
// but that's hard...
|
2020-04-09 02:10:33 +00:00
|
|
|
h := newHarness(t)
|
2020-04-18 18:05:56 +00:00
|
|
|
rootSig := h.stageNewAccount("root", false)
|
2020-04-26 20:23:03 +00:00
|
|
|
hash := h.assertCommitChange(verifyShouldSucceed, "first commit", rootSig).Hash
|
2020-04-09 02:10:33 +00:00
|
|
|
hashStr := hash.String()
|
|
|
|
t.Log(hashStr)
|
|
|
|
|
|
|
|
for i := 2; i < len(hashStr); i++ {
|
2020-04-26 20:23:03 +00:00
|
|
|
gotCommit, err := h.proj.GetCommitByRevision(plumbing.Revision(hashStr[:i]))
|
2020-04-09 02:10:33 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("resolving %q: %v", hashStr[:i], err)
|
2020-04-26 20:23:03 +00:00
|
|
|
} else if gotCommit.Hash != hash {
|
2020-04-09 02:10:33 +00:00
|
|
|
t.Fatalf("expected hash %q but got %q",
|
2020-04-26 20:23:03 +00:00
|
|
|
gotCommit.Hash, hash)
|
2020-04-09 02:10:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|