Logo: Relish

  1. Sign in

Project: Console

Alerts

  • @dxpcloud
  • @paas
  • @teardown_projects
  • @teardown_alerts
Background
Given
I sign in to WeDeploy as a test user
Scenarios
View user level alerts
Given
I create the following alerts using api:
projectId type
_GLOBAL_ USER_QUOTA_TRANSFER_ALL
_GLOBAL_ USER_QUOTA_STORAGE_ALL
When
I go to the alerts page
Then
I should see the following alerts in "My Plan" card
100% of your available Storage has been used.
100% of your available Transfer has been used.
View project level alerts as owner
Given
I create a project with ID "tau1"
And
I create the following alerts using api:
projectId type
tau1 PROJECT_QUOTA_TRANSFER_ALL
tau1 PROJECT_QUOTA_STORAGE_ALL
When
I go to the alerts page
Then
I should see the following alerts in "tau1" card
The project reached the available Storage limit of your plan.
The project reached the available Transfer limit of your plan.
  • @teardown_users
View project level alerts as collaborator
Given
I create a project with ID "tau2"
And
I have a collaborator "[email protected]" for "tau2"
And
I create the following alerts using api:
projectId type
tau2 PROJECT_QUOTA_TRANSFER_ALL
tau2 PROJECT_QUOTA_STORAGE_ALL
When
I sign out and sign in as "[email protected]"
And
I go to the alerts page
Then
I should see the following alerts in "tau2" card
The project reached the available Storage limit of the owner's plan.
The project reached the available Transfer limit of the owner's plan.
View service level alerts
Given
I create a project with ID "tau3"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "tau3"
And
I create the following alerts using api:
projectId serviceId type usage
tau3 hosting1 SERVICE_METRIC_MEMORY 90
tau3 hosting1 SERVICE_METRIC_STATUS_UNHEALTHY
When
I go to the alerts page
Then
I should see the following alerts in "tau3" card
The hosting1 service exceeded 90% of its allocated Memory
The hosting1 service was unhealthy
Filter alerts by My plan
Given
I create a project with ID "tau4"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "tau4"
And
I create the following alerts using api:
projectId serviceId type usage
_GLOBAL_ USER_QUOTA_TRANSFER_ALL
tau4 PROJECT_QUOTA_STORAGE_ALL
tau4 hosting1 SERVICE_METRIC_MEMORY 95
When
I go to the alerts page
And
I filter alerts by "My plan"
Then
I should see the following alert in "My Plan" card
100% of your available Transfer has been used.
And
I should not see the "tau4" card
Filter alerts by All projects
Given
I create a project with ID "tau5"
And
I create a project with ID "tau6"
And
I create the following alerts using api:
projectId type
_GLOBAL_ USER_QUOTA_TRANSFER_ALL
tau5 PROJECT_QUOTA_TRANSFER_ALL
tau6 PROJECT_QUOTA_STORAGE_ALL
When
I go to the alerts page
And
I filter alerts by "All projects"
Then
I should see the following alert in "tau5" card
The project reached the available Transfer limit of your plan.
And
I should see the following alert in "tau6" card
The project reached the available Storage limit of your plan.
And
I should not see the "My Plan" card
Filter alerts by a specific project
Given
I create a project with ID "tau7"
And
I create a project with ID "tau8"
And
I create the following alerts using api:
projectId type
tau7 PROJECT_QUOTA_TRANSFER_ALL
tau8 PROJECT_QUOTA_STORAGE_ALL
When
I go to the alerts page
And
I filter alerts by "tau7"
Then
I should see the following alert in "tau7" card
The project reached the available Transfer limit of your plan.
And
I should not see the "tau8" card
Filter alerts by Unread
Given
I create a project with ID "tau9"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "tau9"
And
I create the following alerts using api:
projectId serviceId type usage
tau9 PROJECT_QUOTA_STORAGE_ALL
tau9 hosting1 SERVICE_METRIC_MEMORY 90
And
I go to the alerts page
And
I should see the text "Unread (2)"
When
I mark as read this message in the "tau9" card:
The project reached the available Storage limit of your plan.
Then
I should see the text "Unread (1)"
And
I should see the following alert in "tau9" card
The hosting1 service exceeded 90% of its allocated Memory
And
I should not see the following alert in "tau9" card
The project reached the available Storage limit of your plan.
And
I filter alerts by "All alerts"
And
I should see the following alert in "tau9" card
The hosting1 service exceeded 90% of its allocated Memory
The project reached the available Storage limit of your plan.
Mark all as read
Given
I create a project with ID "tau10"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "tau10"
And
I create the following alerts using api:
projectId serviceId type usage
_GLOBAL_ USER_QUOTA_TRANSFER_ALL
tau10 PROJECT_QUOTA_STORAGE_ALL
tau10 hosting1 SERVICE_METRIC_MEMORY 90
And
I go to the alerts page
And
I should see the text "Unread (3)"
And
I should see the following alert in "My Plan" card
100% of your available Transfer has been used.
And
I should see the following alerts in "tau10" card
The project reached the available Storage limit of your plan.
The hosting1 service exceeded 90% of its allocated Memory
When
I click the "Mark all as read" button
Then
I should see the text "No Alerts Yet"
And
I should not see the text "Unread (0)"
And
the "Mark all as read" button should be disabled
Alert badge displays when there are unread alerts
Given
I create a project with ID "tau11"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "tau11"
And
I create the following alerts using api:
projectId serviceId type
tau11 PROJECT_QUOTA_STORAGE_ALL
tau11 hosting1 SERVICE_METRIC_MEMORY
When
I refresh the page
Then
I should see the alert badge
And
I go to the alerts page
And
I click the "Mark all as read" button
And
I should not see the alert badge
View alert badge number
Given
I create a project with ID "tau16"
And
I create the following alerts using api:
projectId type
_GLOBAL_ USER_QUOTA_TRANSFER_ALL
_GLOBAL_ USER_QUOTA_STORAGE_ALL
tau16 PROJECT_QUOTA_TRANSFER_ALL
tau16 PROJECT_QUOTA_STORAGE_ALL
When
I go to the alerts page
Then
the alert badge should have the number 4
And
I filter alerts by "tau16"
And
the alert badge should have the number 4
And
I mark as read this message in the "tau16" card:
The project reached the available Storage limit of your plan.
And
the alert badge should have the number 3
And
I filter alerts by "My plan and all projects"
And
the alert badge should have the number 3
View service unhealthy alert

