forked from elastic/kibana-capacity-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-data.js
101 lines (94 loc) · 2.59 KB
/
test-data.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Test server on cloud
export const BASE_PATH = 'https://performance-test.kb.us-central1.gcp.cloud.es.io:9243/';
// Spencers off cloud instance
//export const BASE_PATH = 'http://34.136.67.157';
const BUNDLE_ID = '50609';
const DEFAULT_HEADERS = {
// "accept-encoding": "identity",
"content-type": "application/json",
"Connection": "keep-alive",
"kbn-version": "8.1.1",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin"
}
const USERNAME = 'benchmark';
const PASSWORD = 'markymark';
export const TEST_FILES = {
'cdn-file': {
url: 'https://tools-7.kxcdn.com/js/perf-4ca7c62e7b.js',
method: 'GET',
},
'other-server-js-file': {
// Mock express server
url: 'https://node-perf-baseline.kibana.dev/assets/bundle.js',
method: 'GET',
},
'json': {
url:'/translations/en.json',
method: 'GET',
},
'css-theme': {
url: '/ui/legacy_light_theme.css',
method: 'GET',
},
'small-chunk': {
url: `/${BUNDLE_ID}//bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.chunk.2.js`,
method: 'GET',
},
'data-plugin': {
url: `/${BUNDLE_ID}/bundles/plugin/data/kibana/data.plugin.js`,
auth: false,
method: 'GET',
params: {},
},
'utils-plugin': {
url: `/${BUNDLE_ID}/bundles/plugin/kibanaUtils/kibana/kibanaUtils.plugin.js`,
auth: false,
method: 'GET',
params: {},
},
'shared-dll':{
url: `/${BUNDLE_ID}/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js`,
method: 'GET',
},
'login-state': {
url: '/internal/security/login_state',
auth: false,
method: 'GET',
params: {},
},
login: {
url: '/internal/security/login',
auth: false,
method: 'POST',
headers: DEFAULT_HEADERS,
params: {
providerType: "basic",
providerName: "basic",
currentURL: `${BASE_PATH}/login`,
params: {
username: USERNAME,
password: PASSWORD,
},
},
},
'simple-search': {
auth: true,
method: 'POST',
url: '/api/console/proxy?path=kibana_sample_data_flights%2F_search&method=GET',
headers: {
...DEFAULT_HEADERS,
'kbn-xsrf': 'kibana',
},
params: {
"aggs": {
"0": {
"cardinality": {
"field": "Carrier"
}
}
},
"size": 0
}
}
}