summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_mr_widget/components/terraform/mock_data.js
blob: 8e46af5dfd617c8c6ec89cb92ba8249149bef47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export const invalidPlanWithName = {
  job_name: 'Invalid Plan',
  job_path: '/path/to/ci/logs/3',
  tf_report_error: 'api_error',
};

export const invalidPlanWithoutName = {
  tf_report_error: 'invalid_json_format',
};

export const validPlanWithName = {
  create: 10,
  update: 20,
  delete: 30,
  job_name: 'Valid Plan',
  job_path: '/path/to/ci/logs/1',
};

export const validPlanWithoutName = {
  create: 10,
  update: 20,
  delete: 30,
  job_path: '/path/to/ci/logs/2',
};

export const plans = {
  invalid_plan_one: invalidPlanWithName,
  invalid_plan_two: invalidPlanWithoutName,
  valid_plan_one: validPlanWithName,
  valid_plan_two: validPlanWithoutName,
};