summaryrefslogtreecommitdiffstats
path: root/athenz-identity-provider-service
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2019-01-28 15:20:33 +0100
committerHåkon Hallingstad <hakon@verizonmedia.com>2019-01-28 15:20:33 +0100
commitc9efe7d2f8439420bb1656f2b14b2843130d05d7 (patch)
tree226b45eb9479686c7abf3a8507fe7781f1193367 /athenz-identity-provider-service
parentfd3df489a188490774ab5550f23f74e007af1b57 (diff)
Make node builder
While trying to add another field to Node I came upon the multitude of places the constructor is called. This is simplified by using a builder. The builder is internal to Node for now. If wanted/needed, it can be made public (especially tests may be interested - I have touched as few as possible).
Diffstat (limited to 'athenz-identity-provider-service')
-rw-r--r--athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java b/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java
index 735de107b32..5d36df0d8ee 100644
--- a/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java
+++ b/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java
@@ -66,7 +66,7 @@ public class IdentityDocumentGeneratorTest {
Node containerNode = Node.createDockerNode(ImmutableSet.of("::1"),
new HashSet<>(),
containerHostname,
- Optional.of(parentHostname),
+ parentHostname,
new MockNodeFlavors().getFlavorOrThrow("default"),
NodeType.tenant)
.with(allocation);