Ejemplo n.º 1
0
func testTaoHostAttest(t *testing.T, th Host) {
	a, err := th.Attest(testChild, nil, nil, nil, auth.Const(true))
	if err != nil {
		t.Fatal("Couldn't attest to a trival statement:", err)
	}

	if a == nil {
		t.Fatal("Incorrectly returned an empty attestation from a successful Attest")
	}
}
Ejemplo n.º 2
0
func TestVerifyDirectiveWithBadSays(t *testing.T) {
	params := Params{
		Says: auth.Const(true),
	}
	expectError(&params, t)
}