Skip to content

E2E spec for workspaces to work with new UI

Nivetha Prabakaran requested to merge remote_dev-patch-03d1 into master

What does this MR do and why?

E2E test for creating a new workspace, stopping and terminate it as mentioned in the implementation issue - #408389 (closed). This spec does not involve agent creation or devfile project creation, so it needs to be created manually, please follow steps below

This spec is currently quarantined as it cannot run in the pipelines due to the kas/agent setup required for Remote Development. It will be worked in the next iteration in issue - #397005

Screenshots or screen recordings

screen-recording-2023-05-05-at-121124-pm_iShod0YK

How to set up and validate locally

Follow Local development documentation to setup Remote Development with KAS / agentk to run against GDK

  1. Ensure gitlab is up and running with default KAS / agentk stopped
  2. Setup agentk for a group and start agentk with the token received. This agent name is passed in variable AGENTK_NAME
  3. Add a project under the same group and add a file named .devfile.yaml with below content. This project name is passed in variable DEVFILE_PROJECT
devfile_content = <<\~YAML
 schemaVersion: 2.2.0
  components:
   - name: tooling-container
   attributes:
    gl/inject-editor: true
   container:
    image: quay.io/mloriedo/universal-developer-image:ubi8-dw-demo
YAML

Call the helper scripts at scripts/remote_development/run_e2e_spec.sh with DEVFILE_PROJECT and AGENTK_NAME. For example, to override any variable, the script can be run in the following manner

DEVFILE_PROJECT="devfile-test-project" AGENTK_NAME="test-agent" GITLAB_PASSWORD=example TEST_INSTANCE_URL=https://gdk.test:3000 scripts/remote_development/run-e2e-spec.sh

Or run the spec file DEVFILE_PROJECT="devfile-test-project" AGENTK_NAME="test-agent" bundle exec rspec --tag quarantine ./qa/specs/features/browser_ui/3_create/remote_development/create_new_workspace_and_terminate_spec.rb

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Nivetha Prabakaran

Merge request reports

Loading