File tree 1 file changed +10
-6
lines changed
test/integration/workload_metadata_config/controls
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 51
51
its ( :exit_status ) { should eq 0 }
52
52
its ( :stderr ) { should eq '' }
53
53
54
- let! ( :iam ) do
54
+ let ( :bindings ) do
55
55
if subject . exit_status == 0
56
- JSON . parse ( subject . stdout )
56
+ JSON . parse ( subject . stdout , symbolize_names : true ) [ :bindings ]
57
57
else
58
- { }
58
+ [ ]
59
59
end
60
60
end
61
61
it "has expected registry roles" do
62
- expect ( iam [ 'bindings' ] ) . to include (
63
- { "members" => [ "serviceAccount:#{ service_account } " ] , "role" => "roles/storage.objectViewer" } ,
64
- { "members" => [ "serviceAccount:#{ service_account } " ] , "role" => "roles/artifactregistry.reader" }
62
+ expect ( bindings ) . to include (
63
+ members : including ( "serviceAccount:#{ service_account } " ) ,
64
+ role : "roles/storage.objectViewer" ,
65
+ )
66
+ expect ( bindings ) . to include (
67
+ members : including ( "serviceAccount:#{ service_account } " ) ,
68
+ role : "roles/artifactregistry.reader" ,
65
69
)
66
70
end
67
71
end
You can’t perform that action at this time.
0 commit comments