diff --git a/CHANGELOG.md b/CHANGELOG.md index d659c28afce2..9724fed4e41c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,6 +123,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Remove `github-checks-reporter`, an unused dependency ([#3126](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3126)) - Upgrade `vega-lite` dependency to ^5.6.0 ([#3076](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3076)) - Bumps `re2` and `supertest` ([3018](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3018)) +- Allow relaxing the Node.js runtime version requirement ([3402](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3402)) ### 🪛 Refactoring diff --git a/src/setup_node_env/__snapshots__/node_version_validator.test.js.snap b/src/setup_node_env/__snapshots__/node_version_validator.test.js.snap new file mode 100644 index 000000000000..6aa37ace7cc6 --- /dev/null +++ b/src/setup_node_env/__snapshots__/node_version_validator.test.js.snap @@ -0,0 +1,1856 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 3.0.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 3.0.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 3.1.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 3.1.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 5.0.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 5.0.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 5.1.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and no operator [4] should not accept, 5.1.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 3.0.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 3.0.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 3.1.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 3.1.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 5.0.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 5.0.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 5.1.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the caret operator [^4] should not accept, 5.1.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 3.0.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 3.0.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 3.1.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 3.1.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 5.0.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 5.0.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 5.1.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the equals operator [=4] should not accept, 5.1.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 3.0.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.0. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 3.0.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.1. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 3.1.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.0. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 3.1.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.1. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 4.0.0, the exact version 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.0.0. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 4.0.1, a patch upgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.0.1. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 4.1.0, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.1.0. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than operator [>4] should not accept, 4.1.1, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.1.1. Please use a Node.js runtime version that is v5.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than-or-equals operator [>=4] should not accept, 3.0.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.0. Please use a Node.js runtime version that is v4.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than-or-equals operator [>=4] should not accept, 3.0.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.1. Please use a Node.js runtime version that is v4.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than-or-equals operator [>=4] should not accept, 3.1.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.0. Please use a Node.js runtime version that is v4.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the greater-than-or-equals operator [>=4] should not accept, 3.1.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.1. Please use a Node.js runtime version that is v4.0.0 or greater. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 3.0.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 3.0.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 3.1.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 3.1.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 5.0.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 5.0.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.0.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 5.1.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.0. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new major Node.js version using a comparator with only a major version and the tilde operator [~4] should not accept, 5.1.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.1.1. Please use a Node.js runtime version that is v4.0.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.54.0, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.54.1, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.55.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.55.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.56.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.56.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.54.0, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.54.1, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.56.0, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.56.1, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.54.0, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.54.1, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.55.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.55.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.56.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.56.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.54.0, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.54.1, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.55.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.55.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.56.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.56.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 4.54.0, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 4.54.1, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.54.0, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.54.1, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.55.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.55.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.56.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.56.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.54.0, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.54.1, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.55.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.55.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.56.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.56.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.54.0, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.54.1, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.56.0, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.56.1, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.54.0, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.54.0, a major upgrade with lower minor and same patch 2`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.54.1, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.55.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.55.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.56.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.56.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.54.0, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.0. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.54.1, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.1. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.55.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.0. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.55.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.1. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.56.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.0. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.56.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.1. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.54.0, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.0. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.54.1, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.1. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.55.0, the exact version 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.0. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.55.1, a patch upgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.1. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.54.0, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.0. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.54.1, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.1. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.55.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.0. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.55.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.1. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.56.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.0. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.56.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.1. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 4.54.0, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.0. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 4.54.1, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.1. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.54.0, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.54.1, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.55.0, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.55.1, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.56.0, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.56.1, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.54.0, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.54.1, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.56.0, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.56.1, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.54.0, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.54.1, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.55.0, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.55.1, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.56.0, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.0. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation new minor Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.56.1, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.1. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.56.665, a minor upgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.56.666, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 4.56.667, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and no operator [4.55] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the caret operator [^4.55] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.56.665, a minor upgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.56.666, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 4.56.667, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the equals operator [=4.55] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.55.666, the exact version 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.666. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than operator [>4.55] should not accept, 4.55.667, a patch upgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.667. Please use a Node.js runtime version that is v4.56.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the greater-than-or-equals operator [>=4.55] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.0 or greater. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.56.665, a minor upgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.56.666, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 4.56.667, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation non-new Node.js version using a comparator with a version missing its patch and the tilde operator [~4.55] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use a Node.js runtime version that is v4.55.0 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.55.667, a patch upgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.56.665, a minor upgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.56.666, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 4.56.667, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and no operator [4.55.666] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the caret operator [^4.55.666] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v5.0.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.55.667, a patch upgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.56.665, a minor upgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.56.666, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 4.56.667, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the equals operator [=4.55.666] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use Node.js v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than operator [>4.55.666] should not accept, 4.55.666, the exact version 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.666. Please use a Node.js runtime version that is greater than v4.55.666. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the greater-than-or-equals operator [>=4.55.666] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use a Node.js runtime version that is v4.55.666 or greater. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.54.665, a major downgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.54.666, a major downgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.54.667, a major downgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.54.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.55.665, a major downgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.55.666, a major downgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.55.667, a major downgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.55.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.56.665, a major downgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.56.666, a major downgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 3.56.667, a major downgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v3.56.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.54.665, a minor downgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.54.666, a minor downgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.54.667, a minor downgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.54.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.55.665, a patch downgrade 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.55.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.56.665, a minor upgrade with lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.56.666, a minor upgrade with same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 4.56.667, a minor upgrade with higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v4.56.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.54.665, a major upgrade with lower minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.54.666, a major upgrade with lower minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.54.667, a major upgrade with lower minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.54.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.55.665, a major upgrade with same minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.55.666, a major upgrade with same minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.55.667, a major upgrade with same minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.55.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.56.665, a major upgrade with higher minor and lower patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.665. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.56.666, a major upgrade with higher minor and same patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.666. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; + +exports[`Node.js version validation using a comparator that has a complete version and the tilde operator [~4.55.666] should not accept, 5.56.667, a major upgrade with higher minor and higher patch 1`] = ` +"OpenSearch Dashboards cannot start up using the Node.js runtime v5.56.667. Please use a Node.js runtime version that is v4.55.666 or greater and lower than v4.56.0. +" +`; diff --git a/src/setup_node_env/node_version_validator.js b/src/setup_node_env/node_version_validator.js index 504d0970ecf6..f97748aa7907 100644 --- a/src/setup_node_env/node_version_validator.js +++ b/src/setup_node_env/node_version_validator.js @@ -28,27 +28,200 @@ * under the License. */ +/* Note: + * This file uses ES5 in order to provide meaningful output even if an old Node.js runtime is used. + */ + var pkg = require('../../package.json'); -// Note: This is written in ES5 so we can run this before anything else -// and gives support for older NodeJS versions -var currentVersion = (process && process.version) || null; -var rawRequiredVersion = (pkg && pkg.engines && pkg.engines.node) || null; -var requiredVersion = rawRequiredVersion ? 'v' + rawRequiredVersion : rawRequiredVersion; -var currentVersionMajorMinorPatch = currentVersion.match(/^v(\d+)\.(\d+)\.(\d+)/); -var requiredVersionMajorMinorPatch = requiredVersion.match(/^v(\d+)\.(\d+)\.(\d+)/); -var isVersionValid = - currentVersionMajorMinorPatch[1] === requiredVersionMajorMinorPatch[1] && - currentVersionMajorMinorPatch[2] === requiredVersionMajorMinorPatch[2] && - parseInt(currentVersionMajorMinorPatch[3], 10) >= parseInt(requiredVersionMajorMinorPatch[3], 10); - -// Validates current the NodeJS version compatibility when OpenSearch Dashboards starts. -if (!isVersionValid) { - var errorMessage = - `OpenSearch Dashboards was built with ${requiredVersion} and does not support the current Node.js version ${currentVersion}. ` + - `Please use Node.js ${requiredVersion} or a higher patch version.`; - - // Actions to apply when validation fails: error report + exit. - console.error(errorMessage); - process.exit(1); +var pkgEngineNodeVersion = pkg && pkg.engines && pkg.engines.node; +if (!pkgEngineNodeVersion || typeof pkgEngineNodeVersion !== 'string') { + console.error( + 'OpenSearch Dashboards did not report its required version of the Node.js runtime. ' + + 'Please revert any changes that might have been made to the package.json file and try again.' + ); + process.exit(22); +} + +/* Basic semver parsing: This is a very limited subset of what semver supports where only a single comparator, composed + * of an operator and a version, is supported. + * [https://github.com/npm/node-semver/blob/cb1ca1d5480a6c07c12ac31ba5f2071ed530c4ed/README.md#ranges] + * + * The supported operators are: + * > Greater than + * >= Greater than or equal to + * = Equal + * ~ Tilde ranges: Allows patch changes if a minor version is specified but if only a major version is specified, + * it allows minor changes. + * ^ Caret ranges: Allows patch and minor updates when major is non-zero (and we will never have that). + * + * Note: If no operator is specified, equality is assumed. + */ +var requiredParts = pkgEngineNodeVersion.match( + /^\s*(>=?|\^|~|=)?\s*(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[^\d.].*)?$/ +); +if (requiredParts === null) { + console.error( + 'OpenSearch Dashboards did not report its required version of the Node.js runtime in a valid ' + + 'format. Please revert any changes that might have been made to the package.json file and try again.' + ); + process.exit(23); +} + +var comparatorVersion = { + major: requiredParts[2], + minor: requiredParts[3], + patch: requiredParts[4], +}; +var comparatorOperator = requiredParts[1] || '='; +var rangeBottom = { + major: parseInt(comparatorVersion.major, 10) || 0, + minor: parseInt(comparatorVersion.minor, 10) || 0, + patch: parseInt(comparatorVersion.patch, 10) || 0, + inclusive: comparatorOperator.indexOf('>') === -1 || comparatorOperator.indexOf('=') > -1, +}; +var rangeTop = undefined; + +if (!rangeBottom.major) { + console.error( + 'OpenSearch Dashboards did not report its required version of the Node.js runtime in a valid ' + + 'format. Please revert any changes that might have been made to the package.json file and try again.' + ); + process.exit(24); +} + +if (comparatorOperator === '>') { + if (!comparatorVersion.minor) { + // >3 is >=4.0.0 + rangeBottom.major += 1; + rangeBottom.inclusive = true; + } else if (!comparatorVersion.patch) { + // >3.1 is >=3.2.0 + rangeBottom.minor += 1; + rangeBottom.inclusive = true; + } +} + +// =3 is ~3.0.0 and =3.1 is ~3.1.0 +if (comparatorOperator === '=' && (!comparatorVersion.minor || !comparatorVersion.patch)) { + comparatorOperator = '~'; +} + +// =3.1.4 +if (comparatorOperator === '=') { + rangeTop = { + major: rangeBottom.major, + minor: rangeBottom.minor, + patch: rangeBottom.patch, + inclusive: true, + }; +} else if (comparatorOperator === '~') { + if (comparatorVersion.minor) { + // ~3.1.4 and ~3.1 are <3.2.0 + rangeTop = { + major: rangeBottom.major, + minor: rangeBottom.minor + 1, + patch: 0, + }; + } else { + // ~3 is <4.0.0 + rangeTop = { + major: rangeBottom.major + 1, + minor: 0, + patch: 0, + }; + } +} else if (comparatorOperator === '^') { + // ^3.1.4 is <4.0.0 + rangeTop = { + major: rangeBottom.major + 1, + minor: 0, + patch: 0, + }; +} + +function getVersionCompatibilityMessage() { + var versionBottom = 'v' + rangeBottom.major + '.' + rangeBottom.minor + '.' + rangeBottom.patch; + if (comparatorOperator === '=') { + return 'Please use Node.js ' + versionBottom + '.'; + } + + var message = + 'Please use a Node.js runtime version that is ' + + (rangeBottom.inclusive ? versionBottom + ' or greater' : 'greater than ' + versionBottom); + + if (!rangeTop) return message + '.'; + + var versionTop = 'v' + rangeTop.major + '.' + rangeTop.minor + '.' + rangeTop.patch; + return message + ' and lower than ' + versionTop + '.'; +} + +var currentVersion = process && process.version; +if (!currentVersion) { + console.error( + 'OpenSearch Dashboards cannot start up because the JavaScript runtime did not report its version. ' + + getVersionCompatibilityMessage() + ); + process.exit(25); +} + +var currentParts = currentVersion.match(/^\s*v?\s*(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[^\d.].*)?$/); +if (currentParts === null) { + console.error( + 'OpenSearch Dashboards cannot start up because the JavaScript runtime did not report its version in a ' + + 'discernible format. ' + + getVersionCompatibilityMessage() + ); + process.exit(26); +} + +var version = { + major: parseInt(currentParts[1], 10) || 0, + minor: parseInt(currentParts[2], 10) || 0, + patch: parseInt(currentParts[3], 10) || 0, +}; +var satisfiesBottom = false; + +// 4.x.x > 3.1.4 +if (version.major > rangeBottom.major) satisfiesBottom = true; +else if (version.major === rangeBottom.major) { + // 3.2.x > 3.1.4 + if (version.minor > rangeBottom.minor) satisfiesBottom = true; + else if (version.minor === rangeBottom.minor) { + // 3.1.5 >= 3.1.4 + if (version.patch > rangeBottom.patch) satisfiesBottom = true; + // 3.1.4 = 3.1.4 + else if (rangeBottom.inclusive && version.patch === rangeBottom.patch) satisfiesBottom = true; + } +} + +var satisfiesTop = false; +if (satisfiesBottom && rangeTop) { + // 2.x.x < 3.1.4 + if (version.major < rangeTop.major) satisfiesTop = true; + else if (version.major === rangeTop.major) { + // 3.0.x < 3.1.4 + if (version.minor < rangeTop.minor) satisfiesTop = true; + else if (version.minor === rangeTop.minor) { + // 3.1.3 < 3.1.4 + if (version.patch < rangeTop.patch) satisfiesTop = true; + // 3.1.4 = 3.1.4 + else if (rangeTop.inclusive && version.patch === rangeTop.patch) satisfiesTop = true; + } + } +} + +// Fail if the Node.js version doesn't satisfy the requirements of OpenSearch Dashboards +if (!satisfiesBottom || (rangeTop && !satisfiesTop)) { + console.error( + 'OpenSearch Dashboards cannot start up using the Node.js runtime v' + + version.major + + '.' + + version.minor + + '.' + + version.patch + + '. ' + + getVersionCompatibilityMessage() + ); + process.exit(21); } diff --git a/src/setup_node_env/node_version_validator.test.js b/src/setup_node_env/node_version_validator.test.js index cb3639154c6c..8c63ac6035c1 100644 --- a/src/setup_node_env/node_version_validator.test.js +++ b/src/setup_node_env/node_version_validator.test.js @@ -28,83 +28,349 @@ * under the License. */ -var exec = require('child_process').exec; -var pkg = require('../../package.json'); +const semver = require('semver'); +const util = require('util'); +const exec = util.promisify(require('child_process').exec); -var REQUIRED_NODE_JS_VERSION = 'v' + pkg.engines.node; +// Regex pattern to parse test titles which gets used to create new versions +const testTitleMatcher = /(?:(major|minor|patch)\s+(upgrade|downgrade)|(higher|lower)\s+(major|minor|patch))/g; +const testTitleChanges = { + upgrade: 1, + downgrade: -1, + higher: 1, + lower: -1, +}; -describe('NodeVersionValidator', function () { - it('should run the script WITHOUT error when the version is the same', function (done) { - testValidateNodeVersion(done, REQUIRED_NODE_JS_VERSION); - }); +const titleChangesCache = new Map(); - it('should run the script WITHOUT error when only the patch version is higher', function (done) { - testValidateNodeVersion(done, requiredNodeVersionWithDiff(0, 0, +1)); - }); +// Parse the test title and generate a new version +const getUpdatedVersion = (testedVersion, title) => { + let matches; + let majorChange = 0; + let minorChange = 0; + let patchChange = 0; - it('should run the script WITH error if the patch version is lower', function (done) { - var lowerPatchversion = requiredNodeVersionWithDiff(0, 0, -1); - testValidateNodeVersion( - done, - lowerPatchversion, - REQUIRED_NODE_JS_VERSION !== lowerPatchversion - ); - }); + if (titleChangesCache.has(title)) { + const cache = titleChangesCache.get(title); + majorChange = cache.majorChange; + minorChange = cache.minorChange; + patchChange = cache.patchChange; + } else { + while ((matches = testTitleMatcher.exec(title)) !== null) { + const change = testTitleChanges[matches[2]] || testTitleChanges[matches[3]]; + if (matches[1] === 'major' || matches[4] === 'major') majorChange = change; + else if (matches[1] === 'minor' || matches[4] === 'minor') minorChange = change; + else if (matches[1] === 'patch' || matches[4] === 'patch') patchChange = change; + } - it('should run the script WITH error if the major version is higher', function (done) { - testValidateNodeVersion(done, requiredNodeVersionWithDiff(+1, 0, 0), true); - }); + titleChangesCache.set(title, { majorChange, minorChange, patchChange }); + } + + return testedVersion.change(majorChange, minorChange, patchChange); +}; - it('should run the script WITH error if the major version is lower', function (done) { - var lowerMajorVersion = requiredNodeVersionWithDiff(-1, 0, 0); - testValidateNodeVersion( - done, - lowerMajorVersion, - REQUIRED_NODE_JS_VERSION !== lowerMajorVersion +const checkNodeVersionValidation = async (nodeVersion, requiredRange) => { + const mockedProcessVersion = `Object.defineProperty(process, 'version', { value: 'v${nodeVersion}', writable: true });`; + const mockedRequire = ` + const Module = require('module'), + req = Module.prototype.require; + Module.prototype.require = name => name === '../../package.json' ? { engines: { node: '${requiredRange}'}} : req(name);`; + try { + await exec( + `node -e "${mockedProcessVersion}${mockedRequire}require('./node_version_validator.js')"`, + { cwd: __dirname } ); + } catch (ex) { + if (ex.stderr.indexOf('OpenSearch Dashboards') > -1) + return { + error: ex.code, + stderr: ex.stderr, + }; + + throw ex; + } + + return { + error: 0, + }; +}; + +// Create an appropriate test based on how semver feels about the version and range +const _itShouldCorrectlyDealWith = (title, testedVersion, requiredRange) => { + const version = getUpdatedVersion(testedVersion, title); + + return semver.satisfies(version, requiredRange) + ? it(`${requiredRange} should accept, ${version}, ${title}`, async () => { + const { error, stderr } = await checkNodeVersionValidation(version, requiredRange); + expect(error).toEqual(0); // The exit code indicating an acceptable version + expect(stderr).toStrictEqual(undefined); + }) + : it(`${requiredRange} should not accept, ${version}, ${title}`, async () => { + const { error, stderr } = await checkNodeVersionValidation(version, requiredRange); + expect(error).toEqual(21); // The exit code indicating an unacceptable version + expect(stderr).toMatchSnapshot(); + }); +}; + +const itShouldCorrectlyDealWith = (testsToRun, testedVersion, requiredVersion) => + testsToRun.forEach((title) => _itShouldCorrectlyDealWith(title, testedVersion, requiredVersion)); + +const parseVersion = (version) => { + const parts = version?.match(/^\s*v?\s*(\d+)\.(\d+)\.(\d+)(\D.*)?$/) || null; + if (parts === null) throw `<${version}> is not a parsable version.`; + const numericParts = { + major: parseInt(parts[1], 10) || 0, + minor: parseInt(parts[2], 10) || 0, + patch: parseInt(parts[3], 10) || 0, + }; + + // prettier-ignore + const change = (majorChange = 0, minorChange = 0, patchChange = 0) => + (numericParts.major + majorChange) + + '.' + + (numericParts.minor + minorChange) + + '.' + + (numericParts.patch + patchChange); + + return { + get exact() { + return change(); + }, + change, + }; +}; + +describe('Node.js version validation', () => { + describe('using a comparator that has a complete version', () => { + const testedVersion = parseVersion('4.55.666'); + const testsToRun = [ + 'a patch downgrade', + 'the exact version', + 'a patch upgrade', + + 'a minor upgrade with lower patch', + 'a minor upgrade with same patch', + 'a minor upgrade with higher patch', + + 'a minor downgrade with lower patch', + 'a minor downgrade with same patch', + 'a minor downgrade with higher patch', + + 'a major upgrade with same minor and lower patch', + 'a major upgrade with same minor and same patch', + 'a major upgrade with same minor and higher patch', + + 'a major downgrade with same minor and lower patch', + 'a major downgrade with same minor and same patch', + 'a major downgrade with same minor and higher patch', + + 'a major upgrade with lower minor and lower patch', + 'a major upgrade with lower minor and same patch', + 'a major upgrade with lower minor and higher patch', + + 'a major downgrade with lower minor and lower patch', + 'a major downgrade with lower minor and same patch', + 'a major downgrade with lower minor and higher patch', + + 'a major upgrade with higher minor and lower patch', + 'a major upgrade with higher minor and same patch', + 'a major upgrade with higher minor and higher patch', + + 'a major downgrade with higher minor and lower patch', + 'a major downgrade with higher minor and same patch', + 'a major downgrade with higher minor and higher patch', + ]; + + describe('no operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '4.55.666'); + }); + + describe('the equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '=4.55.666'); + }); + + describe('the greater-than operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>4.55.666'); + }); + + describe('the greater-than-or-equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>=4.55.666'); + }); + + describe('the caret operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '^4.55.666'); + }); + + describe('the tilde operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '~4.55.666'); + }); }); - it('should run the script WITH error if the minor version is higher', function (done) { - testValidateNodeVersion(done, requiredNodeVersionWithDiff(0, +1, 0), true); + describe('non-new Node.js version using a comparator with a version missing its patch', () => { + const testedVersion = parseVersion('4.55.666'); + const testsToRun = [ + 'a patch downgrade', + 'the exact version', + 'a patch upgrade', + + 'a minor upgrade with lower patch', + 'a minor upgrade with same patch', + 'a minor upgrade with higher patch', + + 'a minor downgrade with lower patch', + 'a minor downgrade with same patch', + 'a minor downgrade with higher patch', + + 'a major upgrade with same minor and lower patch', + 'a major upgrade with same minor and same patch', + 'a major upgrade with same minor and higher patch', + + 'a major downgrade with same minor and lower patch', + 'a major downgrade with same minor and same patch', + 'a major downgrade with same minor and higher patch', + + 'a major upgrade with lower minor and lower patch', + 'a major upgrade with lower minor and same patch', + 'a major upgrade with lower minor and higher patch', + + 'a major downgrade with lower minor and lower patch', + 'a major downgrade with lower minor and same patch', + 'a major downgrade with lower minor and higher patch', + + 'a major upgrade with higher minor and lower patch', + 'a major upgrade with higher minor and same patch', + 'a major upgrade with higher minor and higher patch', + + 'a major downgrade with higher minor and lower patch', + 'a major downgrade with higher minor and same patch', + 'a major downgrade with higher minor and higher patch', + ]; + + describe('no operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '4.55'); + }); + + describe('the equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '=4.55'); + }); + + describe('the greater-than operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>4.55'); + }); + + describe('the greater-than-or-equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>=4.55'); + }); + + describe('the caret operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '^4.55'); + }); + + describe('the tilde operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '~4.55'); + }); }); - it('should run the script WITH error if the minor version is lower', function (done) { - var lowerMinorVersion = requiredNodeVersionWithDiff(0, -1, 0); - testValidateNodeVersion( - done, - lowerMinorVersion, - REQUIRED_NODE_JS_VERSION !== lowerMinorVersion - ); + describe('new minor Node.js version using a comparator with a version missing its patch', () => { + const testedVersion = parseVersion('4.55.0'); + const testsToRun = [ + 'the exact version', + 'a patch upgrade', + + 'a minor upgrade with same patch', + 'a minor upgrade with higher patch', + + 'a minor downgrade with same patch', + 'a minor downgrade with higher patch', + + 'a major upgrade with same minor and same patch', + 'a major upgrade with same minor and higher patch', + + 'a major downgrade with same minor and same patch', + 'a major downgrade with same minor and higher patch', + + 'a major upgrade with lower minor and same patch', + 'a major upgrade with lower minor and higher patch', + + 'a major downgrade with lower minor and same patch', + 'a major downgrade with lower minor and higher patch', + + 'a major upgrade with higher minor and same patch', + 'a major upgrade with higher minor and higher patch', + + 'a major downgrade with higher minor and same patch', + 'a major downgrade with higher minor and higher patch', + ]; + + describe('no operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '4.55'); + }); + + describe('the equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '=4.55'); + }); + + describe('the greater-than operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>4.55'); + }); + + describe('the greater-than-or-equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>=4.55'); + }); + + describe('the caret operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '^4.55'); + }); + + describe('the tilde operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '~4.55'); + }); }); -}); -function requiredNodeVersionWithDiff(majorDiff, minorDiff, patchDiff) { - var matches = REQUIRED_NODE_JS_VERSION.match(/^v(\d+)\.(\d+)\.(\d+)/); - var major = Math.max(parseInt(matches[1], 10) + majorDiff, 0); - var minor = Math.max(parseInt(matches[2], 10) + minorDiff, 0); - var patch = Math.max(parseInt(matches[3], 10) + patchDiff, 0); + describe('new major Node.js version using a comparator with only a major version', () => { + const testedVersion = parseVersion('4.0.0'); + const testsToRun = [ + 'the exact version', + 'a patch upgrade', - return `v${major}.${minor}.${patch}`; -} + 'a minor upgrade with same patch', + 'a minor upgrade with higher patch', -function testValidateNodeVersion(done, versionToTest, expectError = false) { - var processVersionOverwrite = `Object.defineProperty(process, 'version', { value: '${versionToTest}', writable: true });`; - var command = `node -e "${processVersionOverwrite}require('./node_version_validator.js')"`; + 'a major upgrade with same minor and same patch', + 'a major upgrade with same minor and higher patch', - exec(command, { cwd: __dirname }, function (error, _stdout, stderr) { - expect(stderr).toBeDefined(); - if (expectError) { - expect(error.code).toBe(1); + 'a major downgrade with same minor and same patch', + 'a major downgrade with same minor and higher patch', - var speficicErrorMessage = - `OpenSearch Dashboards was built with ${REQUIRED_NODE_JS_VERSION} and does not support the current Node.js version ${versionToTest}. ` + - `Please use Node.js ${REQUIRED_NODE_JS_VERSION} or a higher patch version.\n`; + 'a major upgrade with higher minor and same patch', + 'a major upgrade with higher minor and higher patch', - expect(stderr).toStrictEqual(speficicErrorMessage); - } else { - expect(error).toBeNull(); - expect(stderr).toHaveLength(0); - } - done(); + 'a major downgrade with higher minor and same patch', + 'a major downgrade with higher minor and higher patch', + ]; + + describe('no operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '4'); + }); + + describe('the equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '=4'); + }); + + describe('the greater-than operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>4'); + }); + + describe('the greater-than-or-equals operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '>=4'); + }); + + describe('the caret operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '^4'); + }); + + describe('the tilde operator', () => { + itShouldCorrectlyDealWith(testsToRun, testedVersion, '~4'); + }); }); -} +});