rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
459 stars 260 forks source link

Extend test automation for installing plugins to Rancher by using serve and compiled plugins #10659

Open cnotv opened 7 months ago

cnotv commented 7 months ago

Description

Extend current tests, so they will cover cases of a new plugin creation or update since it seemed not to cover critical points.

In a practical perspective, all the used scripts should run successfully:

  "scripts": {
    "dev": "NODE_ENV=dev ./node_modules/.bin/vue-cli-service serve",
    "parse-tag-name": "./node_modules/@rancher/shell/scripts/extension/parse-tag-name",
    "build": "./node_modules/.bin/vue-cli-service build",
    "clean": "./node_modules/@rancher/shell/scripts/clean",
    "build-pkg": "./node_modules/@rancher/shell/scripts/build-pkg.sh",
    "serve-pkgs": "./node_modules/@rancher/shell/scripts/serve-pkgs",
    "publish-pkgs": "./node_modules/@rancher/shell/scripts/extension/publish"
  },

Examples

These tests will simplify and ensure migration does not break existing plugins.

This would help with:

cnotv commented 3 months ago

@nwmac this should be done before the migration

cnotv commented 1 month ago

Pushing this out of the Vue3 planning and this milestone as we are testing manually all the extensions commands.