@@ -36,6 +36,7 @@ use crate::common;
36
36
//
37
37
38
38
#[ test]
39
+ <<<<<<< HEAD : src/meta/proto-conv/tests/it/v137_add_grant_object_connection. rs
39
40
fn test_decode_v137_grant_object ( ) -> anyhow:: Result < ( ) > {
40
41
let role_info_v137 = vec![
41
42
10 , 2 , 114 , 49 , 18 , 214 , 1 , 10 , 23 , 10 , 9 , 10 , 0 , 160 , 6 , 137 , 1 , 168 , 6 , 24 , 16 , 128 , 128 ,
@@ -51,6 +52,17 @@ fn test_decode_v137_grant_object() -> anyhow::Result<()> {
51
52
49 , 57 , 55 , 48 , 45 , 48 , 49 , 45 , 48 , 49 , 32 , 48 , 48 , 58 , 48 , 48 , 58 , 48 , 48 , 32 , 85 , 84 , 67 ,
52
53
34 , 23 , 49 , 57 , 55 , 48 , 45 , 48 , 49 , 45 , 48 , 49 , 32 , 48 , 48 , 58 , 48 , 48 , 58 , 48 , 48 , 32 , 85 ,
53
54
84 , 67 , 160 , 6 , 137 , 1 , 168 , 6 , 24 ,
55
+ =======
56
+ fn test_decode_v136_grant_connection_object( ) -> anyhow:: Result <( ) > {
57
+ let role_info_v136 = vec![
58
+ 10 , 2 , 114 , 49 , 18 , 86 , 10 , 23 , 10 , 9 , 10 , 0 , 160 , 6 , 136 , 1 , 168 , 6 , 24 , 16 , 128 , 128 ,
59
+ 128 , 2 , 160 , 6 , 136 , 1 , 168 , 6 , 24 , 10 , 27 , 10 , 13 , 74 , 4 , 10 , 2 , 99 , 49 , 160 , 6 , 136 , 1 ,
60
+ 168 , 6 , 24 , 16 , 128 , 128 , 128 , 4 , 160 , 6 , 136 , 1 , 168 , 6 , 24 , 10 , 23 , 10 , 9 , 10 , 0 , 160 , 6 ,
61
+ 136 , 1 , 168 , 6 , 24 , 16 , 254 , 255 , 191 , 7 , 160 , 6 , 136 , 1 , 168 , 6 , 24 , 160 , 6 , 136 , 1 , 168 ,
62
+ 6 , 24 , 26 , 23 , 49 , 57 , 55 , 48 , 45 , 48 , 49 , 45 , 48 , 49 , 32 , 48 , 48 , 58 , 48 , 48 , 58 , 48 , 48 ,
63
+ 32 , 85 , 84 , 67 , 34 , 23 , 49 , 57 , 55 , 48 , 45 , 48 , 49 , 45 , 48 , 49 , 32 , 48 , 48 , 58 , 48 , 48 , 58 ,
64
+ 48 , 48 , 32 , 85 , 84 , 67 , 160 , 6 , 136 , 1 , 168 , 6 , 24 ,
65
+ >>>>>>> ffc4e86d5b ( fix conversation) : src/meta/proto-conv/tests/it/v136_add_grant_object_connection. rs
54
66
] ;
55
67
let want = || mt:: principal:: RoleInfo {
56
68
name: "r1" . to_string( ) ,
@@ -64,26 +76,6 @@ fn test_decode_v137_grant_object() -> anyhow::Result<()> {
64
76
mt:: principal:: GrantObject :: Connection ( "c1" . to_string( ) ) ,
65
77
make_bitflags!( UserPrivilegeType :: { AccessConnection } ) ,
66
78
) ,
67
- mt:: principal:: GrantEntry :: new(
68
- mt:: principal:: GrantObject :: Database ( "default" . to_string( ) , "db" . to_string( ) ) ,
69
- make_bitflags!( UserPrivilegeType :: { Create } ) ,
70
- ) ,
71
- mt:: principal:: GrantEntry :: new(
72
- mt:: principal:: GrantObject :: Table (
73
- "default" . to_string( ) ,
74
- "db" . to_string( ) ,
75
- "tb" . to_string( ) ,
76
- ) ,
77
- make_bitflags!( UserPrivilegeType :: { Create } ) ,
78
- ) ,
79
- mt:: principal:: GrantEntry :: new(
80
- mt:: principal:: GrantObject :: UDF ( "f1" . to_string( ) ) ,
81
- make_bitflags!( UserPrivilegeType :: { Usage } ) ,
82
- ) ,
83
- mt:: principal:: GrantEntry :: new(
84
- mt:: principal:: GrantObject :: Stage ( "s1" . to_string( ) ) ,
85
- make_bitflags!( UserPrivilegeType :: { Write } ) ,
86
- ) ,
87
79
// test new global privilege CreateConneciton, AccessConnection
88
80
mt:: principal:: GrantEntry :: new(
89
81
mt:: principal:: GrantObject :: Global ,
@@ -103,9 +95,15 @@ fn test_decode_v137_grant_object() -> anyhow::Result<()> {
103
95
}
104
96
105
97
#[ test]
98
+ <<<<<<< HEAD : src/meta/proto-conv/tests/it/v137_add_grant_object_connection. rs
106
99
fn test_decode_v137_ownership( ) -> anyhow:: Result <( ) > {
107
100
let ownership_info_v137 = vec![
108
101
10 , 2 , 114 , 49 , 18 , 13 , 50 , 4 , 10 , 2 , 99 , 49 , 160 , 6 , 137 , 1 , 168 , 6 , 24 , 160 , 6 , 137 , 1 ,
102
+ =======
103
+ fn test_decode_v136_connection_ownership( ) -> anyhow:: Result <( ) > {
104
+ let ownership_info_v136 = vec![
105
+ 10 , 2 , 114 , 49 , 18 , 13 , 50 , 4 , 10 , 2 , 99 , 49 , 160 , 6 , 136 , 1 , 168 , 6 , 24 , 160 , 6 , 136 , 1 ,
106
+ >>>>>>> ffc4e86d5b ( fix conversation) : src/meta/proto-conv/tests/it/v136_add_grant_object_connection. rs
109
107
168 , 6 , 24 ,
110
108
] ;
111
109
0 commit comments