@@ -101,7 +101,7 @@ const expectedAccessByScenario: Scenario[] = [
101101 {
102102 name : 'Geothermal.Admin' ,
103103 groups : [ 'Geothermal.Admin' ] ,
104- allowedResources : [ ] ,
104+ allowedResources : [ 'water.locations' ] ,
105105 } ,
106106 {
107107 name : 'AMP.Viewer + Geothermal.Editor' ,
@@ -178,18 +178,32 @@ const specialResourceExpectations: Array<{
178178 expected : true ,
179179 } ,
180180 {
181- name : 'AMP editor can list water.locations' ,
181+ name : 'AMP editor cannot list water.locations' ,
182182 groups : [ 'AMP.Editor' ] ,
183183 resource : 'water.locations' ,
184184 action : 'list' ,
185+ expected : false ,
186+ } ,
187+ {
188+ name : 'AMP admin can list water.locations' ,
189+ groups : [ 'AMP.Admin' ] ,
190+ resource : 'water.locations' ,
191+ action : 'list' ,
185192 expected : true ,
186193 } ,
187194 {
188- name : 'AMP editor can create water.locations' ,
195+ name : 'Geothermal admin can show water.locations' ,
196+ groups : [ 'Geothermal.Admin' ] ,
197+ resource : 'water.locations' ,
198+ action : 'show' ,
199+ expected : true ,
200+ } ,
201+ {
202+ name : 'AMP editor cannot create water.locations' ,
189203 groups : [ 'AMP.Editor' ] ,
190204 resource : 'water.locations' ,
191205 action : 'create' ,
192- expected : true ,
206+ expected : false ,
193207 } ,
194208 {
195209 name : 'AMP editor can manage water.wellinventoryform' ,
0 commit comments