Logo: Relish

  1. Sign in

Project: Console

Account Usage

  • @paas
  • @teardown_projects
Background
Given
I sign in to WeDeploy as a test user
Scenarios
View quotas for Free account
Given
my current user plan is "free"
When
I go to my account "Usage" page
Then
I should see the following quotas:
Transfer 0% 0 Bytes of 1 GB
Memory 0% 0 Bytes of 1 GB
CPU 0% 0 of 1 core processors
Instances 0% 0 of 2 instances
Custom Domains 0% 0 of 0
Collaborators 0% 0 of 0
Environments 0% 0 of 2 environments
View quotas for Premium account
Given
my current user plan is "premium"
When
I go to my account "Usage" page
Then
I should see the following quotas:
Transfer 0% 0 Bytes of 120 GB
Memory 0% 0 Bytes of 10 GB
CPU 0% 0 of 8 core processors
Instances 0% 0 of 20 instances
Custom Domains 0% 0 of 25
Collaborators 0% 0 of 20
Environments 0% 0 of 20 environments
View usage for Instances
Given
my current user plan is "standard"
And
I create a project with ID "chi1"
And
I install these services for "chi1"
type id
Hosting hosting1
Hosting hosting2
And
I create a project with ID "chi2"
And
I install these services for "chi2"
type id
Hosting hosting3
Hosting hosting4
Hosting hosting5
When
I go to my account "Usage" page
Then
the "Instances" progress information should be "5 of 10 instances"
And
the "Instances" progress bar tooltip texts should be:
hosting1 hosting2 hosting3 hosting4 hosting5
10% – 1 of 10 10% – 1 of 10 10% – 1 of 10 10% – 1 of 10 10% – 1 of 10
And
I should see in the "Instances" card:
Services (5)
hosting1-chi1
hosting2-chi1
hosting3-chi2
hosting4-chi2
hosting5-chi2
When
I click "hosting1-chi1" in the "Instances" card
Then
I should be at url ending with "/projects/chi1/services/hosting1/logs"
When
I go to my account "Usage" page
And
I click "hosting3-chi2" in the "Instances" card
Then
I should be at url ending with "/projects/chi2/services/hosting3/logs"
View usage for Custom Domains
Given
my current user plan is "premium"
And
I create a project with ID "chi3"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "chi3"
And
I add the following custom domains for the service "hosting1"
domain
chi3test1.wedeploy.sh
chi3test2.wedeploy.sh
chi3test3.wedeploy.sh
chi3test4.wedeploy.sh
chi3test5.wedeploy.sh
And
I install a "WeDeploy Hosting" service with id "hosting2" for the project "chi3"
And
I add the following custom domains for the service "hosting2"
domain
chi3test6.wedeploy.sh
chi3test7.wedeploy.sh
chi3test8.wedeploy.sh
chi3test9.wedeploy.sh
chi3test10.wedeploy.sh
chi3test11.wedeploy.sh
chi3test12.wedeploy.sh
chi3test13.wedeploy.sh
chi3test14.wedeploy.sh
When
I go to my account "Usage" page
Then
the "Custom Domains" progress information should be "14 of 25"
And
the "Custom Domains" progress bar tooltip texts should be:
hosting1 hosting2
20% – 5 of 25 36% – 9 of 25
  • @teardown_users
View usage for Collaborators
Given
my current user plan is "basic"
And
I create a project with ID "chi4"
And
I have a collaborator "[email protected]" for "chi4"
And
I have a collaborator "[email protected]" for "chi4"
And
I sign in to WeDeploy as a test user
When
I go to my account "Usage" page
Then
the "Collaborators" progress information should be "2 of 2"
View usage for Environments
Given
my current user plan is "free"
And
I create a project with ID "chi5"
And
I create a project with ID "chi6"
When
I go to my account "Usage" page
Then
the "Environments" progress information should be "2 of 2 environments"
And
I should see in the "Environments" card:
Owned (2)
chi5
chi6
And
I go to my account "Usage" page
And
I click "chi6" in the "Environments" card
And
I should be at url ending with "/projects/chi6/overview"
  • @teardown_users
Projects card only displays projects where user is the owner
Given
my current user plan is "basic"
And
I am a "contributor" on "chi7" project
And
I create a project with ID "chi8"
When
I go to my account "Usage" page
Then
the "Environments" progress information should be "1 of 3 environments"
And
I should see in the "Environments" card:
Owned (1)
chi8
And
I should not see in the "Environments" card:
chi7
View usage for Memory
Given
my current user plan is "standard"
And
I create a project with ID "chi9"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "chi9"
And
I create a project with ID "chi10"
And
I install a "WeDeploy Hosting" service with id "hosting2" for the project "chi10"
And
I install a "WeDeploy Data" service with id "data1" for the project "chi10"
When
I go to my account "Usage" page
Then
the "Memory" progress information should be "30% 1.8 GB of 6 GB"
And
the "Memory" progress bar tooltip texts should be:
hosting1 hosting2 data1
10% – 614 MB of 6 GB 10% – 614 MB of 6 GB 10% – 614 MB of 6 GB
View usage for CPU
Given
my current user plan is "basic"
And
I create a project with ID "chi11"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "chi11"
And
I install a "WeDeploy Hosting" service with id "hosting2" for the project "chi11"
When
I go to my account "Usage" page
Then
the "CPU" progress information should be "66% 1.3 of 2 core processors"
And
the "CPU" progress bar tooltip texts should be:
hosting1 hosting2
33% – 0.7 of 2 33% – 0.7 of 2
  • @teardown_data
View usage for Transfer
Given
my current user plan is "basic"
And
I create a project with ID "chi13"
And
I install a "WeDeploy Data" service with id "data1" for the project "chi13"
And
I should see listed in the Builds and Deployment Activities
Deployment succeeded
Deployment started
And
I insert 1000 rows for the Names collection of "data1-chi13"
When
I go to my account "Usage" page
Then
the transfer usage amount should be greater than 2 MB
  • @teardown_tester
View Plan Usage progress bar in account menu

For basic plan, quotas are:
Project: 3
Service Instances: 3
Collaborators: 2

Given
my current user plan is "basic"
When
I create a project with ID "chi12"
Then
I should see the account menu Plan Usage progress bar at "33" percent
When
I invite "[email protected]" to become a collaborator for project "chi12"
Then
I should see the account menu Plan Usage progress bar at "50" percent
When
I create a project with ID "chi14"
Then
I should see the account menu Plan Usage progress bar at "66" percent
When
I install these services for "chi14"
type id
Hosting hosting1
Hosting hosting2
Hosting hosting3
Then
I should see the account menu Plan Usage progress bar at "100" percent
When
I delete the project "chi12"
Then
I should see the account menu Plan Usage progress bar at "100" percent
When
I delete these services for "chi14"
hosting1
hosting2
Then
I should see the account menu Plan Usage progress bar at "33" percent

Last published over 1 year ago by Christie Yoo.