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

[Cases] RBAC: Migrate routes' unit tests to integration tests #96374

Merged
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dfa2201
Move test to upper level
cnasikas Apr 7, 2021
d9641c0
Improve addComment tests
cnasikas Apr 7, 2021
9cccf90
Convert add comment test
cnasikas Apr 7, 2021
4675df1
Improve removal of properties
cnasikas Apr 7, 2021
80e1d87
Convert add case test
cnasikas Apr 7, 2021
265adbf
Improve utils
cnasikas Apr 8, 2021
19d19f1
Convert update case test
cnasikas Apr 8, 2021
bf3177b
Delete internal case client tests
cnasikas Apr 8, 2021
bd34566
Convert delete comment test
cnasikas Apr 8, 2021
3b8ca25
Convert get comment test
cnasikas Apr 8, 2021
68f5251
Migrate update comment
cnasikas Apr 12, 2021
a50ab4b
Migrate configuration
cnasikas Apr 12, 2021
d284f36
Migrate statuses
cnasikas Apr 13, 2021
ab69965
Migrate get case
cnasikas Apr 13, 2021
80f9a96
Migrating delete unit tests
jonathan-buttner Apr 13, 2021
a105b59
Migrate find case
cnasikas Apr 13, 2021
6302029
Fixing delete tests
jonathan-buttner Apr 13, 2021
93160a1
Merge branch 'convert_unit_tests_to_integration_tests' of github.com:…
jonathan-buttner Apr 13, 2021
ec75fba
Migrate find case
cnasikas Apr 13, 2021
618973c
Renaming functions
jonathan-buttner Apr 13, 2021
a099313
Merge branch 'convert_unit_tests_to_integration_tests' of github.com:…
jonathan-buttner Apr 13, 2021
3938d36
Migrate push case
cnasikas Apr 13, 2021
25736b3
Fix status codes
cnasikas Apr 13, 2021
77e9a93
Merge pull request #2 from jonathan-buttner/convert-cases-unit-tests
jonathan-buttner Apr 13, 2021
1aaeb4f
Fixes
cnasikas Apr 13, 2021
484ce16
Merge branch 'convert_unit_tests_to_integration_tests' of github.com:…
cnasikas Apr 13, 2021
d12d9c2
Adding mocks
jonathan-buttner Apr 13, 2021
d38dceb
Merge branch 'convert_unit_tests_to_integration_tests' of github.com:…
jonathan-buttner Apr 13, 2021
be2897f
fixing types and removing unneeded functions
jonathan-buttner Apr 13, 2021
6db02cd
PR feedback
cnasikas Apr 14, 2021
1175b3d
Merge pull request #3 from jonathan-buttner/fixing-types
jonathan-buttner Apr 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions x-pack/plugins/cases/common/api/cases/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export const CommentsResponseRt = rt.type({
export const AllCommentsResponseRt = rt.array(CommentResponseRt);

export type AttributesTypeAlerts = rt.TypeOf<typeof AttributesTypeAlertsRt>;
export type AttributesTypeUser = rt.TypeOf<typeof AttributesTypeUserRt>;
export type CommentAttributes = rt.TypeOf<typeof CommentAttributesRt>;
export type CommentRequest = rt.TypeOf<typeof CommentRequestRt>;
export type CommentResponse = rt.TypeOf<typeof CommentResponseRt>;
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/cases/common/api/cases/user_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const CaseUserActionsResponseRt = rt.array(CaseUserActionResponseRT);

export type CaseUserActionAttributes = rt.TypeOf<typeof CaseUserActionAttributesRt>;
export type CaseUserActionsResponse = rt.TypeOf<typeof CaseUserActionsResponseRt>;
export type CaseUserActionResponse = rt.TypeOf<typeof CaseUserActionResponseRT>;

export type UserAction = rt.TypeOf<typeof UserActionRt>;
export type UserActionField = rt.TypeOf<typeof UserActionFieldRt>;
Expand Down
27 changes: 0 additions & 27 deletions x-pack/plugins/cases/server/client/alerts/update_status.test.ts

This file was deleted.

Loading