Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 19b21c3

Browse files
author
Chris Wiechmann
committed
Unit tests fixed
1 parent a496a87 commit 19b21c3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-elk-solution-utils/test/test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ describe('flow-node elk-solution-utils', () => {
1010
beforeEach(async () => {
1111
// We have to simulate the plugin is called from the main API-Builder project, hence we defined the API-Builder root directory as appDir
1212
process.env.ELASTICSEARCH_HOSTS = "http://any.host.com:9200";
13+
// If not set, Elasticsearch-Flow node tries to load the CA, which is not required for the tests
14+
process.env.ELASTICSEARCH_SSL_VERIFICATIONMODE = "false";
1315
plugin = await MockRuntime.loadPlugin(getPlugin, {}, {appDir: path.resolve("../..")});
1416
plugin.setOptions({ validateOutputs: true });
1517
flowNode = plugin.getFlowNode('elk-solution-utils');

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-elk-solution-utils/test/testIndicesManagement.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ describe('flow-node elk-solution-utils indexManagement', () => {
1313
beforeEach(async () => {
1414
// We have to simulate the plugin is called from the main API-Builder project, hence we defined the API-Builder root directory as appDir
1515
process.env.ELASTICSEARCH_HOSTS = "http://any.host.com:9200";
16+
// If not set, Elasticsearch-Flow node tries to load the CA, which is not required for the tests
17+
process.env.ELASTICSEARCH_SSL_VERIFICATIONMODE = "false";
1618
plugin = await MockRuntime.loadPlugin(getPlugin, {}, {appDir: path.resolve("../..")});
1719
plugin.setOptions({ validateOutputs: true });
1820
flowNode = plugin.getFlowNode('elk-solution-utils');

0 commit comments

Comments
 (0)