carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package host
2
3import (
4 "bytes"
5 "testing"
6)
7
8func TestActivationCommandsRefuseMissingScope(t *testing.T) {
9 for _, args := range [][]string{nil, {"unknown"}, {"run"}, {"evidence-key"}, {"fence-credentials"}, {"install-control", "unexpected"}} {
10 if err := runSystemClaims(args, &bytes.Buffer{}); err == nil {
11 t.Fatal("accepted", args)
12 }
13 }
14}
15