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")); }
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")); }
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")); }