@Override public void add(NamespacedEntityId entityId, KerberosPrincipalId kerberosPrincipalId) throws IOException, AlreadyExistsException { ownerStore.add(entityId, kerberosPrincipalId); }
ownerStore.add(datasetId, kerberosPrincipalId); ownerStore.add(datasetId, new KerberosPrincipalId("bob@SOMEKDC.NET")); Assert.fail(); } catch (AlreadyExistsException e) { ownerStore.add(datasetId, new KerberosPrincipalId("somePrincipal")); Assert.fail(); } catch (AlreadyExistsException e) { ownerStore.add(datasetId, new KerberosPrincipalId("b@ob@SOMEKDC.NET")); Assert.fail(); } catch (IllegalArgumentException e) { ownerStore.add(NamespaceId.DEFAULT.topic("anotherStream"), new KerberosPrincipalId("somePrincipal")); Assert.fail(); } catch (IllegalArgumentException e) {