Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Operators configure bucket and CloudFront domain with env credentials; deploy plans upload RS 4+2 shards and attach signed edge URLs to BGP swarm magnets. Agents fetch LAN, CloudFront, then C2. Forge panel adds test and IAM policy JSON.
14 lines
348 B
Go
14 lines
348 B
Go
package atlas
|
|
|
|
import "testing"
|
|
|
|
func TestNormalizeFleetGossipShardAdvert(t *testing.T) {
|
|
r, ok := NormalizeFleetGossipRecord(FleetGossipRecord{
|
|
Kind: FleetGossipHaveShard, AgentID: "a", Token: "t", ShardHash: "h",
|
|
Region: "us-west-2", ShardIndex: 4,
|
|
})
|
|
if !ok || r.ShardAdvert != "us-west-2:4" {
|
|
t.Fatalf("advert=%q", r.ShardAdvert)
|
|
}
|
|
}
|