-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix accessReview integration tests #3044
Conversation
da5a00b
to
36ef31a
Compare
now with upstream patch. |
[test] |
@@ -159,7 +159,7 @@ func (test resourceAccessReviewTest) run(t *testing.T) { | |||
} | |||
} | |||
|
|||
if reflect.DeepEqual(actualResponse, test.response) { | |||
if !reflect.DeepEqual(actualResponse.Users.List(), test.response.Users.List()) || !reflect.DeepEqual(actualResponse.Groups.List(), test.response.Groups.List()) { |
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.
can you do the message prefix compare here as well?
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.
can you do the message prefix compare here as well?
Added namespace. There is no message.
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3073/) |
36ef31a
to
4e8bedc
Compare
Evaluated for origin up to 4e8bedc |
|
sorry, I didn't realize other files were using the subjectAccessReviewTest |
@@ -340,19 +340,6 @@ func (r *APIRequestInfoResolver) GetAPIRequestInfo(req *http.Request) (APIReques | |||
currentParts = currentParts[2:] | |||
} | |||
} | |||
} else { |
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.
I kept the else and set to this in my upstream PR:
requestInfo.Namespace = api.NamespaceAll
Upstream PR at kubernetes/kubernetes#9600 |
With those two chunks removed, I got a clean unit and integration test pass with upstream. Once we get a clean test run, this should go in. @smarterclayton approve? |
|
right, hasn't been updated since #3044 (comment) |
opened #3082 with fix for failing test |
@liggitt's update merged. |
Fixes #2899
Turns out it was just bad tests. The empty namespace used for the cluster requests works fine.
@liggitt