ROX-13564: Replace vmWorkflowUtils helper functions in non-postgress vulnmanagement integration tests#3885
Merged
pedrottimark merged 8 commits intomasterfrom Nov 23, 2022
Merged
Conversation
added 4 commits
November 22, 2022 15:09
|
Images are ready for the commit at 03fb3b8. To use with deploy scripts, first |
added 4 commits
November 22, 2022 16:56
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Overview
'ROX_POSTGRES_DATASTORE'feature flag disabled, we have waited for evidence of timing problems.Test failure
at validateAllCVELinks cypress/helpers/vmWorkflowUtils.js:126:7
at allCVECheck cypress/helpers/vmWorkflowUtils.js:233:4
at Context.eval cypress/integration/vulnmanagement/deploymentsListPages.test.js:60:32
Analysis
The test files for entities have a big test:
Solution
Apply pattern for tests with
'ROX_POSTGRES_DATASTORE'feature flag enabled in #3068Organization
For example, rename clusterCvesListPages.test.js as clusterCves.test.js
For example, rename cvesListPages.test.js as cvesNonPostgress.test.js
Residue
Because
hasTableColumnHeadingsfunction explicitly asserts existence of checkbox, hidden, and invisible column headings:columnIndexarguments of verify function calls to be consistent with arrays of column heading strings in the function call.columnIndex + 1withcolumnIndexinnth-childpseudo-selector.Future removal of non-postgress tests
Delete whateverNonPostgress.test.js files
Delete skip from test files:
Delete skip from tests:
Replace conditional ternary expressions with postgress-only value, for example:
const entitiesKey = hasFeatureFlag('ROX_POSTGRES_DATASTORE') ? 'image-cves' : 'cves';const entitiesKey = 'image-cves';Checklist
Testing Performed