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

Fix (CLI): Fixed flaky test ContentTypeCommandIT.Test_Command_Content_Type_Folder_Push #30304

Conversation

jgambarios
Copy link
Contributor

@jgambarios jgambarios commented Oct 9, 2024

This pull request updates the createContentTypeOnServer method in the ContentTypesTestHelperService class to improve content type creation and validation. The most important changes include removing unused variables and adding a validation step to ensure the content type is created successfully.

Codebase simplification and validation improvement:

This PR fixes: #30280

… server time to process and index the new content types.
…laky-test-ContentTypeCommandIT-Test_Command_Content_Type_Folder_Push
@jgambarios jgambarios marked this pull request as ready for review October 9, 2024 14:06
Copy link
Contributor

@dcolina dcolina left a comment

Choose a reason for hiding this comment

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

👍🏽

Copy link

@jgambarios jgambarios enabled auto-merge October 9, 2024 14:25
@jgambarios jgambarios added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit 72dacf7 Oct 9, 2024
21 checks passed
@jgambarios jgambarios deleted the issue-30280-CLI-Fix-flaky-test-ContentTypeCommandIT-Test_Command_Content_Type_Folder_Push branch October 9, 2024 15:57
spbolton pushed a commit that referenced this pull request Nov 11, 2024
…_Type_Folder_Push (#30304)

This pull request updates the `createContentTypeOnServer` method in the
`ContentTypesTestHelperService` class to improve content type creation
and validation. The most important changes include removing unused
variables and adding a validation step to ensure the content type is
created successfully.

Codebase simplification and validation improvement:

*
[`tools/dotcms-cli/cli/src/test/java/com/dotcms/cli/common/ContentTypesTestHelperService.java`](diffhunk://#diff-aec7feeb63a6f9ad6aa941eff561882f257837e0a706ad26fe2625b0355ee3d5L66-L68):
Removed unused variables `identifier` and `varName` from the
`createContentTypeOnServer` method.
*
[`tools/dotcms-cli/cli/src/test/java/com/dotcms/cli/common/ContentTypesTestHelperService.java`](diffhunk://#diff-aec7feeb63a6f9ad6aa941eff561882f257837e0a706ad26fe2625b0355ee3d5L77-R79):
Added a validation step to check if the content type is created
successfully and throw an exception if not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI: Fix flaky test ContentTypeCommandIT.Test_Command_Content_Type_Folder_Push
3 participants