diff options
author | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-08-16 21:13:16 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-08-21 09:00:24 +0200 |
commit | aa1587025809fe35c0a0594c02d01af59add3525 (patch) | |
tree | 18778809995228987881ba0df2691f37e7e39dad /athenz-identity-provider-service | |
parent | 3577f2b6657ffc67aab0217b45149027dedb7b69 (diff) |
Simplify Node::createDockerNode
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.java | 6 |
1 files changed, 3 insertions, 3 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 f496b177bdd..b4281845a76 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 @@ -30,6 +30,7 @@ import org.junit.Test; import java.util.HashSet; import java.util.Optional; +import java.util.Set; import static com.yahoo.vespa.hosted.athenz.instanceproviderservice.TestUtils.getAthenzProviderConfig; import static org.junit.Assert.assertEquals; @@ -65,10 +66,9 @@ public class IdentityDocumentGeneratorTest { Optional.empty(), new MockNodeFlavors().getFlavorOrThrow("default"), NodeType.host); - Node containerNode = Node.createDockerNode(ImmutableSet.of("::1"), - new HashSet<>(), + Node containerNode = Node.createDockerNode(Set.of("::1"), containerHostname, - Optional.of(parentHostname), + parentHostname, new MockNodeFlavors().getFlavorOrThrow("default").resources(), NodeType.tenant) .with(allocation); |