Skip to content

Commit

Permalink
feat(jobs): added api to get logs of runners
Browse files Browse the repository at this point in the history
  • Loading branch information
users-search-assignment committed Mar 14, 2019
1 parent 8c32219 commit c0ef64a
Show file tree
Hide file tree
Showing 45 changed files with 716 additions and 287 deletions.
32 changes: 0 additions & 32 deletions deployment/helm/predator/templates/_helpers.tpl

This file was deleted.

8 changes: 0 additions & 8 deletions deployment/helm/predator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,8 @@ spec:
value: {{ .Values.KUBERNETES_URL }}
- name: KUBERNETES_NAMESPACE
value: {{ .Release.Namespace }}
- name: GRAFANA_URL
value: {{ .Values.GRAFANA_URL }}
- name: METRICS_PLUGIN_NAME
value: {{ .Values.METRICS_PLUGIN_NAME }}
- name: METRICS_EXPORT_CONFIG
value: {{ .Values.METRICS_EXPORT_CONFIG | toJson | quote }}
- name: INTERNAL_ADDRESS
value: http://{{ include "predator.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}/{{ .Values.apiVersion }}
- name: EXTERNAL_ADDRESS
value: {{ .Values.EXTERNAL_ADDRESS }}
ports:
- name: http
containerPort: 80
Expand Down
7 changes: 1 addition & 6 deletions deployment/helm/predator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,4 @@ DATABASE_USERNAME:

DOCKER_NAME: zooz/predator-runner:latest

INTERNAL_ADDRESS:
EXTERNAL_ADDRESS:

METRICS_PLUGIN_NAME:
METRICS_EXPORT_CONFIG:
GRAFANA_URL:
INTERNAL_ADDRESS:
8 changes: 4 additions & 4 deletions docs/swagger-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ components:
type: string
enum:
- dsl
- custom
- basic
dsl:
description: A test that is made of scenarios base on domain specific language
allOf:
Expand Down Expand Up @@ -1001,7 +1001,7 @@ components:
type: object
additionalProperties:
type: string
custom:
basic:
description: A test that is made of artillery json
allOf:
- $ref: '#/components/schemas/test'
Expand Down Expand Up @@ -1057,9 +1057,9 @@ components:
type: string
enum:
- dsl
- custom
- basic
description: >-
the type of the test, custom - an artillery json created by the
the type of the test, basic - an artillery json created by the
client, dsl - a test with saved request definitions api.
raw_data:
type: array
Expand Down
48 changes: 36 additions & 12 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,37 @@ paths:
description: Internal server error
schema:
$ref: "#/definitions/error_response"
/v1/jobs/{job_id}/runs/{run_id}/logs:
get:
tags:
- jobs
description: get logs of specific job.
parameters:
- in: path
description: The ID of the job.
name: job_id
required: true
type: string
- in: path
description: The id of a specific run in metronome which is also the report id.
name: run_id
required: true
type: string
responses:
200:
description: Success
404:
description: Bad request
schema:
$ref: "#/definitions/error_response"
501:
description: Not Implemented
schema:
$ref: "#/definitions/error_response"
500:
description: Internal server error
schema:
$ref: "#/definitions/error_response"
/v1/tests/{test_id}/reports:
post:
tags:
Expand Down Expand Up @@ -749,7 +780,7 @@ definitions:
description: A description of the test.
type:
type: string
enum: ['dsl', 'custom']
enum: ['dsl', 'basic']
dsl:
description: A test that is made of scenarios base on domain specific language
allOf:
Expand Down Expand Up @@ -783,7 +814,7 @@ definitions:
type: object
additionalProperties:
type: string
custom:
basic:
description: A test that is made of artillery json
allOf:
- $ref: '#/definitions/test'
Expand Down Expand Up @@ -834,8 +865,8 @@ definitions:
description: The description of the test
type:
type: string
enum: [dsl, custom]
description: the type of the test, custom - an artillery json created by the client, dsl - a test with saved request definitions api.
enum: [dsl, basic]
description: the type of the test, basic - an artillery json created by the client, dsl - a test with saved request definitions api.
raw_data:
type: array
items:
Expand Down Expand Up @@ -884,10 +915,6 @@ definitions:
- arrival_rate
- duration
properties:
variables:
type: object
description: "Variables that the artillery uses and can be defined by the user. Supported variables: 1) appId - if specifed merchantId must be a variable too."
example: {appId: 'App-name', merchantId: 'cd44fc7a-7719-4383-9981-427ff1210553'}
test_id:
type: string
pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'
Expand Down Expand Up @@ -994,9 +1021,6 @@ definitions:
grafana_url:
type: string
description: The url for grafana.
external_address:
type: string
description: Exposed address of the deployed service.
internal_address:
type: string
description: The local ip address of your machine.
Expand Down Expand Up @@ -1180,7 +1204,7 @@ definitions:
description: The id of the job in the scheduler
test_type:
type: string
description: The type of the test, can be paymentsos or custom
description: The type of the test, can be paymentsos or basic
status:
type: string
description: The status of the running test
Expand Down
Loading

0 comments on commit c0ef64a

Please sign in to comment.