-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.example.js
104 lines (94 loc) · 3.34 KB
/
config.example.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
102
103
104
// Config.js examples
// Check Config.js reference for all documentation on config.js files
// https://balena-os.github.io/leviathan/pages/Getting-Started/config-reference.html
// Use the following config to run the e2e tests with some customizations
module.exports = [
{
// Device under test (DUT) name goes here
deviceType: "raspberrypi3",
// Suite name goes here
suite: `${__dirname}/../suites/e2e`,
config: {
// Network configuration for the DUT
networkWired: false,
networkWireless: true,
// For tests that need a specific balenaOS version to be downloaded. Default: latest
downloadVersion: 'latest',
// Needed the provision the DUT to a balenaCloud fleet
balenaApiKey: process.env.BALENACLOUD_API_KEY,
balenaApiUrl: 'balena-cloud.com',
organization: 'BALENACLOUD_ORG_GOES_HERE',
},
// Path to the gzipped image to be tested goes here. This image is used to provision the DUT
image: `${__dirname}/balena.img.gz`,
// Worker configuration: Pointing to a Fleet
// https://balena-os.github.io/leviathan/pages/Getting-Started/config-reference.html#different-workers-configurations-available
workers: {
balenaApplication: 'testbot-personal',
apiKey: process.env.BALENACLOUD_API_KEY
},
debug: {
// Exit the ongoing test suite if a test fails
failFast: false,
// Exit the ongoing test run if a test fails
globalFailFast: false,
// Persist downloadeded artifacts
preserveDownloads: false,
// Mark unstable tests to be skipped
unstable: ["Kill the device under test"],
},
},
//
// {
// deviceType: "raspberrypi3",
// suite: `${__dirname}/../suites/os`,
// config: {
// networkWired: false,
// networkWireless: true,
// balenaApiKey: process.env.BALENACLOUD_API_KEY,
// balenaApiUrl: 'balena-cloud.com',
// organization: 'BALENACLOUD_ORG_GOES_HERE'
// },
// image: `${__dirname}/balena.img.gz`,
// // https://balena-os.github.io/leviathan/pages/Getting-Started/config-reference.html#different-workers-configurations-available
// workers: {
// balenaApplication: 'testbot-personal',
// apiKey: process.env.BALENACLOUD_API_KEY
// }
// },
//
//
// {
// deviceType: "raspberrypi3",
// suite: `${__dirname}/../suites/hup`,
// config: {
// networkWired: false,
// networkWireless: true,
// balenaApiKey: process.env.BALENACLOUD_API_KEY,
// balenaApiUrl: 'balena-cloud.com',
// organization: 'BALENACLOUD_ORG_GOES_HERE'
// },
// image: `${__dirname}/balena.img.gz`,
// // Worker configuration: Public URL's
// // https://balena-os.github.io/leviathan/pages/Getting-Started/config-reference.html#different-workers-configurations-available
// workers: ['https://123213bda32048sgd5dfw223423723324.balena-devices.com/']
// },
//
//
// {
// deviceType: "genericx86-64-ext",
// suite: `${__dirname}/../suites/os`,
// config: {
// networkWired: false,
// networkWireless: true,
// balenaApiKey: process.env.BALENACLOUD_API_KEY,
// balenaApiUrl: 'balena-cloud.com',
// organization: 'BALENACLOUD_ORG_GOES_HERE'
// },
// // balenaOS image that is uploaded to the testbot
// image: `${__dirname}/balena.img.gz`,
// // Worker configuration to run the QEMU worker
// // https://balena-os.github.io/leviathan/pages/Getting-Started/config-reference.html#different-workers-configurations-available
// workers: ['http://worker']
// }
];