This repository was archived by the owner on Jan 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ type Role struct {
12
12
Name string `json:"name"`
13
13
Description string `json:"description"`
14
14
Global bool `json:"global"`
15
+ Group string `json:"group"`
16
+ DisplayName string `json:"string"`
17
+ Hidden bool `json:"hidden"`
15
18
Permissions []Permission `json:"permissions,omitempty"`
16
19
}
17
20
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ const (
14
14
"name": "test:policy",
15
15
"version": 1,
16
16
"description": "Test policy description",
17
+ "displayName": "test display",
18
+ "group": "test group",
19
+ "hidden": false,
17
20
"permissions": [
18
21
{
19
22
"id": 6,
@@ -34,6 +37,9 @@ const (
34
37
"name": "test:policy",
35
38
"version": 1,
36
39
"description": "Test policy description",
40
+ "displayName": "test display",
41
+ "group": "test group",
42
+ "hidden": false,
37
43
"permissions": [
38
44
{
39
45
"permission": "test:self",
@@ -101,6 +107,9 @@ func TestGetRole(t *testing.T) {
101
107
UID : "vc3SCSsGz" ,
102
108
Name : "test:policy" ,
103
109
Description : "Test policy description" ,
110
+ Group : "test group" ,
111
+ DisplayName : "test display" ,
112
+ Hidden : false ,
104
113
Permissions : []Permission {
105
114
{
106
115
Action : "test:self" ,
You can’t perform that action at this time.
0 commit comments