Skip to content

Fix public ACL being visible in other clusters #15

Fix public ACL being visible in other clusters

Fix public ACL being visible in other clusters #15

GitHub Actions / JUnit Test Report failed Dec 6, 2024 in 0s

642 tests run, 637 passed, 0 skipped, 5 failed.

Annotations

Check failure on line 1102 in src/test/java/com/michelin/ns4kafka/service/AclServiceTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

AclServiceTest.shouldFindAclGrantedByNamespaceByWildcardName()

java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
Raw output
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
	at com.michelin.ns4kafka.service.AclService.lambda$findAllForCluster$19(AclService.java:420)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at com.michelin.ns4kafka.service.AclService.findAllForCluster(AclService.java:421)
	at com.michelin.ns4kafka.service.AclService.findAllGrantedByNamespace(AclService.java:272)
	at com.michelin.ns4kafka.service.AclService.findAllGrantedByNamespaceByWildcardName(AclService.java:332)
	at com.michelin.ns4kafka.service.AclServiceTest.shouldFindAclGrantedByNamespaceByWildcardName(AclServiceTest.java:1102)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 1256 in src/test/java/com/michelin/ns4kafka/service/AclServiceTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

AclServiceTest.shouldFindAclRelatedToNamespaceByWildcardName()

java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
Raw output
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
	at com.michelin.ns4kafka.service.AclService.lambda$findAllForCluster$19(AclService.java:420)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at com.michelin.ns4kafka.service.AclService.findAllForCluster(AclService.java:421)
	at com.michelin.ns4kafka.service.AclService.findAllRelatedToNamespace(AclService.java:299)
	at com.michelin.ns4kafka.service.AclService.findAllRelatedToNamespaceByWildcardName(AclService.java:362)
	at com.michelin.ns4kafka.service.AclServiceTest.shouldFindAclRelatedToNamespaceByWildcardName(AclServiceTest.java:1256)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 832 in src/test/java/com/michelin/ns4kafka/service/AclServiceTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

AclServiceTest.shouldFindAllAclForNamespace()

java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
Raw output
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
	at com.michelin.ns4kafka.service.AclService.lambda$findAllForCluster$19(AclService.java:420)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at com.michelin.ns4kafka.service.AclService.findAllForCluster(AclService.java:421)
	at com.michelin.ns4kafka.service.AclService.findAllForNamespace(AclService.java:404)
	at com.michelin.ns4kafka.service.AclServiceTest.shouldFindAllAclForNamespace(AclServiceTest.java:832)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 1173 in src/test/java/com/michelin/ns4kafka/service/AclServiceTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

AclServiceTest.shouldFindAclGrantedByNamespaceToOthersByWildcardName()

java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
Raw output
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.michelin.ns4kafka.model.Metadata.getCluster()" is null
	at com.michelin.ns4kafka.service.AclService.lambda$findAllForCluster$19(AclService.java:420)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at com.michelin.ns4kafka.service.AclService.findAllForCluster(AclService.java:421)
	at com.michelin.ns4kafka.service.AclService.findAllGrantedByNamespaceToOthers(AclService.java:285)
	at com.michelin.ns4kafka.service.AclService.findAllGrantedByNamespaceToOthersByWildcardName(AclService.java:347)
	at com.michelin.ns4kafka.service.AclServiceTest.shouldFindAclGrantedByNamespaceToOthersByWildcardName(AclServiceTest.java:1173)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 1330 in src/test/java/com/michelin/ns4kafka/service/AclServiceTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

AclServiceTest.shouldFindResourceWhereGivenNamespaceIsOwnerOf()

java.lang.NullPointerException: Cannot invoke "com.michelin.ns4kafka.model.Metadata.getCluster()" because the return value of "com.michelin.ns4kafka.model.AccessControlEntry.getMetadata()" is null
Raw output
java.lang.NullPointerException: Cannot invoke "com.michelin.ns4kafka.model.Metadata.getCluster()" because the return value of "com.michelin.ns4kafka.model.AccessControlEntry.getMetadata()" is null
	at com.michelin.ns4kafka.service.AclService.lambda$findAllForCluster$19(AclService.java:420)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at com.michelin.ns4kafka.service.AclService.findAllForCluster(AclService.java:421)
	at com.michelin.ns4kafka.service.AclService.findResourceOwnerGrantedToNamespace(AclService.java:377)
	at com.michelin.ns4kafka.service.AclServiceTest.shouldFindResourceWhereGivenNamespaceIsOwnerOf(AclServiceTest.java:1330)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)