コード例 #1
0
 def get_deploy_constraints(self):
     return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) +
             deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
コード例 #2
0
ファイル: marathon_tools.py プロジェクト: striglia/paasta
 def get_deploy_constraints(self):
     return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) +
             deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
コード例 #3
0
ファイル: chronos_tools.py プロジェクト: pdaniel-frk/paasta
 def get_deploy_constraints(self):
     return deploy_whitelist_to_constraints(self.get_deploy_whitelist())
コード例 #4
0
ファイル: test_utils.py プロジェクト: michaelnkang/paasta
def test_deploy_whitelist_to_constraints():
    fake_whitelist = ['fake_location_type', ['fake_location', 'anotherfake_location']]
    expected_constraints = [['fake_location_type', 'LIKE', 'fake_location|anotherfake_location']]

    constraints = utils.deploy_whitelist_to_constraints(fake_whitelist)
    assert constraints == expected_constraints
コード例 #5
0
def test_deploy_whitelist_to_constraints():
    fake_whitelist = ['fake_location_type', ['fake_location', 'anotherfake_location']]
    expected_constraints = [['fake_location_type', 'LIKE', 'fake_location|anotherfake_location']]

    constraints = utils.deploy_whitelist_to_constraints(fake_whitelist)
    assert constraints == expected_constraints
コード例 #6
0
ファイル: chronos_tools.py プロジェクト: trishnaguha/paasta
 def get_deploy_constraints(self):
     return deploy_whitelist_to_constraints(self.get_deploy_whitelist())