pndaproject / pnda-heat-templates

Resources for launching PNDA on Openstack
Other
2 stars 26 forks source link

Adding Help command and Stack name validation #126 #136

Closed sreekanthmaplelabs closed 6 years ago

sreekanthmaplelabs commented 6 years ago

Add Help command and Stack name validation in check-stack.sh file.

Analysis Right now Help command argument and Stack name validation is not handled.

Solution Help command is added if user runs script with invalid arguments script will intimate regarding script usage with print messages Stack name is handled if user runs script with invalid Stack name script will intimate with print messages

File modified check-stack.sh : Adding Help command and Stack name validation

Testcase

  1. Running script without any arguments.
  2. Running script with more than one arguments.
  3. Running script with help argument (--help).
  4. Running script with help argument (-h).
  5. Running script with valid stack name.
  6. Running script with invalid stack name.