This repo contains a project with a docker image that will result in
Unhealthy service when project is deployed.

Given
I deploy services to project "tau12" from this repo:
https://github.com/wedeploy-qa/alerts-tests/tree/unhealthy-service
And
I have the preference for "Service Status" "Email" set to "true"
And
I go to the "Services" page for "tau12" project
And
I should see in the service list
Installed Status Instances
dockerstress Unhealthy 1
When
I go to the alerts page
Then
I should see the following alert in "tau12" card
The dockerstress service was unhealthy
And
I should get an email with subject
The dockerstress service was unhealthy
View service CPU usage alert

This repo contains a project with a docker image and cpu config that
will generate a CPU usage alert.

Given
I deploy services to project "tau13" from this repo:
https://github.com/wedeploy-qa/alerts-tests/tree/service-metric-cpu
And
I have the preference for "CPU" "Email" set to "true"
And
I go to the "Services" page for "tau13" project
And
I should see in the service list
Installed Status Instances
dockerstress Healthy 1
When
I go to the alerts page
Then
I should see the following alert in "tau13" card
The dockerstress service exceeded 20% of its allocated CPU
And
I should get an email with subject
The dockerstress service exceeded 20% of its allocated CPU
  • @skip
View transfer quota alerts

'Test' plan has transfer quota of 50 MB. Executing the command below in the
service container will raise the transfer usage above the quota and
trigger the alert.

Given
my current user plan is "test"
And
I have the preference for "Transfer" "Email" set to "true"
And
I deploy services to project "tau14" from this repo:
https://github.com/wedeploy-examples/nodejs-example
And
I go to the "Services" page for "tau14" project
And
I should see in the service list
Installed Status Instances
nodejs Healthy 1
When
I click "nodejs" in the Services list
And
I click the "Shell" tab
And
I enter "ping -f -l 1000 -s 500 google.com" at the shell prompt
And
I go to the alerts page
Then
I should see the following alert in "My Plan" card
100% of your available Transfer has been used.
And
I should see the following alert in "tau14" card
The project reached the available Transfer limit of your plan.
And
I should get an email with subject
100% of your available Transfer has been used
  • @skip
View auto scale alerts
Given
my current user plan is "team"
And
I have the preference for "Autoscale" "Email" set to "true"
And
I create a project with ID "tau24"
And
I install a "WeDeploy Data" service with id "data1" for the project "tau24"
And
I enable auto scaling for "data1-tau24"
When
I go to the alerts page
And
I should see the following alert in "tau24" card
The data1 service exceeded 20% of its allocated Memory
And
I visit "/projects/tau24/services/data1/scale"
And
I should see in the Auto Scaling section
Instances in Use 20% 2 of 10 instances
And
I go to the alerts page
Then
I should see the following alert in "tau24" card
The data1 service autoscaled from 1 to 2 instances
And
I should get an email with subject
data1 service scaled from 1 to 2 instances
  • @teardown_tester
View status of alerts

This project will generate an alert that will resolve after about 1 minute.

Given
my current user plan is "test"
And
I deploy services to project "tau15" from this repo:
https://github.com/wedeploy-qa/alerts-tests/tree/ongoing-to-resolved
And
I go to the "Services" page for "tau15" project
And
I should see in the service list
Installed Status Instances
dockerstress Healthy 1
When
I go to the alerts page
Then
I should see the following alert in "tau15" card with status "Ongoing"
The dockerstress service exceeded 20% of its allocated CPU
And
I should see the following alert in "tau15" card with status "Resolved"
The dockerstress service exceeded 20% of its allocated CPU
And
I should not see the following alert in "tau15" card with status "Ongoing"
The dockerstress service exceeded 20% of its allocated CPU

Last published about 1 year ago by Christie Yoo.