Esempio n. 1
0
 def get_deploy_constraints(self):
     return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) +
             deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
Esempio n. 2
0
 def get_deploy_constraints(self):
     return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) +
             deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
Esempio n. 3
0
 def get_deploy_constraints(self):
     return deploy_whitelist_to_constraints(self.get_deploy_whitelist())
Esempio n. 4
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
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
Esempio n. 6
0
 def get_deploy_constraints(self):
     return deploy_whitelist_to_constraints(self.get_deploy_whitelist())