diff --git a/internal/jujuapi/access_control_test.go b/internal/jujuapi/access_control_test.go index 6825d3b61..22d6ae293 100644 --- a/internal/jujuapi/access_control_test.go +++ b/internal/jujuapi/access_control_test.go @@ -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},