Logo: Relish

  1. Sign in

Project: Console

Support System Scope

  • @skip
  • @dxpcloud
  • @teardown_projects
Background
Given
I sign in to WeDeploy as a support user
Scenarios
Support user can create a project
When
I click the "New Project" button
And
I click the "Create Project" button
Then
I should see the notification
Project was created successfully
Support user can create new project from git repo
When
I click the Deploy from button
And
I click the "Git Repository" link
And
I enter "https://github.com/wedeploy-qa/deployment-tests" into the "repo" input field
And
I click the "Create Project and Deploy Services" button
Then
I should see the text "Deploying on WeDeploy"
And
I should see the text "Deployment complete"
Support user can add new environment
Given
a project with ID "charlie1"
When
I visit "/projects/charlie1/services"
And
I select "Add New Environment" from the environment dropdown
And
I enter "dev" into the "Environment ID" input field
And
I click the "Add New Environment" button
Then
I should see the notification
Environment was created successfully
Support user can install a service
Given
a project with ID "charlie2"
When
I visit "/projects/charlie2/services"
And
I click the "Install Service" button
And
I click on the "WeDeploy Hosting" service
And
I click the "Install Service" button
Then
I should see the notification
Service was created successfully
Support user cannot restart or delete service
Given
a project with ID "charlie3"
And
"charlie3" project has a "hosting" service with id "hosting1"
When
I visit "/projects/charlie3/services"
And
I click "hosting1" in the Services list
And
I open the service header dropdown menu
Then
I should not see the text "Restart Service"
And
I should not see the text "Delete Service"
Support user cannot download service logs
Given
a project with ID "charlie4"
And
"charlie4" project has a "hosting" service with id "hosting1"
When
I visit "/projects/charlie4/services/hosting1/logs"
Then
I should not see the button "Download Logs"
And
I visit "/projects/charlie4/logs"
And
I should not see the button "Download Logs"
Support user cannot view shell tab
Given
a project with ID "charlie5"
And
"charlie5" project has a "hosting" service with id "hosting1"
When
I visit "/projects/charlie5/services/hosting1/shell"
Then
I should be at url ending with "/projects/charlie5/services/hosting1/logs"
And
I should not see the "Shell" tab
Support user cannot enable auto scaling
Given
a project with ID "charlie6"
And
"charlie6" project has a "hosting" service with id "hosting1"
When
I visit "/projects/charlie6/services/hosting1/scale"
Then
the "Enable Auto Scaling" button should be disabled
Support user cannot manually downscale
Given
a project with ID "charlie7"
And
"charlie7" project has a "hosting" service with id "hosting1"
And
the service "hosting1-charlie7" has scaled up by 1
When
I visit "/projects/charlie7/services/hosting1/scale"
Then
I should see in the Auto Scaling section
Instances in Use 20% 2 of 10 instances
And
I should see 1 instances in the Scaled Instances section
And
the "Disable Auto Scaling" button should be disabled
And
the "Manual Downscale" button should be disabled
Support user cannot view or update environment variables
Given
I sign in to WeDeploy as a test user
And
I create a project with ID "charlie8"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "charlie8"
And
I add the following Environment Variables for "hosting1"
Key Value
TEST_KEY_1 12345
When
I sign in to WeDeploy as a support user
And
I visit "/projects/charlie8/services/hosting1"
And
I go to the "Environment Variables" tab for "hosting1"
Then
I should see the text "Environment Variables"
And
all input fields should be disabled
And
I should not see the button "Update Environment Variables"
And
I should not see any remove environment variable buttons
And
the environment variable keys should be hidden
And
the environment variable values cannot be viewed
Support user cannot update custom domains
Given
a project with ID "charlie9"
And
"charlie9" project has a "hosting" service with id "hosting1"
When
I visit "/projects/charlie9/services/hosting1/custom-domains"
Then
all input fields should be disabled
And
I should not see the button "Update Custom Domains"
  • @teardown_users
Support user can change member role
Given
"[email protected]" is a "contributor" for project "charlie10"
When
I go to the "Team" page for "charlie10" project
And
I click the ellipsis menu for the member "[email protected]"
And
I click the "Change to Guest" button
Then
I should see the notification
Role changed
And
I should see "[email protected]" as a "Guest" member
  • @teardown_users
Support user cannot remove member or transfer ownership
Given
"[email protected]" is a "contributor" for project "charlie15"
When
I go to the "Team" page for "charlie15" project
And
I click the ellipsis menu for the member "[email protected]"
Then
I should not see the text "Remove Member"
And
I should not see the text "Transfer Ownership"
  • @teardown_users
Support user cannot cancel invitation
Given
"[email protected]" has an invitation to collaborate on project "charlie11"
When
I go to the "Team" page for "charlie11" project
And
I click the "Invited" Members tab
Then
I should not see an ellipsis menu for email "[email protected]"
Support user cannot view master token
Given
a project with ID "charlie16"
When
I visit "/projects/charlie16/settings"
Then
I should not see the text "Master Token"
Support user cannot edit VPN settings
Given
a project with ID "charlie12"
When
I visit "/projects/charlie12/settings"
Then
I should see the text "VPN"
And
all input fields should be disabled
And
the "Connect VPN" button should be disabled
Support user can view VPN settings
Given
a project with ID "charlie13"
And
"charlie13" project has saved VPN settings
And
"charlie13" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
When
I visit "/projects/charlie13/settings"
Then
I should see the text "Connected to vpn-1.lax.liferay.com"
And
I should see the Port Forwarding settings:
Forwarding IP Forwarding Port Local Hostname
192.168.0.10 3306 vpn
And
all VPN Port Forwarding input fields should be disabled
And
I should not see the button "Disconnect"
And
I should not see the button "Update Ports"
  • @teardown_tester
Support user cannot deploy a build to an environment
Given
a project with ID "charlie14"
And
"charlie14" project has a "hosting" service with id "hosting1"
When
I visit "/projects/charlie14/services"
And
I click "Builds" in the topbar
And
I open the dropdown menu for row 1
Then
I should not see the text "Deploy Build to..."

Last published 6 months ago by Christie Yoo.