def delete(self, app_spec): LOG.info("Deleting deployment for %s", app_spec.name) try: body = { "kind": "DeleteOptions", "apiVersion": "v1", "propagationPolicy": "Foreground" } Deployment.delete(app_spec.name, app_spec.namespace, body=body) except NotFound: pass
def test_delete(self, delete): Deployment.delete(NAME, namespace=NAMESPACE) pytest.helpers.assert_any_call(delete, _uri(NAMESPACE, NAME))