fix(contract): pin action authorization digest
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a02e47-6aac-7ee1-914d-0584c75d3c81
This commit is contained in:
parent
0eb46d61b5
commit
d4024083f8
3 changed files with 12 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
|
|
@ -105,6 +106,10 @@ func TestActionAuthorizationExampleParses(t *testing.T) {
|
|||
if authorization.Approvals.RequiredCount != 2 || len(authorization.Approvals.Entries) != 2 {
|
||||
t.Fatalf("Approvals = %+v; want two-person approval", authorization.Approvals)
|
||||
}
|
||||
wantBinding := api.NewDecisionBinding(authorization.Request)
|
||||
if !reflect.DeepEqual(authorization.Decision.Binding, wantBinding) {
|
||||
t.Fatalf("Decision.Binding = %+v; want canonical binding %+v", authorization.Decision.Binding, wantBinding)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSchemaFilesAreJSON(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue