Exemple #1
0
        public void GetTestPackImage_Validate_ImageBaseSet()
        {
            // Arrange
            var imageBaseValue = "oryxtest";
            var tagSuffixValue = string.Empty;
            var imageHelper    = new ImageTestHelper(_output, imageBaseValue, tagSuffixValue);

            // Act
            var packImage = imageHelper.GetPackImage();

            // Assert
            var expectedImage = $"{imageBaseValue}/{_packRepository}:{_latestTag}";

            Assert.Equal(expectedImage, packImage);
        }
Exemple #2
0
        public void GetTestPackImage_Validate_TagSuffixSet()
        {
            // Arrange
            var imageBaseValue = string.Empty;
            var tagSuffixValue = "-buildNumber";
            var imageHelper    = new ImageTestHelper(_output, imageBaseValue, tagSuffixValue);

            // Act
            var packImage = imageHelper.GetPackImage();

            // Assert
            var expectedTag   = tagSuffixValue.TrimStart('-');
            var expectedImage = $"{_defaultImageBase}/{_packRepository}:{expectedTag}";

            Assert.Equal(expectedImage, packImage);
        }