Logo: Relish

  1. Sign in

Project: Console

Environment

  • @dxpcloud
  • @paas
  • @teardown_projects
Background
Given
I sign in to WeDeploy as a test user
Scenarios
  • @smoke
Add new environment to a project
Given
I create a project with ID "epsilon1"
When
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 "epsilon1-dev" selected in the environment dropdown
And
I should see in the environment dropdown list:
epsilon1
epsilon1-dev
And
I go to the projects page
And
I expand the "epsilon1" project group
And
I should see 2 environments listed:
epsilon1
epsilon1-dev
And
I click on the project "epsilon1"
And
I should be at url ending with "/projects/epsilon1/overview"
And
I should see "epsilon1" selected in the environment dropdown
Use environment dropdown to switch between environments
Given
I create a project with ID "epsilon2"
And
I install a "Hosting" service with id "hosting1" for the project "epsilon2"
When
I add a "uat" environment for "epsilon2"
And
I install a "Data" service with id "data1" for the environment "epsilon2-uat"
Then
I should be at url ending with "/projects/epsilon2-uat/overview"
And
I should see "data1" under Services
And
I should not see "hosting1" under Services
And
I should see "epsilon2-uat" selected in the environment dropdown
And
I select "epsilon2" from the environment dropdown
And
I should be at url ending with "/projects/epsilon2/overview"
And
I should see "hosting1" under Services
And
I should not see "data1" under Services
And
I should see "epsilon2" selected in the environment dropdown
  • @smoke
Copy services from an existing environment
Given
my current user plan is "Standard"
And
I create a project with ID "epsilon7"
And
I add a "dev" environment for "epsilon7"
And
I add a "uat" environment for "epsilon7"
And
I select "epsilon7-dev" from the environment dropdown
And
I install a "Hosting" service with id "hosting1" for the environment "epsilon7-dev"
And
I install a "Hosting" service with id "hosting2" for the environment "epsilon7-dev"
When
I select "Add New Environment" from the environment dropdown
And
I enter "prod" into the "Environment ID" input field
And
I click the "Copy all services from an existing environment" checkbox
And
I should see in the environment dropdown list:
epsilon7
epsilon7-dev
epsilon7-uat
And
I select "epsilon7-dev" from the environment dropdown
And
I click the "Add New Environment" button
Then
I should be at url ending with "/projects/epsilon7-prod/overview"
And
I should see "hosting1" under Services
And
I should see "hosting2" under Services
  • @smoke
Delete an environment
Given
I create a project with ID "epsilon3"
And
I add a "dev" environment for "epsilon3"
And
I add a "uat" environment for "epsilon3"
When
I select "epsilon3-dev" from the environment dropdown
And
I click "Settings" in the sidebar
And
I click the "Delete Environment" button
And
I enter "epsilon3-dev" into the "Environment ID" input field
And
I click the "Delete Environment" button
Then
I should be at url ending with "/projects"
And
I expand the "epsilon3" project group
And
I should see 2 environments listed:
epsilon3
epsilon3-uat
And
I go to the "Overview" page for "epsilon3" project
And
I should see in the environment dropdown list:
epsilon3
epsilon3-uat
And
I should not see "epislon3-dev" in the environment dropdown
  • @smoke
Delete entire project with multiple environments
Given
I create a project with ID "epsilon4"
And
I add a "dev" environment for "epsilon4"
And
I add a "uat" environment for "epsilon4"
When
I select "epsilon4" from the environment dropdown
And
I click "Settings" in the sidebar
And
I click the "Delete Environment" button
And
I enter "epsilon4" into the 1st input field
And
I enter "epsilon4-dev" into the 2nd input field
And
I enter "epsilon4-uat" into the 3rd input field
And
I click the "Delete Project and All Related Environments" button
Then
I should be at url ending with "/projects"
And
I should not see "epsilon4" in the project list
And
I should not see "epsilon4-dev" in the project list
And
I should not see "epsilon4-uat" in the project list
View services for selected environment
Given
my current user plan is "Standard"
And
I create a project with ID "epsilon9"
And
I add a "dev" environment for "epsilon9"
And
I add a "uat" environment for "epsilon9"
And
I install a "Hosting" service with id "hosting1" for the environment "epsilon9"
And
I install a "Hosting" service with id "hosting2" for the environment "epsilon9"
And
I install a "Hosting" service with id "hosting3" for the environment "epsilon9-uat"
When
I select "Add New Environment" from the environment dropdown
And
I enter "prod" into the "Environment ID" input field
And
I click the "Copy all services from an existing environment" checkbox
And
I select "epsilon9" from the environment dropdown
And
I click the "Add environment variables" checkbox
Then
I should see "hosting1" in the environment variables section
And
I should see "hosting2" in the environment variables section
And
I should not see "hosting3" in the environment variables section
And
I select "epsilon9-uat" from the environment dropdown
And
I should see "hosting3" in the environment variables section
And
I should not see "hosting1" in the environment variables section
And
I should not see "hosting2" in the environment variables section
Customize environment variables when creating new environment
Given
I create a project with ID "epsilon5"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "epsilon5"
And
I add the following Environment Variables for "hosting1"
Key Value
TEST_KEY_1 11111
TEST_KEY_2 22222
When
I select "Add New Environment" from the environment dropdown
And
I enter "dev" into the "Environment ID" input field
And
I click the "Copy all services from an existing environment" checkbox
And
I click the "Add environment variables" checkbox
And
I update the environment variables with the following
Old Key New Key New Value
TEST_KEY_2 TEST_KEY_2 22222test
And
I enter the following for Environment Variables
Key Value
TEST_KEY_3 33333
And
I click the "Add New Environment" button
Then
I should be at url ending with "/projects/epsilon5-dev/overview"
And
I click the "hosting1" service
And
I click the "Environment Variables" tab
And
I should see in the Environment Variables list
Key Value
TEST_KEY_1 11111
TEST_KEY_2 22222test
TEST_KEY_3 33333
  • @teardown_users
Invite a user to collaborate for an environment
Given
I create a project with ID "epsilon6"
And
I add a "dev" environment for "epsilon6"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the environment "epsilon6-dev"
And
I have a collaborator "[email protected]" for "epsilon6-dev"
When
I sign in to WeDeploy as "[email protected]"
Then
I should see in the project list
Project Services Team
epsilon6-dev hosting1 Tester, QA Collaborator
And
I click on the project "epsilon6-dev"
And
I should be at url ending with "/projects/epsilon6-dev/overview"
And
I should see "epsilon6-dev" selected in the environment dropdown
And
I should not see "epsilon6" in the environment dropdown
And
I should see "hosting1" under Services
And
I should not see in the browser console:
Uncaught TypeError: Cannot read property 'projectId' of null
  • @teardown_tester
  • @teardown_users
Collaborator cannot create environment
Given
I create a project with ID "epsilon8"
And
I add a "dev" environment for "epsilon8"
And
I have a collaborator "[email protected]" for "epsilon8-dev"
When
I sign in to WeDeploy as "[email protected]"
And
I click on the project "epsilon8-dev"
Then
I should be at url ending with "/projects/epsilon8-dev/overview"
And
I should not see "epsilon8" in the environment dropdown
And
I should not see "Add New Environment" in the environment dropdown

Last published 11 months ago by Christie Yoo.