public void TestDeployService() { Context.Configuration.AddService("my-service", "dummy-svc"); _driver.DeployService("my-service"); Shell.LastCommand.ShouldBe( "docker run --name my-service --publish 0:0 --detach --rm dummy-server:0.1"); }
public void TestDeployService() { Context.Configuration.AddService("my-service", "dummy-svc"); _driver.DeployService("my-service"); Shell.Commands[0].ShouldBe("docker info"); Shell.Commands[1].ShouldBe("docker run --name my-service --publish 0:0 --detach --rm dummy-server:0.1"); Shell.Commands[2].ShouldBe("docker network connect my-service-network my-service"); Shell.Commands.Count.ShouldBe(3); }