Skip to content

Commit

Permalink
fix(reports): add tag param to reports (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
enudler committed Dec 1, 2020
1 parent f54afe2 commit 9a810b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/devguide/docs/swagger-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2563,6 +2563,9 @@ components:
notes:
type: string
description: notes about the test
tag:
description: tag of the machine type/region that the job will run on (currently supported in aws fargate)
example: eu-west-1
config_body:
additionalProperties: false
properties:
Expand Down Expand Up @@ -2843,4 +2846,4 @@ components:
$ref: '#/components/schemas/webhook_format_types'
url:
type: string
description: Webhook url to post events
description: Webhook url to post events
6 changes: 5 additions & 1 deletion docs/openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2575,6 +2575,7 @@ components:
- start_time
- end_time
- duration_seconds
- tag
properties:
test_id:
type: string
Expand Down Expand Up @@ -2624,6 +2625,9 @@ components:
notes:
type: string
description: notes about the test
tag:
description: tag of the machine type/region that the job will run on (currently supported in aws fargate)
example: eu-west-1
config_body:
additionalProperties: false
properties:
Expand Down Expand Up @@ -2904,4 +2908,4 @@ components:
$ref: '#/components/schemas/webhook_format_types'
url:
type: string
description: Webhook url to post events
description: Webhook url to post events
4 changes: 3 additions & 1 deletion src/reports/models/reportsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ module.exports.postReport = async (reportId, test, job, startTime) => {
duration: job.duration,
parallelism: job.parallelism || 1,
max_virtual_users: job.max_virtual_users,
environment: job.environment
environment: job.environment,
tag: job.tag
};

if (job.type === JOB_TYPE_FUNCTIONAL_TEST) {
Expand Down Expand Up @@ -191,6 +192,7 @@ function getReportResponse(summaryRow, config) {
ramp_to: testConfiguration.ramp_to,
parallelism: testConfiguration.parallelism,
max_virtual_users: testConfiguration.max_virtual_users,
tag: testConfiguration.tag,
last_updated_at: summaryRow.last_updated_at,
notes: summaryRow.notes,
environment: testConfiguration.environment,
Expand Down

0 comments on commit 9a810b9

Please sign in to comment.