public void TestGetHost_dockerIo() { string host = RegistryAliasGroup.GetHost("docker.io"); Assert.AreEqual("registry-1.docker.io", host); }
/** Construct with {@link #parse}. */ private ImageReference(string registry, string repository, string tag) { this.registry = RegistryAliasGroup.GetHost(registry); this.repository = repository; this.tag = tag; }
public void TestGetHost_noAlias() { string host = RegistryAliasGroup.GetHost("something.gcr.io"); Assert.AreEqual("something.gcr.io", host); }