瀏覽代碼

We must tell ccm to use password auth

Ben Hood 10 年之前
父節點
當前提交
25c516a325
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      integration.sh

+ 6 - 0
integration.sh

@@ -34,6 +34,12 @@ function run_tests() {
 	ccm create test -v binary:$version -n $clusterSize -d --vnodes --jvm_arg="-Xmx256m -XX:NewSize=100m"
     ccm updateconf "${conf[@]}"
 
+    if [ "$auth" = true ]
+	then
+		ccm updateconf 'authenticator: PasswordAuthenticator' 'authorizer: CassandraAuthorizer'
+		rm -rf $HOME/.ccm/test/node1/data/system_auth
+	fi
+
 	ccm start -v
 	ccm status
 	ccm node1 nodetool status