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

Epic: Automate deployment profile tests via BATS #4962

Closed
30 tasks
IsaSih opened this issue Jun 16, 2023 · 1 comment
Closed
30 tasks

Epic: Automate deployment profile tests via BATS #4962

IsaSih opened this issue Jun 16, 2023 · 1 comment
Assignees
Labels
area/deployment Deployment profiles component/bats BATS tests kind/epic Umbrella-bug for a group of related issues kind/quality quality improvements, refactoring, Automation via CI, E2E, Integration, CLI or REST API
Milestone

Comments

@IsaSih
Copy link
Contributor

IsaSih commented Jun 16, 2023

This epic aims to automate all the test cases related to deployment profiles

Acceptance Criteria:

  • 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

Implementation

Windows

  • Start Rancher Desktop with SYSTEM deployment profiles, no settings.json BATS test for deployment profiles #4984
  • SYSTEM profile and existing settings.json
  • SYSTEM profile and USER profile existing settings.json
  • SYSTEM profile and USER profile, no existing settings.json
  • Start Rancher Desktop with USER deployment profiles only
  • Start Rancher Desktop w/ deployment profiles with non-existing settings
  • Start Rancher Desktop with deployment profiles containing wrong data types
  • Start Rancher Desktop w/ bad-formatted deployment profiles
  • SYSTEM profile with incorrect locked property and conflicting existing settings.json.
  • e2e tests for deployment profiles (integration with UI) - Different epic

macOS

  • Start Rancher Desktop with SYSTEM deployment profiles, no settings.json
  • SYSTEM profile and existing settings.json
  • SYSTEM profile and USER profile existing settings.json
  • SYSTEM profile and USER profile, no existing settings.json
  • Start Rancher Desktop with USER deployment profiles only
  • Start Rancher Desktop w/ deployment profiles with non-existing settings
  • Start Rancher Desktop with deployment profiles containing wrong data types
  • Start Rancher Desktop w/ bad-formatted deployment profiles
  • SYSTEM profile with incorrect locked property and conflicting existing settings.json.
  • e2e tests for deployment profiles (integration with UI) - Different epic

Linux

  • Start Rancher Desktop with SYSTEM deployment profiles, no settings.json
  • SYSTEM profile and existing settings.json
  • SYSTEM profile and USER profile existing settings.json
  • SYSTEM profile and USER profile, no existing settings.json
  • Start Rancher Desktop with USER deployment profiles only
  • Start Rancher Desktop w/ deployment profiles with non-existing settings
  • Start Rancher Desktop with deployment profiles containing wrong data types
  • Start Rancher Desktop w/ bad-formatted deployment profiles
  • SYSTEM profile with incorrect locked property and conflicting existing settings.json.
  • e2e tests for deployment profiles (integration with UI) - Different epic
@IsaSih IsaSih added kind/epic Umbrella-bug for a group of related issues kind/quality quality improvements, refactoring, Automation via CI, E2E, Integration, CLI or REST API area/deployment Deployment profiles labels Jun 16, 2023
@IsaSih IsaSih self-assigned this Jun 16, 2023
@IsaSih IsaSih added this to the 1.10 milestone Jun 16, 2023
@IsaSih
Copy link
Contributor Author

IsaSih commented Jun 16, 2023

Creating individual issues to automate each test case described in #3753

@IsaSih IsaSih changed the title Automate deployment profile tests BATS - Automate deployment profile tests Jun 16, 2023
@IsaSih IsaSih added the component/bats BATS tests label Jun 16, 2023
@jandubois jandubois changed the title BATS - Automate deployment profile tests Epic: Automate deployment profile tests via BATS Jun 16, 2023
@IsaSih IsaSih closed this as completed Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deployment Deployment profiles component/bats BATS tests kind/epic Umbrella-bug for a group of related issues kind/quality quality improvements, refactoring, Automation via CI, E2E, Integration, CLI or REST API
Projects
None yet
Development

No branches or pull requests

1 participant