Skip to content

Commit 8f890e9

Browse files
andreymyssakSergeyMyssakjoshuarrrr
authored
[CCI] Replace node with scripts/use_node in functional tests (#3783)
* Replace node with scripts/use_node (#3719) Co-authored-by: Sergey Myssak <sergey.myssak@gmail.com> Signed-off-by: Andrey Myssak <andreymyssak@gmail.com> * Update CHANGELOG.md (#3719) Co-authored-by: Sergey Myssak <sergey.myssak@gmail.com> Signed-off-by: Andrey Myssak <andreymyssak@gmail.com> --------- Signed-off-by: Andrey Myssak <andreymyssak@gmail.com> Co-authored-by: Sergey Myssak <sergey.myssak@gmail.com> Co-authored-by: Josh Romero <rmerqg@amazon.com>
1 parent c755b49 commit 8f890e9

File tree

22 files changed

+43
-42
lines changed

22 files changed

+43
-42
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
192192
- [Vis Builder] Adds field unit tests ([#3211](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3211))
193193
- [BWC Tests] Add BWC tests for 2.6.0 ([#3356](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3356))
194194
- Prevent primitive linting limitations from being applied to unit tests found under `src/setup_node_env` ([#3403](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3403))
195+
- [Tests] Use `scripts/use_node` instead of `node` in functional test plugins ([#3783](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3783))
195196

196197
## [2.x]
197198

test/interpreter_functional/plugins/osd_tp_run_pipeline/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"@elastic/eui": "npm:@opensearch-project/oui@1.0.0",

test/plugin_functional/plugins/app_link_test/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_app_status/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_plugin_a/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_plugin_appleave/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_plugin_b/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_plugin_chromeless/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_plugin_route_timeouts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_plugin_static_assets/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/core_provider_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/data_search/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
},
77
"license": "Apache-2.0",
88
"scripts": {
9-
"osd": "node ../../../../scripts/osd.js",
10-
"build": "node ../../../../scripts/remove.js './target' && tsc"
9+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
10+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1111
},
1212
"devDependencies": {
1313
"typescript": "4.0.2"

test/plugin_functional/plugins/doc_views_links_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/doc_views_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/index_patterns/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/management_test_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/opensearch_client_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
},
77
"license": "Apache-2.0",
88
"scripts": {
9-
"osd": "node ../../../../scripts/osd.js",
10-
"build": "node ../../../../scripts/remove.js './target' && tsc"
9+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
10+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1111
},
1212
"devDependencies": {
1313
"typescript": "4.0.2"

test/plugin_functional/plugins/osd_sample_panel_action/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"@elastic/eui": "npm:@opensearch-project/oui@1.0.0",

test/plugin_functional/plugins/osd_top_nav/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/osd_tp_custom_visualizations/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"@elastic/eui": "npm:@opensearch-project/oui@1.0.0",

test/plugin_functional/plugins/rendering_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

test/plugin_functional/plugins/ui_settings_plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"osd": "node ../../../../scripts/osd.js",
12-
"build": "node ../../scripts/remove.js './target' && tsc"
11+
"osd": "../../../../scripts/use_node ../../../../scripts/osd.js",
12+
"build": "../../../../scripts/use_node ../../scripts/remove.js './target' && tsc"
1313
},
1414
"devDependencies": {
1515
"typescript": "4.0.2"

0 commit comments

Comments
 (0)