-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS-4792 Resolve controller jimm tag #1019
CSS-4792 Resolve controller jimm tag #1019
Conversation
Now we can refer to JIMM as controller-jimm when adding relations.
dae9f1b
to
d86334f
Compare
@@ -1256,7 +1267,6 @@ func (s *accessControlSuite) TestCheckRelationControllerAdministratorFlow(c *gc. | |||
|
|||
func (s *accessControlSuite) TestResolveTupleObjectHandlesErrors(c *gc.C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're touching this file, can we also rename this and the following test functions to TestResolveTag...
(i.e., Tag
instead of Tuple
)?
@@ -88,6 +97,9 @@ func (s *relationSuite) TestAddRelationSuperuser(c *gc.C) { | |||
c.Assert(err, gc.IsNil) | |||
resp, err := s.jimmSuite.JIMM.OpenFGAClient.ReadRelatedObjects(context.Background(), nil, 50, "") | |||
c.Assert(err, gc.IsNil) | |||
// NOTE: this is a bad test because it relies on the number of related objects. So all the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing we're missing here is validation that new controllers added to JIMM are not called the same thing as jimmControllerName
otherwise that controller will become inaccessible. It's a niche case so possible we could skip it but shouldn't be too much work to add.
8044420
to
a5d3f2f
Compare
0964d80
to
a69ec46
Compare
Description
This PR will allow us to refer to JIMM as controller-jimm when adding relations.
Engineering checklist
Check only items that apply
Test instructions
Notes for code reviewers