@@ -34,8 +34,9 @@ const ListOutput = `
3434 "self": "https://example.com/identity/v3/roles/9fe1d3"
3535 },
3636 "name": "support",
37+ "description": "read-only support role",
3738 "extra": {
38- "description ": "read-only support role "
39+ "test ": "this is for the test "
3940 }
4041 }
4142 ]
@@ -52,7 +53,10 @@ const GetOutput = `
5253 "self": "https://example.com/identity/v3/roles/9fe1d3"
5354 },
5455 "name": "support",
55- "description": "read-only support role"
56+ "description": "read-only support role",
57+ "extra": {
58+ "test": "this is for the test"
59+ }
5660 }
5761}
5862`
@@ -70,6 +74,9 @@ const GetOutputWithOptions = `
7074 "description": "read-only support role",
7175 "options": {
7276 "immutable": true
77+ },
78+ "extra": {
79+ "test": "this is for the test"
7380 }
7481 }
7582}
@@ -81,7 +88,8 @@ const CreateRequest = `
8188 "role": {
8289 "domain_id": "1789d1",
8390 "name": "support",
84- "description": "read-only support role"
91+ "description": "read-only support role",
92+ "test": "this is for the test"
8593 }
8694}
8795`
@@ -93,6 +101,7 @@ const CreateRequestWithOptions = `
93101 "domain_id": "1789d1",
94102 "name": "support",
95103 "description": "read-only support role",
104+ "test": "this is for the test",
96105 "options": {
97106 "immutable": true
98107 }
@@ -354,9 +363,10 @@ var SecondRole = roles.Role{
354363 Links : map [string ]any {
355364 "self" : "https://example.com/identity/v3/roles/9fe1d3" ,
356365 },
357- Name : "support" ,
366+ Name : "support" ,
367+ Description : "read-only support role" ,
358368 Extra : map [string ]any {
359- "description " : "read-only support role " ,
369+ "test " : "this is for the test " ,
360370 },
361371}
362372
@@ -367,9 +377,10 @@ var SecondRoleWithOptions = roles.Role{
367377 Links : map [string ]any {
368378 "self" : "https://example.com/identity/v3/roles/9fe1d3" ,
369379 },
370- Name : "support" ,
380+ Name : "support" ,
381+ Description : "read-only support role" ,
371382 Extra : map [string ]any {
372- "description " : "read-only support role " ,
383+ "test " : "this is for the test " ,
373384 },
374385 Options : map [roles.Option ]any {
375386 roles .Immutable : true ,
0 commit comments