-
Notifications
You must be signed in to change notification settings - Fork 6
/
https.js
65 lines (61 loc) · 3.02 KB
/
https.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
import http from 'k6/http';
const CERT = `-----BEGIN CERTIFICATE-----
MIIDETCCAfkCFFE666CJ/qbBKfmo311gSnIu1BmqMA0GCSqGSIb3DQEBCwUAMEUx
CzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRl
cm5ldCBXaWRnaXRzIFB0eSBMdGQwHhcNMjIwOTEwMTMwNTQ1WhcNMjMwOTEwMTMw
NTQ1WjBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UE
CgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAvKNfMmqAEP9fWyKyWO2d2umHWu7m8cVmKdQBDP8lG2EqwNcQ
U+1fnT8RhyfYCQMDrqhcG3L0qZjMMaCCG3RwS/uczGN80on26bFstQsLwJ/kH8Rg
7zdCUk7LWV5ecayoSEFPVeLv0cAkNZn3tuh6hul41Kasz+G/wrtVkJT3J8RhqE/R
A9Devmgy/QIenCL0HD5xvUx1xr8nnO/mOb+qu5jZ73gKXtXQJSB98cyQT1P+fCu7
ACVSsbw+eZ+wpV+vE70FR5fwMoOPmA6o53Pn3wVYInXQnCaEeyC4CxJ/NPhuJS0o
7zlfVegiwjSTS8rOEOxQL0M9EiziaI/8ev9mFQIDAQABMA0GCSqGSIb3DQEBCwUA
A4IBAQA/73ja8Ld6AjYBpnbielN0fo9zL7e7UJW3TvinV0BuLrrUXXy5Y/sy9RbV
GtuxaZCyRorrNoJHHYXhgG7yZFNk1YgWD26tR4BOFpfH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G5LUygniGn0ONuHMq8tXa7Fl3duN06xSp44ITAvuW+GhvFVb3Dyy0zXFj16aMhzl
mOazoxVm12i4fh7GF9gGm62tHJ+YmkCpFQyv/LJqXs2i5xQocf/xC3oeBSdzx1x4
q/n5ZmR3XPGK29HWicHSAUroXQKBgQDbJHIJo1OtnLQlA7Pb4KfNPG8VVL3oqLRE
ZGkX89NB8CohJh3nH064uo/X3Q1YtmkPTqgK6S5gFx+0FIY767fAXEd1e/U3p6M0
HxjcFSMZ9F9sYQRXl+4nyyPn6len/yuGGyZ6aJ6ZDc/0HbrrJvlK0TVNqVGnnJk9
ohryKZo5GQKBgELV5iCa/CMYszjqk+rKDyWUxZybFhTKln+CF2FDW4Ge4WlJqvlC
snRXxEKeAXgRa/45dPtzzdpGmpW/3z3PuyD+tI4FhVB3iBPixXVzoCBiDxG0rynZ
JYj25pIWgN4IofeGY+8S4Q3b2FRoQeajmmSHJq+BNA0+kI02KN/t3m9NAoGARNJv
VgOLNgzurmk5RSaKzHPcVxCkC7tf0dLPBoy2nhC0ynBUF8/HQ1Cj+CEeHew7lmkX
cUXGILtiY4XGmm7u6GSStJzXaEEniijx/7xLp80NYtYdLP0z+B9eCWmZWdNTcex4
6xyMInkqA/qKR2uYAx0s5lT0pfUSUz7jw4W5P5ECgYAKjEUD03ASU1IEtRQGBVZ/
8OdHiGiegZD+EvHLxS6l3Nc0hlsBvHPs1IqdY0JpVo3RQrI4Ffp602qt1buOsA2w
Kvt91V+DbtSgSfE7KW1JZ1xQieZLDT55ler1cGDKjFFCb4fN9VuzSeyoJiDgTUJ4
Wcb7PSTNwQvgC9M5GFqn2g==
-----END PRIVATE KEY-----`;
export const options = {
tlsAuth: [
{
domains: ['localhost:50050'],
cert: CERT,
key: KEY,
},
],
};
export default function () {
http.get('https://localhost:50050/status');
}