-
Notifications
You must be signed in to change notification settings - Fork 72
Fix Project Allowed Operating Systems Not Initialized on Creation - Test Release 2.31 #7966
Description
Summary
Testing scope: Add Project dialog was not initializing the allowed OS settings from admin defaults, effectively bypassing the administrator's policy if the user submitted the form without touching the OS toggles. Accessible via: Dashboard > Projects > Add Project dialog.
Related:
- Issue: Allowed OS Settings Bypassed During Project Creation #7955
- PR: Fix project allowed operating systems not initialized on creation #7956
Type of Testing
- New Feature
- Bug Fix / Regression
- UI/UX
- Performance
- Upgrade / Migration
Prerequisites
- Admin user account with access to the Admin Panel to configure allowed operating systems
- Regular (non-admin) user account to test project creation
- At least one admin-configured allowed OS setting must be in place before testing (e.g., Ubuntu enabled, Flatcar disabled)
Environment:
- Provider Specific Setup (If Applicable): Any provider (OS initialization is provider-agnostic at project level)
Test Scenarios
-
Scenario 1: Admin user creates a project — OS restrictions also initialized correctly
- Steps:
- Log in as admin and navigate to Admin Panel > Defaults. Configure allowed operating systems with at least one OS enabled (e.g., Ubuntu enabled, Flatcar disabled).
- Log in as a regular user, navigate to Projects, and open the Add Project dialog.
- Enter a project name only and submit the form without interacting with any OS toggle.
- Expected: The created project has the admin-configured OS restrictions applied.
- Steps:
-
Scenario 2: Project created with all OS toggles enabled by admin shows correct OS list
- Steps:
- Configure admin defaults with all available operating systems enabled.
- Open the Add Project dialog as a regular user and submit without modifying any toggle.
- Expected: The newly created project allows all operating systems. No OS is unexpectedly excluded.
- Steps:
-
Scenario 3: User manually changes OS toggles before submitting — custom selection is respected
- Steps:
- Configure admin defaults with Ubuntu and Flatcar enabled.
- Open the Add Project dialog, and manually toggle Flatcar off before submitting.
- Expected: The created project reflects only Ubuntu as the allowed OS, honoring the user's manual override of the default.
- Steps:
-
Scenario 4: Edit Project dialog still shows and saves OS settings correctly after project creation fix
- Steps:
- Create a project using the fixed Add Project dialog (without touching OS toggles).
- Open the Edit Project dialog for the newly created project.
- Verify the OS toggles are pre-populated and then save with a minor change.
- Expected: Edit Project dialog shows the correct OS settings inherited at creation. Saving updates them correctly with no regression.
- Steps:
-
Scenario 5: Empty admin default no OS constraints applied when admin has not configured restrictions
- Steps:
- Log in as admin and navigate to Admin Panel > Defaults. Ensure no operating systems are configured or all OS restrictions are cleared/disabled.
- Log in as a regular user, navigate to Projects, and open the Add Project dialog.
- Enter a project name only and submit the form without interacting with any OS toggle.
- Expected: The created project is successful with no OS constraints applied. All operating systems are implicitly allowed (unrestricted) for cluster creation within that project.
- Steps:
Screenshots / Attachments
- Attached in PR
Acceptance Criteria
- New projects created without touching OS toggles inherit admin-configured allowed OS settings automatically
- New projects created when admin has no OS defaults configured remain unrestricted and are created successfully
- The Add Project dialog pre-populates OS toggles to reflect enabled admin defaults when opened
- Only admin-enabled OS entries are included in the created project; disabled entries are excluded
- Edit Project dialog continues to load and save OS settings correctly with no regression
- No console errors during normal Add Project dialog open and submit flow
Milestone
Target Milestone: v2.31
Test Environment
- Domain: (Currently: Dev)