use of com.blackducksoftware.integration.hub.imageinspector.name.ImageNameResolver in project hub-docker-inspector by blackducksoftware.
the class imageNameResolverTest method testEndsWithColon.
@Test
public void testEndsWithColon() {
final ImageNameResolver resolver = new ImageNameResolver("alpine:");
assertTrue(resolver.getNewImageRepo().isPresent());
assertTrue(resolver.getNewImageTag().isPresent());
assertEquals("alpine", resolver.getNewImageRepo().get());
assertEquals("latest", resolver.getNewImageTag().get());
}
use of com.blackducksoftware.integration.hub.imageinspector.name.ImageNameResolver in project hub-docker-inspector by blackducksoftware.
the class imageNameResolverTest method testBothColonInRepoSpecifier.
@Test
public void testBothColonInRepoSpecifier() {
final ImageNameResolver resolver = new ImageNameResolver("artifactoryserver:5000/alpine:1.0");
assertTrue(resolver.getNewImageRepo().isPresent());
assertTrue(resolver.getNewImageTag().isPresent());
assertEquals("artifactoryserver:5000/alpine", resolver.getNewImageRepo().get());
assertEquals("1.0", resolver.getNewImageTag().get());
}
Aggregations