@@ -57,7 +57,7 @@ describe('FeatureRegistry', () => {
5757 read : {
5858 savedObject : {
5959 all : [ ] ,
60- read : [ 'config' , 'url' ] ,
60+ read : [ 'config' , 'url' , 'telemetry' ] ,
6161 } ,
6262 ui : [ ] ,
6363 } ,
@@ -230,7 +230,7 @@ describe('FeatureRegistry', () => {
230230 expect ( allPrivilege ?. savedObject . all ) . toEqual ( [ 'telemetry' ] ) ;
231231 } ) ;
232232
233- it ( `automatically grants 'read' access to config and url saved objects for both privileges ` , ( ) => {
233+ it ( `automatically grants access to config, url, and telemetry saved objects` , ( ) => {
234234 const feature : KibanaFeatureConfig = {
235235 id : 'test-feature' ,
236236 name : 'Test Feature' ,
@@ -263,7 +263,7 @@ describe('FeatureRegistry', () => {
263263 const allPrivilege = result [ 0 ] . privileges ?. all ;
264264 const readPrivilege = result [ 0 ] . privileges ?. read ;
265265 expect ( allPrivilege ?. savedObject . read ) . toEqual ( [ 'config' , 'url' ] ) ;
266- expect ( readPrivilege ?. savedObject . read ) . toEqual ( [ 'config' , 'url' ] ) ;
266+ expect ( readPrivilege ?. savedObject . read ) . toEqual ( [ 'config' , 'telemetry' , ' url'] ) ;
267267 } ) ;
268268
269269 it ( `automatically grants 'all' access to telemetry and 'read' to [config, url] saved objects for the reserved privilege` , ( ) => {
@@ -332,7 +332,7 @@ describe('FeatureRegistry', () => {
332332 const readPrivilege = result [ 0 ] . privileges ! . read ;
333333 expect ( allPrivilege ?. savedObject . all ) . toEqual ( [ 'telemetry' ] ) ;
334334 expect ( allPrivilege ?. savedObject . read ) . toEqual ( [ 'config' , 'url' ] ) ;
335- expect ( readPrivilege ?. savedObject . read ) . toEqual ( [ 'config' , 'url' ] ) ;
335+ expect ( readPrivilege ?. savedObject . read ) . toEqual ( [ 'config' , 'url' , 'telemetry' ] ) ;
336336 } ) ;
337337
338338 it ( `does not allow duplicate features to be registered` , ( ) => {
0 commit comments