def test_container_ip_matches(self): """ Verifies container ip in config matches what LXC sees """ saved_ip = self.CONFIG['container_ip'] lxc_ip = LXCContainer.ip(self.CONFIG['container_name']) assert saved_ip == lxc_ip
def test_bootstrap_succeeded(self): """ Verifies a local bootstrap happened """ cmd = ("JUJU_HOME=~/.cloud-install/juju juju stat --format yaml") out = LXCContainer.run(self.CONFIG['container_name'], cmd, use_ssh=True) out = out.split("\n")[0].strip() assert('environment: local' in out)
def test_bootstrap_succeeded(self): """ Verifies a local bootstrap happened """ cmd = ("JUJU_HOME=~/.cloud-install/juju juju stat --format yaml") out = LXCContainer.run(self.CONFIG['container_name'], cmd, use_ssh=True) out = out.split("\n")[0].strip() assert ('environment: local' in out)