Skip to content

[FEATURE] Add public java.util.List<Message> getErrors() and getWarnings to the ProvisioningResult #23

Description

@rob-buskens-sp

In JDBC Provisioning Rules, it is common to add errors / warnings to the provisioning result.

result.setStatus(ProvisioningResult.STATUS_FAILED);
result.addError("Enable not implemented");

Then in the test case it would be ideal to check for the added message.

The RDK doesn't have any way on the ProvisioningResult to get errors or warnings.

I would like to be able to get errors and warnings, then look through the list of Messages for the one added.

assertNotNull(result);
assertEquals("failed", result.getStatus());
assertEquals("Enable not implemented", result.getErrors()[0].getMessage()); // <- guessing, and a bit ugly

I compared what the IIQ Java Doc has and came up with the methods in the title. I understand ISC may be different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions