Skip to content

Commit 9c9c7fa

Browse files
Ignore new binauth etag when checking raw json in check func (#5918) (#4208)
Signed-off-by: Modular Magician <[email protected]>
1 parent 4461406 commit 9c9c7fa

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.changelog/5918.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

google-beta/resource_binaryauthorization_policy_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ func testAccCheckBinaryAuthorizationPolicyDefault(t *testing.T, pid string) reso
163163
if err != nil {
164164
return err
165165
}
166+
167+
// new fields will cause this test to fail- if they're simple outputs, we can just ignore them.
166168
delete(pol, "updateTime")
169+
delete(pol, "etag")
167170

168171
defaultPol := defaultBinaryAuthorizationPolicy(pid)
169172
if !reflect.DeepEqual(pol, defaultPol) {

0 commit comments

Comments
 (0)