From a5c217105149ffaa314c68593d56e46e02a4dc44 Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Fri, 18 Sep 2020 10:04:47 -0700 Subject: [PATCH] test using csv:quoteValues --- .../reporting_and_security/spaces.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/x-pack/test/reporting_api_integration/reporting_and_security/spaces.ts b/x-pack/test/reporting_api_integration/reporting_and_security/spaces.ts index da38db9490888..3f2b2e7116206 100644 --- a/x-pack/test/reporting_api_integration/reporting_and_security/spaces.ts +++ b/x-pack/test/reporting_api_integration/reporting_and_security/spaces.ts @@ -62,7 +62,11 @@ export default function ({ getService }: FtrProviderContext) { }); it('should use formats from non-default spaces', async () => { - setSpaceConfig('non_default_space', { 'csv:separator': ';', 'dateFormat:tz': 'US/Alaska' }); + setSpaceConfig('non_default_space', { + 'csv:separator': ';', + 'csv:quoteValues': false, + 'dateFormat:tz': 'US/Alaska', + }); const path = await reportingAPI.postJobJSON( `/s/non_default_space/api/reporting/generate/csv`, { @@ -71,7 +75,7 @@ export default function ({ getService }: FtrProviderContext) { ); const csv = await getCompleted$(path).toPromise(); expect(csv).to.match( - /^"order_date";category;"customer_first_name";"customer_full_name";"total_quantity";"total_unique_products";"taxless_total_price";"taxful_total_price";currency\n"Jul 11, 2019 @ 16:00:00.000";/ + /^order_date;category;customer_first_name;customer_full_name;total_quantity;total_unique_products;taxless_total_price;taxful_total_price;currency\nJul 11, 2019 @ 16:00:00.000;/ ); });