test_azure_batch_4.py 460 B

1234567891011
  1. def test_configure_pool_with_cloud_config(self):
  2. hook = AzureBatchHook(azure_batch_conn_id=self.test_cloud_conn_id)
  3. pool = hook.configure_pool(
  4. pool_id='mypool',
  5. vm_size="test_vm_size",
  6. target_dedicated_nodes=1,
  7. vm_publisher="test.vm.publisher",
  8. vm_offer="test.vm.offer",
  9. sku_starts_with="test-sku",
  10. )
  11. assert isinstance(pool, batch_models.PoolAddParameter)