Skip to content

Commit

Permalink
test for dots and @
Browse files Browse the repository at this point in the history
  • Loading branch information
mina1460 committed Jul 28, 2023
1 parent 729d014 commit 61c750d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/jujuapi/access_control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,17 @@ func (s *accessControlSuite) TestAddRelation(c *gc.C) {
err: false,
changesType: "group",
},
//Test username with dots and @ -> group
{
input: tuple{"user-" + "kelvin.lina.test@external", "member", "group-" + group.Name},
want: createTupleKey(
"user:"+"kelvin.lina.test@external",
"member",
"group:"+strconv.FormatUint(uint64(group.ID), 10),
),
err: false,
changesType: "group",
},
//Test group -> controller
{
input: tuple{"group-" + "test-group#member", "administrator", "controller-" + controller.UUID},
Expand Down

0 comments on commit 61c750d

Please sign in to comment.