-
Notifications
You must be signed in to change notification settings - Fork 916
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
Update unit tests #233
Update unit tests #233
Conversation
✅ DCO Check Passed 2a5aebe |
..._pattern_wizard/components/step_index_pattern/__snapshots__/step_index_pattern.test.tsx.snap
Outdated
Show resolved
Hide resolved
..._pattern_wizard/components/step_index_pattern/__snapshots__/step_index_pattern.test.tsx.snap
Outdated
Show resolved
Hide resolved
...ensearch_dashboards_overview/public/components/overview/__snapshots__/overview.test.tsx.snap
Outdated
Show resolved
Hide resolved
src/plugins/security_oss/public/insecure_cluster_service/components/default_alert.test.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. only a few check.
~25 failures still. I need to update the project to just ignore the maps directory completely for tests instead of just ignoring one test. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
8 failures still. Committing here because the remaining but require an agreement of next steps. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
2a5aebe
to
7d42286
Compare
✅ DCO Check Passed 7d42286 |
✅ DCO Check Passed 499711f |
✅ DCO Check Passed 20d3952 |
Files were uncompressed, renamed, and then compressed again for unit tests. Signed-off-by: Kawika Avilla <avillk@amazon.com>
20d3952
to
4f390a6
Compare
✅ DCO Check Passed 4f390a6 |
…t.js Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
✅ DCO Check Passed c314dbd |
Updated references to OpenSearch and OpenSearch Dashboards for the zipped files with the cli_plugin for the tests to pass. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
✅ DCO Check Passed 8c44e54 |
This test checks if image exists but this image was removed in the renaming process at this commit: 3ecadd0. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
✅ DCO Check Passed e3a9612 |
Updating a test that discovers plugins to have the correct amount. The original tests removed the creation of the mock related to x-pack. Update the test to get the correct values while running tests. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
✅ DCO Check Passed b93ef34 |
Results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just one question
src/plugins/advanced_settings/public/management_app/lib/get_category_name.test.ts
Show resolved
Hide resolved
src/plugins/opensearch_dashboards_react/public/markdown/markdown.test.tsx
Outdated
Show resolved
Hide resolved
src/plugins/security_oss/public/insecure_cluster_service/components/default_alert.test.tsx
Outdated
Show resolved
Hide resolved
PR comment to include RENAMEME for easy grepping and update a ref to opensearch.com to opensearch.co so that it is easier to grep while renaming. Then had to regenerate the snapshots. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
✅ DCO Check Passed 4fcc7bb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !!
* [Tests] A few easy fixes for unit tests ~25 failures still. I need to update the project to just ignore the maps directory completely for tests instead of just ignoring one test. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] exclude maps from jest Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] More easy fixes for unit tests 8 failures still. Committing here because the remaining but require an agreement of next steps. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] Update compressed files for unit tests Files were uncompressed, renamed, and then compressed again for unit tests. Signed-off-by: Kawika Avilla <avillk@amazon.com> * [Tests] Rename cli_plugin/kibana.test.js to opensearch_dashboards.test.js Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] update zip files in cli_plugin Updated references to OpenSearch and OpenSearch Dashboards for the zipped files with the cli_plugin for the tests to pass. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] remove optimize/image tests This test checks if image exists but this image was removed in the renaming process at this commit: 3ecadd0. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] update plugins_discovery test Updating a test that discovers plugins to have the correct amount. The original tests removed the creation of the mock related to x-pack. Update the test to get the correct values while running tests. Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * [Tests] update TODOs with [RENAMEME] and ref to .com PR comment to include RENAMEME for easy grepping and update a ref to opensearch.com to opensearch.co so that it is easier to grep while renaming. Then had to regenerate the snapshots. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
…ect#192) (opensearch-project#233) * [Workspace][Feature] Left navigation menu adjustment (opensearch-project#192) * add util function to filter workspace feature by wildcard Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * resolve conflict Signed-off-by: yuye-aws <yuyezhu@amazon.com> * update tests and snapshots Signed-off-by: yuye-aws <yuyezhu@amazon.com> * small adjustment to left menu Signed-off-by: yuye-aws <yuyezhu@amazon.com> * resolve git conflict Signed-off-by: yuye-aws <yuyezhu@amazon.com> * rename nav link service function Signed-off-by: yuye-aws <yuyezhu@amazon.com> * unit test for workspace plugin.ts Signed-off-by: yuye-aws <yuyezhu@amazon.com> * update snapshots Signed-off-by: yuye-aws <yuyezhu@amazon.com> * optimize code Signed-off-by: yuye-aws <yuyezhu@amazon.com> * optimize code Signed-off-by: yuye-aws <yuyezhu@amazon.com> * optimize code Signed-off-by: yuye-aws <yuyezhu@amazon.com> * optimize code Signed-off-by: yuye-aws <yuyezhu@amazon.com> * optimize code Signed-off-by: yuye-aws <yuyezhu@amazon.com> * optimize code Signed-off-by: yuye-aws <yuyezhu@amazon.com> --------- Signed-off-by: Yulong Ruan <ruanyl@amazon.com> Signed-off-by: yuye-aws <yuyezhu@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com> * resolve conflict Signed-off-by: yuye-aws <yuyezhu@amazon.com> * update snapshots Signed-off-by: yuye-aws <yuyezhu@amazon.com> * resolve conflicts Signed-off-by: yuye-aws <yuyezhu@amazon.com> * restore snapshot Signed-off-by: yuye-aws <yuyezhu@amazon.com> * update tests Signed-off-by: yuye-aws <yuyezhu@amazon.com> --------- Signed-off-by: Yulong Ruan <ruanyl@amazon.com> Signed-off-by: yuye-aws <yuyezhu@amazon.com> Co-authored-by: Yulong Ruan <ruanyl@amazon.com>
Description
Update unit tests to succeed. Updating the tests where it needs to be in expectations, or potentially some missed updates, or even ignoring some directories because they are no longer relevant. Also, included updating the compressed files that get uncompressed during test run and verified.
Some snapshots had to be updated again as well.
Issues Resolved
#207
Check List
New functionality has been documented.New functionality has javadoc added