-
Notifications
You must be signed in to change notification settings - Fork 18
/
example-specification.ron
73 lines (73 loc) · 3.15 KB
/
example-specification.ron
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
(
tests: [
(
// Id for the individual test.
id: "1",
// Number of verifier participants for the test.
verifiers: 1,
// (Optional) Number of replacement contributors for the
// test. Default: 0
replacement_contributors: 0,
// What environment to use for the setup. Possible
// options: `development`, `inner`, `outer`, `universal`.
environment: development,
// (Optional) Time limit for the test (in seconds).
// Exceeding this will cause the test to fail. If set to
// `None` then there is no time limit. Default: `None`
timout: Some(20),
// (Optional) Whether to skip running this test. Default:
// `false`.
skip: false,
// Configure the tests performed for each round of the
// ceremony.
rounds: [
// Round 1
(
// Number of contributor participants for this
// round of the ceremony.
contributors: 2,
// (Optional) Configure expected contributor
// drops. A contributor from contributors is
// assigned automatically to each specified
// config. The number of configs should not exceed
// the number of contributors. Default: [].
contributor_drops: [
(
// A contributor is dropped (process
// killed) after having made this number
// of contributions.
after_contributions: 10,
),
],
// (Optional) Configure when contributors will
// start. A contributor from contributors is
// assigned automatically to each specified
// config. The number of configs should not exceed
// the number of contributors. Any contributors
// not configured here will be started with the
// start of the round as per RoundStart. Default:
// [].
contributor_starts: [
// Contributor 1.
// Start the contributor while the current round is waiting for
// participants to join.
RoundStart,
// Contributor 2.
// Start a ceremony participant after
// specified contributions have been made in
// the current round.
AfterRoundContributions((
after_round_contributions: 5
))
]
),
// Round 2
(
// Number of contributor participants for this
// round of the ceremony.
contributors: 1,
),
],
),
],
)