示例#1
0
    def test_0000(self):
        """initialize server blueprints"""
        for blueprint in [HTTP_BLUEPRINT, DEV_BLUEPRINT]:
            with tempfile.NamedTemporaryFile(prefix="composer.test.") as tf:
                tf.write(blueprint)
                tf.file.close()

                rc = blueprints_push("/run/weldr/api.socket",
                                     0, [tf.name],
                                     show_json=False)
                self.assertTrue(rc == 0)
示例#2
0
 def test_workspace(self):
     """blueprints workspace"""
     rc = blueprints_push("/run/weldr/api.socket",
                          0, ["example-http-server.toml"],
                          show_json=False)
     self.assertTrue(rc == 0)
示例#3
0
 def test_save_1(self):
     """blueprints push"""
     rc = blueprints_push("/run/weldr/api.socket",
                          0, ["http-server.toml"],
                          show_json=False)
     self.assertTrue(rc == 0)