From 2e053c62df340a2cb26300d0595ef39e11b2d70f Mon Sep 17 00:00:00 2001 From: Lucas Paganini Date: Tue, 14 Jun 2022 22:15:35 -0300 Subject: [PATCH] Revert changes to only apply to the backend alpha --- src/functions/searches/modify-one-query.spec.ts | 4 ++-- .../subscribe-to-one-explorer-search.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions/searches/modify-one-query.spec.ts b/src/functions/searches/modify-one-query.spec.ts index a5a64ca2f..d0caef257 100644 --- a/src/functions/searches/modify-one-query.spec.ts +++ b/src/functions/searches/modify-one-query.spec.ts @@ -88,7 +88,7 @@ describe('modifyOneQuery()', () => { expect(newQuery).withContext(`Expect new query to be different than initial one`).not.toBe(query); expect(newQuery) .withContext(`Expect new query to contain the applied filter`) - .toBe(`tag=${tag} json value.foo == "50" as "foo" | table`); + .toBe(`tag=${tag} json "value.foo" == "50" as "foo" | table`); }), ); @@ -112,7 +112,7 @@ describe('modifyOneQuery()', () => { }; await expectAsync(modifyOneQuery(query, [filter])) .withContext(`Expect invalid filter to cause an error`) - .toBeRejectedWithError(Error, 'netflow (module idx 0) error: Malformed IPv4 Address'); + .toBeRejectedWithError(Error, 'netflow (module idx 0) error: Malformed IPv6 Address'); }), ); }); diff --git a/src/functions/searches/subscribe-to-one-explorer-search/subscribe-to-one-explorer-search.spec.ts b/src/functions/searches/subscribe-to-one-explorer-search/subscribe-to-one-explorer-search.spec.ts index 38fc7a86f..9699f0b6a 100644 --- a/src/functions/searches/subscribe-to-one-explorer-search/subscribe-to-one-explorer-search.spec.ts +++ b/src/functions/searches/subscribe-to-one-explorer-search/subscribe-to-one-explorer-search.spec.ts @@ -239,7 +239,7 @@ describe('subscribeToOneExplorerSearch()', () => { const elementFilters: Array = [ { path: 'value.foo', operation: '!=', value: '50', tag, module: 'json', arguments: null }, ]; - const query = `tag=${tag} json value.foo != "50" as "foo" | raw`; + const query = `tag=${tag} json "value.foo" != "50" as "foo" | raw`; const countAfterFilter = count - 1; const filter: SearchFilter = {