kevdoran commented on a change in pull request #197: NIFIREG-206 Support anonymous access to public resources URL: https://github.com/apache/nifi-registry/pull/197#discussion_r293012918
########## File path: nifi-registry-core/nifi-registry-framework/src/test/groovy/org/apache/nifi/registry/service/AuthorizationServiceSpec.groovy ########## @@ -602,24 +614,25 @@ class AuthorizationServiceSpec extends Specification { then: resources != null - resources.size() == 4 + resources.size() == 5 def sortedResources = resources.sort{it.identifier} sortedResources[0].identifier == "/buckets" sortedResources[1].identifier == "/buckets/b1" - sortedResources[2].identifier == "/policies" - sortedResources[3].identifier == "/tenants" + sortedResources[2].identifier == "/buckets/b2" + sortedResources[3].identifier == "/policies" + sortedResources[4].identifier == "/tenants" when: def filteredResources = authorizationService.getAuthorizedResources(RequestAction.READ, ResourceType.Bucket) then: filteredResources != null - filteredResources.size() == 2 + filteredResources.size() == 3 def sortedFilteredResources = filteredResources.sort{it.identifier} sortedFilteredResources[0].identifier == "/buckets" sortedFilteredResources[1].identifier == "/buckets/b1" - + sortedFilteredResources[2].identifier == "/buckets/b2" Review comment: Thanks for updating these Spock specs 🙂 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services