Ejemplo n.º 1
0
 def test_freeze_save(self):
     """blueprints freeze save"""
     rc = blueprints_freeze("/run/weldr/api.socket",
                            0, ["save", "example-http-server"],
                            show_json=False)
     self.assertTrue(rc == 0)
     self.assertTrue(os.path.exists("example-http-server.frozen.toml"))
Ejemplo n.º 2
0
 def test_freeze(self):
     """blueprints freeze"""
     with captured_output() as (out, _):
         rc = blueprints_freeze("/run/weldr/api.socket", 0, ["example-http-server"], show_json=False)
     output = out.getvalue().strip()
     self.assertTrue(rc == 0)
     self.assertTrue("blueprint: example-http-server v" in output)
     self.assertTrue("httpd" in output)
     self.assertTrue("x86_64" in output)
Ejemplo n.º 3
0
 def test_freeze_show(self):
     """blueprints freeze show"""
     with captured_output() as (out, _):
         rc = blueprints_freeze("/run/weldr/api.socket", 0, ["show", "example-http-server"], show_json=False)
     output = out.getvalue().strip()
     self.assertTrue(rc == 0)
     self.assertTrue("version" in output)
     self.assertTrue("example-http-server" in output)
     self.assertTrue("x86_64" in output)
     self.assertTrue("[[packages]]" in output)
     self.assertTrue("[[modules]]" in output)