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

POC/UI: Create quick and simple tests to test things which do not need virtual machines #1568

Open
juadk opened this issue Sep 17, 2024 · 0 comments

Comments

@juadk
Copy link
Contributor

juadk commented Sep 17, 2024

We should be able to speed up our tests by splitting tests which need virtual machines and not.

Tests duration

Standard Basics: 28'
Standard Advanced: 23'24
Whole test: 1h10

Upgrade Basics: 7'28
Upgrade Advanced : 17'34
Whole test: 40'13

Here is the current list of the Cypress tests:

Standard Basics

  • First connection
    Test Log in and accept terms and conditions
    Test Enable Helm Chart Prerelease versions

  • Operator
    Test Add local chartmuseum repo
    Test Install latest dev Elemental operator

  • Plugin
    Test Add elemental-ui repo
    Test Add rancher-ui-plugin-charts repo
    Test Enable extension support
    Test Install Elemental plugin
    Test Add additional channel

  • User
    Test Create standard user
    Test Create elemental user
    Test Elemental user should access the OS management menu
    Test Standard user should not access the OS management menu

  • Menu
    Test Check Elemental logo
    Test Check Elemental menu

  • Os version
    Test Check In Sync column status
    Test Out of sync OS version should appear deprecated

  • Machine registration
    Test Create machine registration with default options
    Test Create machine registration with labels and annotations
    Test Delete machine registration
    Test Edit a machine registration with edit config button
    Test Edit a machine registration with edit YAML button
    Test Clone a machine registration
    Test Download Machine registration YAML
    Test Check machine registration label name size
    Test Check machine registration label value size
    Test Create Machine registration we will use to test adding a node

  • Seed image
    Test Download from seed images menu

  • Advanced filtering
    Test Create fake machine inventories
    Test Two machine inventories should appear by filtering on test-filter
    Test One machine inventory should appear by filtering on test-filter-one
    Test No machine inventory should appear by filtering on test-bad-filter
    Test Delete all fake machine inventories

Standard Advanced

  • Machine selector
    Test Testing selector without any rule
    Test Testing selector with unmatching rule
    Test Testing selector with matching rule

  • Machine inventory
    Test Check that machine inventory has been created
    Test Check we can see our embedded hardware labels
    Test Create Elemental cluster
    Test Check Elemental cluster status

  • Reset
    Test Reset node by deleting the cluster
    Test Create Elemental cluster

  • Deploy app
    Test Deploy Alerting Drivers application
    Test Remove Alerting Drivers application

Upgrade Basics

Upgrade Advanced

  • Upgrade operator
    Test Add elemental-operator dev
    Upgrade Elemental operator
    Check Elemental UI after upgrade

  • Upgrade UI extension
    Test Add elemental-ui dev repo
    Test Upgrade Elemental UI extension
    Test Check Elemental UI after upgrade

  • Upgrade
    Test Upgrade one node (different methods if rke2 or k3s)
    Test Cannot create two upgrade groups targeting the same cluster
    Test Delete Upgrade Group
    Test Delete OS Versions Channels

@juadk juadk assigned juadk and unassigned juadk Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 💡 Backlog
Development

No branches or pull requests

1 participant