[ https://issues.apache.org/jira/browse/KNOX-3053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891298#comment-17891298 ]
ASF subversion and git services commented on KNOX-3053: ------------------------------------------------------- Commit 06f05b499d5ca71411f9dd79f1782eed58f61bd9 in knox's branch refs/heads/dependabot/maven/org.apache.derby-derby-10.17.1.0 from Sandeep Moré [ https://gitbox.apache.org/repos/asf?p=knox.git;h=06f05b499 ] KNOX-3040 - Followup patch. Support for multiple JWKS endpoints + code cleanup (#924) * KNOX-3040 - Followup patch. Support for multiple JWKS endpoints + code cleanup * Review changes * Update main.yml Bumping github actions for checkout and setup-java to v4 * Update main.yml added distribution and cache attributes * Update main.yml simplify mvn cmd * KNOX-3053 - Fix DefaultTopologyService - Mock setup moved before method call (#927) * KNOX-3040-1 - Fix unit test --------- Co-authored-by: lmccay <lmc...@apache.org> Co-authored-by: hanicz <han...@users.noreply.github.com> > Fix DefaultTopologyServiceTest > ------------------------------ > > Key: KNOX-3053 > URL: https://issues.apache.org/jira/browse/KNOX-3053 > Project: Apache Knox > Issue Type: Test > Components: Tests > Affects Versions: 2.0.1 > Reporter: Philip Zampino > Assignee: Philip Zampino > Priority: Major > Fix For: 2.1.0 > > Time Spent: 20m > Remaining Estimate: 0h > > org.apache.knox.gateway.services.topology.DefaultTopologyServiceTest#testTopologyDiscoveryTriggerHandlesInvalidDescriptorContent > > {code:java} > java.lang.NullPointerException > at > org.apache.knox.gateway.services.topology.DefaultTopologyServiceTest.testTopologyDiscoveryTriggerHandlesInvalidDescriptorContent(DefaultTopologyServiceTest.java:649) > > {code} > > This line in DefaultTopologyService class returns null because the mock setup > is done after the logic is actually called. > {code:java} > ClusterConfigurationMonitorService ccms = > gwServices.getService(ServiceType.CLUSTER_CONFIGURATION_MONITOR_SERVICE);{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)