diff options
author | Jan Synacek <jsynacek@redhat.com> | 2014-02-26 11:26:35 +0100 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2014-02-26 11:29:01 +0100 |
commit | 06eb5d0b02d30c5f56818ddad796d6082fc2a816 (patch) | |
tree | ade1677282fda0f635fe9a52d49a60ad0fb105ad /commands/storage/test | |
parent | 7f9a8fff98ad4c6981b5be08c87a48eed6651f90 (diff) | |
download | openlmi-scripts-06eb5d0b02d30c5f56818ddad796d6082fc2a816.tar.gz openlmi-scripts-06eb5d0b02d30c5f56818ddad796d6082fc2a816.tar.xz openlmi-scripts-06eb5d0b02d30c5f56818ddad796d6082fc2a816.zip |
tests: provide default username and password for cimom authentication
Otherwise shell breaks, for example when the password is provided but
the username is not.
Diffstat (limited to 'commands/storage/test')
-rw-r--r-- | commands/storage/test/lmi/base.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/storage/test/lmi/base.sh b/commands/storage/test/lmi/base.sh index 3cc6d5c..86f256d 100644 --- a/commands/storage/test/lmi/base.sh +++ b/commands/storage/test/lmi/base.sh @@ -36,5 +36,7 @@ HOSTNAME=$( echo $LMI_CIMOM_URL | sed -e 's!^.*//!!' -e 's!/.*!!') PARTITIONS=( $LMI_STORAGE_PARTITIONS ) +LMI_CIMOM_USERNAME=${LMI_CIMOM_USERNAME:-pegasus} +LMI_CIMOM_PASSWORD=${LMI_CIMOM_PASSWORD:-pegasus} export LMI="lmi -n --trace --host \"$LMI_CIMOM_USERNAME:$LMI_CIMOM_PASSWORD@$HOSTNAME\"" |