Example #1
0
 def test_with_unprovisioned_expired_clins_environment(self):
     self.create_portfolio_with_clins(
         [(self.YESTERDAY, self.YESTERDAY)],
         {
             "cloud_id": uuid4().hex,
             "root_user_info": {
                 "foo": "bar"
             }
         },
     )
     assert (len(
         Environments.get_environments_pending_baseline_creation(
             self.NOW)) == 0)
Example #2
0
def dispatch_create_environment_baseline(self):
    for environment_id in Environments.get_environments_pending_baseline_creation(
            pendulum.now()):
        create_environment_baseline.delay(environment_id=environment_id)