Пример #1
0
 def test_object_name(self):
     status1 = Status()
     status2 = Status()
     status1.add_artifact("foobar", "0.1.0")
     status1.add_artifact("moo", "0.2.0")
     self.failUnless(status2.is_deployed("foobar", "0.1.0"))
     self.failUnless(status2.is_deployed("moo", "0.2.0"))
Пример #2
0
 def test_object_name(self):
     status1 = Status()
     status2 = Status()
     status1.add_artifact("foobar", "0.1.0")
     status1.add_artifact("moo", "0.2.0")
     self.failUnless(status2.is_deployed("foobar", "0.1.0"))
     self.failUnless(status2.is_deployed("moo", "0.2.0"))
Пример #3
0
 def __init__(self, services, thrift_compiler):
     self.compiler = thrift_compiler
     self.config = Config()
     self.sandbox_work = self.config.work_dir
     self.status = Status()
     self.thrift_helper = Thrift(self.compiler)
     self.log = Log(log_file="status.log", logger_name="status").log
     self.services = services
Пример #4
0
 def test_is_deployed(self):
     status = Status()
     name = "foobar"
     version = "1.0"
     status.add_artifact(name, version)
     self.assertTrue(status.is_deployed(name, version))
Пример #5
0
 def test_is_deployed(self):
     status = Status()
     name = "foobar"
     version = "1.0"
     status.add_artifact(name, version)
     self.assertTrue(status.is_deployed(name, version))