Skip to content

Commit

Permalink
update the usage section with new parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh committed Nov 12, 2021
1 parent ce6972a commit 2f0fb48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cypress/bwctest-osd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ function usage() {
echo "Optional arguments:"
echo -e "-a BIND_ADDRESS\t, defaults to localhost | 127.0.0.1, can be changed to any IP or domain name for the cluster location."
echo -e "-p BIND_PORT\t, defaults to 9200 or 5601 depends on OpenSearch or Dashboards, can be changed to any port for the cluster location."
echo -e "-b BUNDLED_OSD\t(true | false), defaults to true. Specify the usage of bundled Dashboards or not."
echo -e "-c CREDENTIAL\t(usename:password), no defaults, effective when SECURITY_ENABLED=true."
echo -e "-b BUNDLED_OSD\t(true | false), defaults to false. Specify the usage of bundled Dashboards or not."
echo -e "-v VERSIONS\t(true | false), defaults to a defind test array in the script. Specify the versions of the tested Dashboards. It could be a single version or multiple."
echo -e "-o OPENSEARCH\t, no defaults and must provide. Specify the tested OpenSearch which must be named opensearch and formatted as tar.gz."
echo -e "-d OSD\t, no defaults and must provide. Specify the tested OpenSearch Dashboards which must be named opensearch-dashboards and formatted as tar.gz."
echo -e "-h\tPrint this message."
echo "--------------------------------------------------------------------------"
}
Expand Down Expand Up @@ -133,7 +135,7 @@ do
echo "---------------set up opensearch env for $version---------------"
rm -rf "$opensearch_dir/data"
cd $opensearch_dir
cp "$cwd/cypress/test-data/osd/$version.tar.gz" .
cp "$cwd/cypress/test-data/$osdtype/$version.tar.gz" .
tar -xvf "$opensearch_dir/$version.tar.gz" >> /dev/null 2>&1
rm "$version.tar.gz"
cd "$testdir"
Expand Down

0 comments on commit 2f0fb48

Please sign in to comment.