File tree Expand file tree Collapse file tree
x-pack/plugins/reporting/server/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ describe('Reporting Config Schema', () => {
112112 . encryptionKey
113113 ) . toBe ( 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq' ) ;
114114
115+ expect ( ConfigSchema . validate ( { encryptionKey : 'weaksauce' } ) . encryptionKey ) . toBe ( 'weaksauce' ) ;
116+
115117 // disableSandbox
116118 expect (
117119 ConfigSchema . validate ( { capture : { browser : { chromium : { disableSandbox : true } } } } )
Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ const CsvSchema = schema.object({
136136const EncryptionKeySchema = schema . conditional (
137137 schema . contextRef ( 'dist' ) ,
138138 true ,
139- schema . maybe ( schema . string ( { minLength : 32 } ) ) , // default value is dynamic in createConfig$
140- schema . string ( { minLength : 32 , defaultValue : 'a' . repeat ( 32 ) } )
139+ schema . maybe ( schema . string ( ) ) , // default value is dynamic in createConfig$
140+ schema . string ( { defaultValue : 'a' . repeat ( 32 ) } )
141141) ;
142142
143143const RolesSchema = schema . object ( {
You can’t perform that action at this time.
0 commit comments