Beispiel #1
0
        public void GetHostnameFromHubImageNamePrefix(string repository, string name, string tag)
        {
            const string hubImageNamePrefix = "myregistry.azurecr.io";
            IDockerImage image = new DockerImage(repository, name, tag, hubImageNamePrefix);

            Assert.Equal(hubImageNamePrefix, image.GetHostname());
        }
Beispiel #2
0
        public void GetHostnameFromDockerImage(string dockerImageName, string hostname)
        {
            IDockerImage image = new DockerImage(dockerImageName);

            Assert.Equal(hostname, image.GetHostname());
        }