fix: modify test case

This commit is contained in:
slzhou 2023-06-25 11:44:01 +08:00
parent 1805d30e10
commit 6de507d392
2 changed files with 4 additions and 1 deletions

View File

@ -970,6 +970,7 @@ int32_t udfdConnectToMnode() {
connReq.connType = CONN_TYPE__UDFD;
tstrncpy(connReq.app, "udfd", sizeof(connReq.app));
tstrncpy(connReq.user, TSDB_DEFAULT_USER, sizeof(connReq.user));
// just use default password. this password is not checked by mnode since connection is from udfd
char pass[TSDB_PASSWORD_LEN + 1] = {0};
taosEncryptPass_c((uint8_t *)(TSDB_DEFAULT_PASS), strlen(TSDB_DEFAULT_PASS), pass);
tstrncpy(connReq.passwd, pass, sizeof(connReq.passwd));

View File

@ -8,10 +8,12 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c udf -v 1
system sh/exec.sh -n dnode1 -s start
sql connect
sql alter user root pass 'taosdata2'
system sh/exec.sh -n dnode1 -s stop
system sh/exec.sh -n dnode1 -s start
print ======== step1 udf
system sh/compile_udf.sh
sql alter user root pass 'taosdata2'
sql create database udf vgroups 3;
sql use udf;
sql select * from information_schema.ins_databases;