示例#1
0
 def test_manager_by_plan_name_plus(self):
     os.environ["SENTINEL_HOSTS"] = "[]"
     manager = manager_by_plan_name("plus")
     self.assertIsInstance(manager, DockerHaManager)
示例#2
0
 def test_manager_by_plan_name_basic(self):
     os.environ["DOCKER_HOSTS"] = "[]"
     os.environ["REDIS_SERVER_HOST"] = ""
     os.environ["REDIS_IMAGE"] = ""
     manager = manager_by_plan_name("basic")
     self.assertIsInstance(manager, DockerManager)
示例#3
0
 def test_manager_by_plan_name_development(self):
     manager = manager_by_plan_name("development")
     self.assertIsInstance(manager, SharedManager)
示例#4
0
 def test_manager_by_plan_name_plus(self):
     os.environ["SENTINEL_HOSTS"] = "[]"
     manager = manager_by_plan_name("plus")
     self.assertIsInstance(manager, DockerHaManager)
示例#5
0
 def test_manager_by_plan_name_basic(self):
     os.environ["DOCKER_HOSTS"] = "[]"
     os.environ["REDIS_SERVER_HOST"] = ""
     os.environ["REDIS_IMAGE"] = ""
     manager = manager_by_plan_name("basic")
     self.assertIsInstance(manager, DockerManager)
示例#6
0
 def test_manager_by_plan_name_development(self):
     manager = manager_by_plan_name("development")
     self.assertIsInstance(manager, SharedManager)