Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

[CDN-1153] Add change to delete a change in progress#29

Open
merryldmello wants to merge 1 commit into
rackerlabs:masterfrom
merryldmello:CDN-1153
Open

[CDN-1153] Add change to delete a change in progress#29
merryldmello wants to merge 1 commit into
rackerlabs:masterfrom
merryldmello:CDN-1153

Conversation

@merryldmello
Copy link
Copy Markdown

CDN-1153
Add change to delete a change when it is in create_in_progress/under pending changes in CPS.
Earlier pending change was skipped, and this has been addressed in the current change.

…ress/under pending changes in CPS.

poppy/distributed_task/taskflow/task/delete_service_tasks.py
removed flavor_id as cert_obj will contain required details to be passed on.

poppy/distributed_task/taskflow/task/delete_ssl_certificate_tasks.py
removed flavor_id and added cert_obj_json which is passed from delete_service_tasks.py
which will contain all required details including cert_details which is needed to
delete pending change in progress.
If cert_obj_json is present, the notification will be sent for an actual delete of
a pending change or a deletion of an existing domain, which earlier would have
thrown up an error through mailgun

tests/unit/distributed_task/taskflow/test_flows.py
added additional cert_details to the certificate object as we need to delete a pending
change which would be present in the actual certificate object.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant