Admit review acts for the three T03 version-3 memos (v11).
Assistant: grok Assistant-Session: 01a106a5-fc07-78c2-b64f-8e04cea25daf
This commit is contained in:
parent
f32a1d4dc6
commit
1aae59feb6
4 changed files with 172 additions and 7 deletions
|
|
@ -23,8 +23,8 @@ func TestInformedDecisionAttributeAdmission(t *testing.T) {
|
|||
if !pkg.Valid {
|
||||
t.Fatalf("package invalid: %+v", pkg.Validation)
|
||||
}
|
||||
if pkg.Metadata.Version != "v10" {
|
||||
t.Fatalf("version = %s; want v10", pkg.Metadata.Version)
|
||||
if pkg.Metadata.Version != "v11" {
|
||||
t.Fatalf("version = %s; want v11", pkg.Metadata.Version)
|
||||
}
|
||||
if strings.Contains(pkg.RegoModule, "view_hash") {
|
||||
t.Fatal("rule module reads view_hash")
|
||||
|
|
@ -50,7 +50,7 @@ func TestInformedDecisionAttributeAdmission(t *testing.T) {
|
|||
if err := json.Unmarshal(raw, &doc); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if doc.PolicyVersion != "v10" {
|
||||
if doc.PolicyVersion != "v11" {
|
||||
t.Fatalf("fixture policy_version = %s", doc.PolicyVersion)
|
||||
}
|
||||
exactKeys := map[string]bool{"memo_version": true, "approval_id": true, "approval_binding_digest": true}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue