소스 검색

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