Logo: Relish

  1. Sign in

Project: Console

Service Environment Variables

  • @dxpcloud
  • @paas
  • @teardown_projects

Add, update, and delete environment variables for a service.

Background
Given
I sign in to WeDeploy as a test user
Scenarios
Add environment variables
Given
I create a project with ID "gamma1"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "gamma1"
When
I click the "hosting1" service
And
I click the "Environment Variables" tab
And
I enter the following for Environment Variables
Key Value
TEST_KEY_1 abcdef123
TEST_KEY_2
TEST_KEY_1 12345
test
TEST_KEY_3 DEF1234
And
I click the "Update Environment" button
Then
I should see the notification
Environment variables were updated successfully.
And
I refresh the page
And
I should see in the Environment Variables list
Key Value
TEST_KEY_1 12345
TEST_KEY_2
TEST_KEY_3 DEF1234
And
I should see listed in the General Activities
Environment variables updated hosting1
Update environment variables
Given
I create a project with ID "gamma2"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "gamma2"
And
I add the following Environment Variables for "hosting1"
Key Value
TEST_KEY_1 abcdef
TEST_KEY_2 test
TEST_KEY_3 12345
When
I update the environment variables with the following
Old Key New Key New Value
TEST_KEY_2 TEST_KEY_UPDATED test123
TEST_KEY_3 TEST_KEY_3 A1B2
And
I click the "Update Environment" button
And
I pause for "3" seconds
And
I refresh the page
Then
I should see in the Environment Variables list
Key Value
TEST_KEY_1 abcdef
TEST_KEY_UPDATED test123
TEST_KEY_3 A1B2
  • @teardown_tester
Delete environment variables
Given
I create a project with ID "gamma3"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "gamma3"
And
I add the following Environment Variables for "hosting1"
Key Value
TEST_KEY_1 abcdef123
TEST_KEY_2 test
TEST_KEY_3 12345
TEST_KEY_4 12345
TEST_KEY_5 DEF1234
When
I remove the following Environment Variables
TEST_KEY_1
TEST_KEY_4
And
I click the "Update Environment" button
And
I should see in the Environment Variables list
Key Value
TEST_KEY_2 test
TEST_KEY_3 12345
TEST_KEY_5 DEF1234
And
I remove the following Environment Variables
TEST_KEY_2
TEST_KEY_3
TEST_KEY_5
And
I click the "Update Environment" button
Then
the Environment Variables list should be empty

Last published 10 months ago by Christie Yoo.