Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit d63605a

Browse files
use username for cluster user messages
1 parent d851047 commit d63605a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/behaviour/connection/transaction/transaction_steps.py

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ def step_impl(context: Context, is_open):
115115
def step_impl(context: Context):
116116
context.tx().commit()
117117

118+
@step("session transaction closes")
119+
def step_impl(context: Context):
120+
context.tx().close()
118121

119122
@step("session transaction commits; throws exception")
120123
@step("transaction commits; throws exception")

typedb/common/rpc/request_builder.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,27 @@ def cluster_user_manager_all_req():
9393

9494
def cluster_user_manager_create_req(name: str, password: str):
9595
req = cluster_user_proto.ClusterUserManager.Create.Req()
96-
req.name = name
96+
req.username = name
9797
req.password = password
9898
return req
9999

100100
def cluster_user_manager_contains_req(name: str):
101101
req = cluster_user_proto.ClusterUserManager.Contains.Req()
102-
req.name = name
102+
req.username = name
103103
return req
104104

105105

106106
# ClusterUser
107107

108108
def cluster_user_password_req(name: str, password: str):
109109
req = cluster_user_proto.ClusterUser.Password.Req()
110-
req.name = name
110+
req.username = name
111111
req.password = password
112112
return req
113113

114114
def cluster_user_delete_req(name: str):
115115
req = cluster_user_proto.ClusterUser.Delete.Req()
116-
req.name = name
116+
req.username = name
117117
return req
118118

119119

0 commit comments

Comments
 (0)