mirror of
https://github.com/tuna/tunasync.git
synced 2025-12-25 22:02:46 +00:00
fix tests
This commit is contained in:
parent
41088c7a12
commit
eedba9a9f3
|
|
@ -45,6 +45,7 @@ docker_image = "tunathu/tunasync-scripts:latest"
|
|||
name = "gnu"
|
||||
provider = "rsync"
|
||||
upstream = "rsync://mirrors.ocf.berkeley.edu/gnu/"
|
||||
rsync_options = [ "--delete-excluded" ]
|
||||
memory_limit = "256M"
|
||||
|
||||
[[mirrors]]
|
||||
|
|
@ -72,6 +73,7 @@ name = "ubuntu"
|
|||
provider = "two-stage-rsync"
|
||||
stage1_profile = "debian"
|
||||
upstream = "rsync://archive.ubuntu.com/ubuntu/"
|
||||
rsync_options = [ "--delete-excluded" ]
|
||||
memory_limit = "256M"
|
||||
|
||||
# vim: ft=toml
|
||||
|
|
@ -125,7 +125,7 @@ func TestRsyncProviderWithAuthentication(t *testing.T) {
|
|||
extraOptions: []string{"--delete-excluded"},
|
||||
logDir: tmpDir,
|
||||
logFile: tmpFile,
|
||||
useIPv6: true,
|
||||
useIPv4: true,
|
||||
interval: 600 * time.Second,
|
||||
}
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ exit 0
|
|||
fmt.Sprintf(
|
||||
"%s %s -aHvh --no-o --no-g --stats --exclude .~tmp~/ "+
|
||||
"--delete --delete-after --delay-updates --safe-links "+
|
||||
"--timeout=120 --contimeout=120 -6 %s %s --delete-excluded",
|
||||
"--timeout=120 --contimeout=120 -4 --delete-excluded %s %s",
|
||||
provider.username, provider.password, provider.upstreamURL, provider.WorkingDir(),
|
||||
),
|
||||
)
|
||||
|
|
@ -361,16 +361,14 @@ exit 0
|
|||
fmt.Sprintf(
|
||||
"-aHvh --no-o --no-g --stats --exclude .~tmp~/ --safe-links "+
|
||||
"--timeout=120 --contimeout=120 --exclude dists/ -6 "+
|
||||
"--exclude-from %s %s %s "+
|
||||
"--delete-excluded --cache",
|
||||
"--exclude-from %s --delete-excluded --cache %s %s",
|
||||
provider.excludeFile, provider.upstreamURL, provider.WorkingDir(),
|
||||
),
|
||||
targetDir,
|
||||
fmt.Sprintf(
|
||||
"-aHvh --no-o --no-g --stats --exclude .~tmp~/ "+
|
||||
"--delete --delete-after --delay-updates --safe-links "+
|
||||
"--timeout=120 --contimeout=120 -6 --exclude-from %s %s %s "+
|
||||
"--delete-excluded --cache",
|
||||
"--timeout=120 --contimeout=120 -6 --exclude-from %s --delete-excluded --cache %s %s",
|
||||
provider.excludeFile, provider.upstreamURL, provider.WorkingDir(),
|
||||
),
|
||||
)
|
||||
|
|
@ -402,8 +400,7 @@ exit 0
|
|||
expectedOutput := fmt.Sprintf(
|
||||
"-aHvh --no-o --no-g --stats --exclude .~tmp~/ --safe-links "+
|
||||
"--timeout=120 --contimeout=120 --exclude dists/ -6 "+
|
||||
"--exclude-from %s %s %s\n"+
|
||||
"--delete-excluded --cache",
|
||||
"--exclude-from %s --delete-excluded --cache %s %s\n",
|
||||
provider.excludeFile, provider.upstreamURL, provider.WorkingDir(),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue