blob: f2db74a4c3d6c91bd4247a3e1951a40c13f8fb85 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.yahoo.vespa.hosted.controller.api.integration.athenz;
import com.yahoo.vespa.hosted.controller.api.identifiers.AthenzDomain;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author bjorncs
*/
public class AthenzUtilsTest {
@Test
public void athenz_identity_is_parsed_from_dot_separated_string() {
AthenzIdentity expectedIdentity = new AthenzService(new AthenzDomain("my.subdomain"), "myservicename");
String fullName = expectedIdentity.getFullName();
AthenzIdentity actualIdentity = AthenzUtils.createAthenzIdentity(fullName);
assertEquals(expectedIdentity, actualIdentity);
}
}
|