Skip to content

Commit

Permalink
Set datastore version for terraform trove job by querying from devsta…
Browse files Browse the repository at this point in the history
…ck (apache#239)

* Set datastore version for terraform trove job by query from devstack
  • Loading branch information
liusheng authored and kiwik committed Jun 15, 2018
1 parent 968566c commit b0cdd0f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@
# Run the DNS test 100 testcases at a time
export OS_DB_ENVIRONMENT=1
export OS_DB_DATASTORE_VERSION="5.6"
export OS_DB_DATASTORE_TYPE=mysql
mysql_version=$(openstack datastore version list ${OS_DB_DATASTORE_TYPE} -f value -c Name --sort-column Name |head -n 1)
export OS_DB_DATASTORE_VERSION=${mysql_version}
testcases=`go test ./openstack/ -v -list 'Acc'`
testcases=`echo "$testcases" | sed '$d' | grep Database`
echo "$testcases" | xargs -t -n100 sh -c 'TF_LOG=DEBUG TF_ACC=1 go test ./openstack -v -timeout 120m -run $(echo "$@" | tr " " "|")' argv0 2>&1 | tee $TEST_RESULTS_TXT
Expand Down

0 comments on commit b0cdd0f

Please sign in to comment.