summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVladyslav Drok <vdrok@mirantis.com>2017-09-29 00:08:23 +0200
committerVladyslav Drok <vdrok@mirantis.com>2018-05-18 08:57:22 +0000
commit40a87d534f24703cbffa1e3b61513381612098ff (patch)
treef9f491d58774338036f8a1d9d9601e07e35700f3 /tools
parent69f1bb8c01095432c740ce21c8a8228ad49511a8 (diff)
downloadpython-ironicclient-40a87d534f24703cbffa1e3b61513381612098ff.tar.gz
Allow to use none auth in functional tests
This change will make possible adding a new functional job running ironic in noauth mode, and accessing it with none auth plugin from the tests. There was no decision if such job is needed, but still seems to be a good thing to keep the code updated to correspond to what is the intended way of working with noauth ironic. Change-Id: I48cf37c87fdb74a3b38742a929698c9bd146d7d1
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_functional.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/run_functional.sh b/tools/run_functional.sh
index ce0c499..cf89a82 100755
--- a/tools/run_functional.sh
+++ b/tools/run_functional.sh
@@ -3,12 +3,11 @@
FUNC_TEST_DIR=$(dirname $0)/../ironicclient/tests/functional/
CONFIG_FILE=$FUNC_TEST_DIR/test.conf
-if [[ -n "$OS_AUTH_TOKEN" ]] && [[ -n "$IRONIC_URL" ]]; then
+if [[ -n "$IRONIC_URL" ]]; then
cat <<END >$CONFIG_FILE
[functional]
api_version = 1
auth_strategy=noauth
-os_auth_token=$OS_AUTH_TOKEN
ironic_url=$IRONIC_URL
END
else