-
Notifications
You must be signed in to change notification settings - Fork 365
Bypass feature validation for dynamic tenant features #9523
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
Merged
Fryguy
merged 4 commits into
ManageIQ:master
from
jrafanie:skip-product-feature-validation-for-tenant-dynamic-product-features
Aug 20, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0252b33
Bypass feature validation for dynamic tenant features
jrafanie 8b7c094
Add a test for Settings, Access Control, Tenant Add and Delete
jrafanie 4b749f2
Reuse flashClassMap from just merged #9554
jrafanie 6f11925
Simplify the defining of constants and access
jrafanie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
51 changes: 51 additions & 0 deletions
51
cypress/e2e/ui/Settings/Application-Settings/settings_access_control.cy.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* eslint-disable no-undef */ | ||
import { flashClassMap } from '../../../../support/assertions/assertion_constants'; | ||
|
||
describe('Settings > Application Settings > Access Control', () => { | ||
// Navigation | ||
const PRIMARY_MENU_OPTION = 'Settings'; | ||
const SECONDARY_MENU_OPTION = 'Application Settings'; | ||
const ACCORDION = 'Access Control'; | ||
const TOOLBAR_MENU = 'Configuration'; | ||
|
||
// Created item information | ||
const INITIAL_TENANT_NAME = 'Test-name'; | ||
const INITIAL_TENANT_DESCRIPTION = 'test description'; | ||
|
||
// CRUD actions | ||
const FLASH_MESSAGE_OPERATION_ADDED = 'added'; | ||
const FLASH_MESSAGE_OPERATION_DELETED = 'delete'; | ||
const DELETE_ITEM = 'Delete this item'; | ||
|
||
beforeEach(() => { | ||
cy.login(); | ||
cy.menu(PRIMARY_MENU_OPTION, SECONDARY_MENU_OPTION); | ||
cy.accordion(ACCORDION); | ||
}); | ||
|
||
it('should be able to create and delete a tenant', () => { | ||
cy.selectAccordionItem([ | ||
/^ManageIQ Region/, | ||
'Tenants', | ||
'My Company', | ||
]); | ||
|
||
cy.toolbar(TOOLBAR_MENU, 'Add child Tenant to this Tenant'); | ||
cy.getFormInputFieldById('name').type(INITIAL_TENANT_NAME); | ||
cy.getFormInputFieldById('description').type(INITIAL_TENANT_DESCRIPTION); | ||
cy.getFormFooterButtonByType('Add', 'submit').click(); | ||
cy.expect_flash(flashClassMap.success, FLASH_MESSAGE_OPERATION_ADDED); | ||
cy.selectAccordionItem([ | ||
/^ManageIQ Region/, | ||
'Tenants', | ||
'My Company', | ||
INITIAL_TENANT_NAME | ||
]); | ||
|
||
cy.expect_browser_confirm_with_text({ | ||
confirmTriggerFn: () => cy.toolbar(TOOLBAR_MENU, DELETE_ITEM), | ||
containsText: DELETE_ITEM, | ||
}); | ||
cy.expect_flash(flashClassMap.success, FLASH_MESSAGE_OPERATION_DELETED); | ||
}); | ||
}); |
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.
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.
This list of constants can be updated/consolidated when we add more access control tests. It's hard to decide what should be constants vs. inline.
My thinking is:
I don't know, that's my thinking here.