Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RWA-4061 update test to add mandatory field attributes #459

Closed
wants to merge 2 commits into from

Conversation

skandala-cgi
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/RWA-4061

Change description

update test to add mandatory field attributes

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

@@ -139,6 +139,8 @@ protected void initiateTask(Headers authenticationHeaders, TestVariables testVar
taskAttributes.put(CASE_ID.value(), testVariables.getCaseId());
taskAttributes.put(CREATED.value(), formattedCreatedDate);
taskAttributes.put(DUE_DATE.value(), formattedDueDate);
taskAttributes.put("roleCategory", "LEGAL_OPERATIONS");
taskAttributes.put("workType", "routine_work");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just to ensure that the mandatory fields are provided as part of test Tasks?
Should we create / re-use emums if these are always going to be required for Task initiations within tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added enums

@skandala-cgi
Copy link
Contributor Author

Not required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants