From e1c850cd8d50b04b0b2d2972a3b7fdd2f02b9a13 Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Mon, 13 Nov 2023 22:55:16 -0700 Subject: [PATCH] fix test 4 --- .../__snapshots__/config_schema.test.ts.snap | 122 ++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap diff --git a/packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap b/packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap new file mode 100644 index 0000000000000..1c9a695f4a78e --- /dev/null +++ b/packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap @@ -0,0 +1,122 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Reporting Config Schema context {"dev":false,"dist":false} produces correct config 1`] = ` +Object { + "capture": Object { + "maxAttempts": 1, + }, + "csv": Object { + "checkForFormulas": true, + "enablePanelActionDownload": true, + "escapeFormulaValues": false, + "maxSizeBytes": ByteSizeValue { + "valueInBytes": 262144000, + }, + "scroll": Object { + "duration": "30s", + "size": 500, + }, + "useByteOrderMarkEncoding": false, + }, + "enabled": true, + "encryptionKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "export_types": Object { + "csv": Object { + "enabled": true, + }, + "pdf": Object { + "enabled": true, + }, + "png": Object { + "enabled": true, + }, + }, + "kibanaServer": Object {}, + "poll": Object { + "jobCompletionNotifier": Object { + "interval": 10000, + "intervalErrorMultiplier": 5, + }, + "jobsRefresh": Object { + "interval": 5000, + "intervalErrorMultiplier": 5, + }, + }, + "queue": Object { + "indexInterval": "week", + "pollEnabled": true, + "pollInterval": "PT3S", + "pollIntervalErrorMultiplier": 10, + "timeout": "PT4M", + }, + "roles": Object { + "allow": Array [ + "reporting_user", + ], + "enabled": true, + }, + "statefulSettings": Object { + "enabled": true, + }, +} +`; + +exports[`Reporting Config Schema context {"dev":false,"dist":true} produces correct config 1`] = ` +Object { + "capture": Object { + "maxAttempts": 3, + }, + "csv": Object { + "checkForFormulas": true, + "enablePanelActionDownload": true, + "escapeFormulaValues": false, + "maxSizeBytes": ByteSizeValue { + "valueInBytes": 262144000, + }, + "scroll": Object { + "duration": "30s", + "size": 500, + }, + "useByteOrderMarkEncoding": false, + }, + "enabled": true, + "export_types": Object { + "csv": Object { + "enabled": true, + }, + "pdf": Object { + "enabled": true, + }, + "png": Object { + "enabled": true, + }, + }, + "kibanaServer": Object {}, + "poll": Object { + "jobCompletionNotifier": Object { + "interval": 10000, + "intervalErrorMultiplier": 5, + }, + "jobsRefresh": Object { + "interval": 5000, + "intervalErrorMultiplier": 5, + }, + }, + "queue": Object { + "indexInterval": "week", + "pollEnabled": true, + "pollInterval": "PT3S", + "pollIntervalErrorMultiplier": 10, + "timeout": "PT4M", + }, + "roles": Object { + "allow": Array [ + "reporting_user", + ], + "enabled": true, + }, + "statefulSettings": Object { + "enabled": true, + }, +} +`;