コード例 #1
0
        public void WhenNoCustomSettings_BothManifestListAndManifestArePresent()
        {
            var fixture = new DockerManifestInspectFixture
            {
                ManifestList = "manifest_list",
                Manifest     = "manifest",
            };

            var actual = fixture.Run();

            Assert.That(actual.Args.Trim(), Is.EqualTo("manifest inspect manifest_list manifest"));
        }
コード例 #2
0
        public void WhenInsecureIsSet_InsecureFlagIsPresent()
        {
            var fixture = new DockerManifestInspectFixture
            {
                Settings = new DockerManifestInspectSettings {
                    Insecure = true
                },
            };

            var actual = fixture.Run();

            Assert.That(actual.Args.Trim(), Is.EqualTo("manifest inspect --insecure"));
        }
コード例 #3
0
        public void WhenInsecureIsSetAndAllArgumentsPresent_ProducesCorrectCommand()
        {
            var fixture = new DockerManifestInspectFixture
            {
                Settings = new DockerManifestInspectSettings {
                    Insecure = true
                },
                ManifestList = "manifest_list",
                Manifest     = "manifest",
            };

            var actual = fixture.Run();

            Assert.That(actual.Args.Trim(), Is.EqualTo("manifest inspect --insecure manifest_list manifest"));
        }