diff --git a/cypress/test-data/with-security/osd-1.3.2.tar.gz b/cypress/test-data/with-security/osd-1.3.2.tar.gz new file mode 100644 index 000000000000..59404619e30b Binary files /dev/null and b/cypress/test-data/with-security/osd-1.3.2.tar.gz differ diff --git a/cypress/test-data/without-security/osd-1.3.2.tar.gz b/cypress/test-data/without-security/osd-1.3.2.tar.gz new file mode 100644 index 000000000000..8a624041f047 Binary files /dev/null and b/cypress/test-data/without-security/osd-1.3.2.tar.gz differ diff --git a/dev-tools/get-version.sh b/dev-tools/get-version.sh new file mode 100755 index 000000000000..555dd89e9e9c --- /dev/null +++ b/dev-tools/get-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 + +set -e + +PACKAGE_VERSION=$(cat package.json \ +| grep version \ +| head -1 \ +| awk -F: '{ print $2 }' \ +| sed 's/[",]//g' \ +| tr -d [:space:]) + +echo "$PACKAGE_VERSION" \ No newline at end of file