Logo: Relish

  1. Sign in

Project: Console

Service Logs Download

  • @dxpcloud
  • @paas
  • @teardown_projects

On the logs pages, user can click the Download Logs button to download the
logs as a .log file. The file content matches the currently displayed logs,
with the selected filters applied.

These tests will verify the correct api paths for the downloads, for
various combinations of filters and conditions.

Background
Given
I sign in to WeDeploy as a test user
Scenarios
Download project logs
Given
I create a project with ID "sigma4"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "sigma4"
When
I go to the "Logs" page for "sigma4" project
And
I click the "Download Logs" link
Then
the logs should download from api path:
/projects/sigma4/logs?level=7&limit=10000&start=0&download=true
Download project logs with service filter
Given
I create a project with ID "sigma5"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "sigma5"
And
I install a "WeDeploy Hosting" service with id "hosting2" for the project "sigma5"
When
I go to the "Logs" page for "sigma5" project
And
I select "hosting2" from the "service" dropdown
And
I click the "Download Logs" link
Then
the logs should download from api path:
/projects/sigma5/services/hosting2/logs?level=7&limit=10000&start=0&download=true
Download project logs with service and instance filters
Given
my current user plan is "standard"
And
I create a project with ID "sigma6"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "sigma6"
And
I install a "WeDeploy Hosting" service with id "hosting2" for the project "sigma6"
And
service "hosting2" for project "sigma6" has scale: 3
When
I go to the "Logs" page for "sigma6" project
And
I select "hosting2" from the "service" dropdown
And
I select the 2nd instance from the Instance dropdown
And
I click the "Download Logs" link
Then
the logs should download from api path:
/projects/sigma6/services/hosting2/logs?level=7&limit=10000&start=0&containerId={instanceId}&download=true
Download project logs with service and build filter
Given
I create a project with ID "sigma8"
And
I install a "WeDeploy Hosting" service with id "hosting1" for the project "sigma8"
When
I go to the "Logs" page for "sigma8" project
And
I select "hosting1" from the "service" dropdown
And
I select "Build Logs" from the "type" dropdown
And
I click the "Download Logs" link
Then
the logs should download from api path:
/projects/sigma8/services/hosting1/logs?level=7&limit=10000&start=0&build=true&download=true

Last published over 1 year ago by Christie Yoo.