Skip to content

Commit d2361c4

Browse files
committed
Fix tests
1 parent ba44d3d commit d2361c4

20 files changed

Lines changed: 2109 additions & 13 deletions

File tree

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ unitTests iom knownMigrations =
3030
"config"
3131
[ testCase "conway genesis and hash" Config.conwayGenesis
3232
, testCase "missing conway genesis file" Config.missingConwayGenesis
33-
, testCase "no conway genesis file" Config.noConwayGenesis
3433
, testCase "no conway genesis hash" Config.noConwayGenesisHash
3534
, testCase "mismatched conway genesis hash" Config.wrongConwayGenesisHash
3635
, testCase "default insert config" Config.defaultInsertConfig

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/Config/Parse.hs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module Test.Cardano.Db.Mock.Unit.Conway.Config.Parse (
44
conwayGenesis,
55
missingConwayGenesis,
6-
noConwayGenesis,
76
noConwayGenesisHash,
87
wrongConwayGenesisHash,
98
insertConfig,
@@ -40,16 +39,6 @@ missingConwayGenesis = do
4039
mutableDir = mkMutableDir "conwayConfigMissingGenesis"
4140
cmdLineArgs = initCommandLineArgs
4241

43-
noConwayGenesis :: Assertion
44-
noConwayGenesis = do
45-
cfg <- mkSyncNodeConfig configDir initCommandLineArgs
46-
let cfg' = cfg {dncConwayGenesisFile = Nothing}
47-
withConfig configDir mutableDir cmdLineArgs cfg' (\_ -> pure ())
48-
where
49-
configDir = "config-conway"
50-
mutableDir = mkMutableDir "conwayConfigNoGenesis"
51-
cmdLineArgs = initCommandLineArgs
52-
5342
noConwayGenesisHash :: Assertion
5443
noConwayGenesisHash = do
5544
cfg <- mkSyncNodeConfig configDir initCommandLineArgs
Lines changed: 296 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,296 @@
1+
{
2+
"poolVotingThresholds": {
3+
"committeeNormal": 0.6,
4+
"committeeNoConfidence": 0.51,
5+
"hardForkInitiation": 0.51,
6+
"motionNoConfidence": 0.6,
7+
"ppSecurityGroup": 0.6
8+
},
9+
"dRepVotingThresholds": {
10+
"motionNoConfidence": 0.67,
11+
"committeeNormal": 0.67,
12+
"committeeNoConfidence": 0.6,
13+
"updateToConstitution": 0.75,
14+
"hardForkInitiation": 0.6,
15+
"ppNetworkGroup": 0.67,
16+
"ppEconomicGroup": 0.67,
17+
"ppTechnicalGroup": 0.67,
18+
"ppGovGroup": 0.75,
19+
"treasuryWithdrawal": 0.67
20+
},
21+
"committeeMinSize": 3,
22+
"committeeMaxTermLength": 73,
23+
"govActionLifetime": 8,
24+
"govActionDeposit": 50000000000,
25+
"dRepDeposit": 500000000,
26+
"dRepActivity": 20,
27+
"minFeeRefScriptCostPerByte": 44,
28+
"plutusV3CostModel": [
29+
205665,
30+
812,
31+
1,
32+
1,
33+
1000,
34+
571,
35+
0,
36+
1,
37+
1000,
38+
24177,
39+
4,
40+
1,
41+
1000,
42+
32,
43+
117366,
44+
10475,
45+
4,
46+
23000,
47+
100,
48+
23000,
49+
100,
50+
23000,
51+
100,
52+
23000,
53+
100,
54+
23000,
55+
100,
56+
23000,
57+
100,
58+
100,
59+
100,
60+
23000,
61+
100,
62+
19537,
63+
32,
64+
175354,
65+
32,
66+
46417,
67+
4,
68+
221973,
69+
511,
70+
0,
71+
1,
72+
89141,
73+
32,
74+
497525,
75+
14068,
76+
4,
77+
2,
78+
196500,
79+
453240,
80+
220,
81+
0,
82+
1,
83+
1,
84+
1000,
85+
28662,
86+
4,
87+
2,
88+
245000,
89+
216773,
90+
62,
91+
1,
92+
1060367,
93+
12586,
94+
1,
95+
208512,
96+
421,
97+
1,
98+
187000,
99+
1000,
100+
52998,
101+
1,
102+
80436,
103+
32,
104+
43249,
105+
32,
106+
1000,
107+
32,
108+
80556,
109+
1,
110+
57667,
111+
4,
112+
1000,
113+
10,
114+
197145,
115+
156,
116+
1,
117+
197145,
118+
156,
119+
1,
120+
204924,
121+
473,
122+
1,
123+
208896,
124+
511,
125+
1,
126+
52467,
127+
32,
128+
64832,
129+
32,
130+
65493,
131+
32,
132+
22558,
133+
32,
134+
16563,
135+
32,
136+
76511,
137+
32,
138+
196500,
139+
453240,
140+
220,
141+
0,
142+
1,
143+
1,
144+
69522,
145+
11687,
146+
0,
147+
1,
148+
60091,
149+
32,
150+
196500,
151+
453240,
152+
220,
153+
0,
154+
1,
155+
1,
156+
196500,
157+
453240,
158+
220,
159+
0,
160+
1,
161+
1,
162+
1159724,
163+
392670,
164+
0,
165+
2,
166+
806990,
167+
30482,
168+
4,
169+
1927926,
170+
82523,
171+
4,
172+
265318,
173+
0,
174+
4,
175+
0,
176+
85931,
177+
32,
178+
205665,
179+
812,
180+
1,
181+
1,
182+
41182,
183+
32,
184+
212342,
185+
32,
186+
31220,
187+
32,
188+
32696,
189+
32,
190+
43357,
191+
32,
192+
32247,
193+
32,
194+
38314,
195+
32,
196+
35190005,
197+
10,
198+
57996947,
199+
18975,
200+
10,
201+
39121781,
202+
32260,
203+
10,
204+
23000,
205+
100,
206+
23000,
207+
100,
208+
832808,
209+
18,
210+
3209094,
211+
6,
212+
331451,
213+
1,
214+
65990684,
215+
23097,
216+
18,
217+
114242,
218+
18,
219+
94393407,
220+
87060,
221+
18,
222+
16420089,
223+
18,
224+
2145798,
225+
36,
226+
3795345,
227+
12,
228+
889023,
229+
1,
230+
204237282,
231+
23271,
232+
36,
233+
129165,
234+
36,
235+
189977790,
236+
85902,
237+
36,
238+
33012864,
239+
36,
240+
388443360,
241+
1,
242+
401885761,
243+
72,
244+
2331379,
245+
72,
246+
1927926,
247+
82523,
248+
4,
249+
117366,
250+
10475,
251+
4,
252+
1292075,
253+
24469,
254+
74,
255+
0,
256+
1,
257+
936157,
258+
49601,
259+
237,
260+
0,
261+
1,
262+
2174038,
263+
72,
264+
2261318,
265+
64571,
266+
4,
267+
207616,
268+
8310,
269+
4,
270+
1293828,
271+
28716,
272+
63,
273+
0,
274+
1,
275+
1006041,
276+
43623,
277+
251,
278+
0,
279+
1
280+
],
281+
"constitution": {
282+
"anchor": {
283+
"url": "https://raw.githubusercontent.com/carloslodelar/proposals/main/constitution.txt",
284+
"dataHash": "f89cc2469ce31c3dfda2f3e0b56c5c8b4ee4f0e5f66c30a3f12a95298b01179e"
285+
}
286+
},
287+
"committee": {
288+
"members": {
289+
"scriptHash-8fc13431159fdda66347a38c55105d50d77d67abc1c368b876d52ad1": 336,
290+
"scriptHash-921e1ccb4812c4280510c9ccab81c561f3d413e7d744d48d61215d1f": 400,
291+
"scriptHash-d5d09d9380cf9dcde1f3c6cd88b08ca9e00a3d550022ca7ee4026342": 400,
292+
"scriptHash-2c698e41831684b16477fb50082b0c0e396d436504e39037d5366582": 400
293+
},
294+
"threshold": 0.66
295+
}
296+
}

cardano-chain-gen/test/testfiles/config-alonzo-insert-options/test-config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
44
"ByronGenesisFile": "genesis.byron.json",
55
"ByronGenesisHash": "865a9da19944fc00cefe5a0cdcb6dc9d3964a74681d9488ab79967f13a6400b3",
6+
"ConwayGenesisFile": "genesis.conway.json",
7+
"ConwayGenesisHash": "f87ddecbbe549699b066eef38d36aee555f09be3fd766b40e0117a77435fb693",
68
"LastKnownBlockVersion-Alt": 0,
79
"LastKnownBlockVersion-Major": 6,
810
"LastKnownBlockVersion-Minor": 1,

0 commit comments

Comments
 (0)