Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Unified expandable panels with mermaid flows, ZIP export, connection tests, and Playwright smoke coverage.
17 lines
385 B
Go
17 lines
385 B
Go
package fargate
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestGenerateBundle(t *testing.T) {
|
|
b, err := GenerateBundle(Options{ShardToken: "t", Shards: [][]byte{[]byte("x")}, TTLHours: 3})
|
|
if err != nil || len(b.TaskDefinitionJSON) == 0 {
|
|
t.Fatalf("err=%v", err)
|
|
}
|
|
if !strings.Contains(string(b.TaskDefinitionJSON), "AF_SHARD_MANIFEST_B64") {
|
|
t.Fatal("missing manifest env")
|
|
}
|
|
}
|