Skip to content

Add missing test coverage in CloudActivations::ActivateService

Problem

Within the CloudActivations::ActivateService, the Subscriptions::EnableCloudLicensingService is called which calls the Subscriptions::EnableCloudLicensingForVersionService to enable cloud licensing on the subscription used during activation. The last service can raise an UpdateError if unsuccessful. This error will be rescued in CloudActivations::ActivateService. There's nothing incorrect about that. The issue is that this rescue block has no test coverage. This came up in a review comment that modified CloudActivations::ActivateService.

Proposal

Add the missing test coverage for rescue block logic in CloudActivations::ActivateService.

Result

Sufficient test coverage for logic in CloudActivations::ActivateService.