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

Add BATS test for deployment profiles [5d] #3753

Closed
Tracked by #3649
jandubois opened this issue Jan 11, 2023 · 1 comment
Closed
Tracked by #3649

Add BATS test for deployment profiles [5d] #3753

jandubois opened this issue Jan 11, 2023 · 1 comment
Assignees
Labels
area/deployment Deployment profiles kind/story Work item that is linked from a kind/epic
Milestone

Comments

@jandubois
Copy link
Member

jandubois commented Jan 11, 2023

Acceptance Criteria:

Note: Tests will be done via BATS

  • Use case 1: system profile and existing settings.json. Expected Output: override only locked properties from system profile, and preserve the remaining properties from settings.json
  • Use case 2: system profile and user profile existing settings.json. Expected Output: If there is a system profile, user profile is just ignored. Overrides only locked properties from system profile, and preserve the remaining properties from settings.json
  • Use case 3: No profiles and no settings. Json (fresh install). Expected Output: pops-up first-run dialog requesting settings and populate them in settings.json
  • Use case 4: System profile, user profile and no settings.json. Expected Output: settings.json will be populated with settings from system profile. User profile will just be ignored.
  • Use case 5: Only user profile and no settings. Expected Output: settings.json will be populated with settings from user profile.
  • Use case 6: user profile and settings.json. Expected Output: override only locked properties from user profile, and preserve the remaining properties from settings.json
  • Use case 7: corrupted system/user profile. Expected Output: System will pop-up an error dialog explicating the profiles have invalid format and will prevent the application to start.
  • Use case 8: system profile with incorrect locked property and conflicting settings.json.
  • Use case 9: Start Rancher Desktop w/ deployment profiles with non-existing settings
  • Use case 10: Start Rancher Desktop with deployment profiles containing wrong data types
@jandubois jandubois changed the title Add BATS test for deployment profiles Add BATS test for deployment profiles [5d] Jan 12, 2023
@jandubois jandubois added this to the Next milestone Jan 13, 2023
@jandubois jandubois added kind/story Work item that is linked from a kind/epic area/preferences labels Jan 13, 2023
@jandubois jandubois modified the milestones: 1.8, 1.9 Mar 8, 2023
@jandubois jandubois added area/deployment Deployment profiles and removed area/preferences labels Mar 22, 2023
@jandubois jandubois modified the milestones: 1.9, 1.10 Apr 11, 2023
@jandubois jandubois modified the milestones: 1.9, 1.10 May 12, 2023
@jandubois
Copy link
Member Author

jandubois commented Jun 16, 2023

The acceptance criteria from this issue have been copied into epic #4962.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deployment Deployment profiles kind/story Work item that is linked from a kind/epic
Projects
None yet
Development

No branches or pull requests

2 participants