source: trunk/src/allmydata/test/common_system.py

Last change on this file was 20b4f89, checked in by Itamar Turner-Trauring <itamar@…>, at 2024-01-08T15:08:57Z

Hopefully fix dirty reactor tests.

  • Property mode set to 100644
File size: 47.7 KB
Line 
1"""
2Test infrastructure for integration-y tests that run actual nodes, like those
3in ``allmydata.test.test_system``.
4
5Ported to Python 3.
6"""
7
8from typing import Optional
9import os
10from functools import partial
11
12from twisted.internet import reactor
13from twisted.internet import defer
14from twisted.internet.defer import inlineCallbacks
15from twisted.internet.task import deferLater
16from twisted.application import service
17
18from foolscap.api import flushEventualQueue
19
20from allmydata import client
21from allmydata.introducer.server import create_introducer
22from allmydata.util import fileutil, log, pollmixin
23from allmydata.util.deferredutil import async_to_deferred
24from allmydata.storage import http_client
25from allmydata.storage_client import (
26    NativeStorageServer,
27    HTTPNativeStorageServer,
28)
29
30from twisted.python.filepath import (
31    FilePath,
32)
33
34from .common import (
35    SameProcessStreamEndpointAssigner,
36)
37
38from . import common_util as testutil
39from ..scripts.common import (
40    write_introducer,
41)
42
43# our system test uses the same Tub certificates each time, to avoid the
44# overhead of key generation
45SYSTEM_TEST_CERTS = [
46"""-----BEGIN CERTIFICATE-----
47MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
48bmd5MB4XDTIwMDEwMjAxNDAzM1oXDTIxMDEwMTAxNDAzM1owFzEVMBMGA1UEAwwM
49bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1iNV
50z07PYwZwucl87QlL2TFZvDxD4flZ/p3BZE3DCT5Efn9w2NT4sHXL1e+R/qsDFuNG
51bw1y1TRM0DGK6Wr0XRT2mLQULNgB8y/HrhcSdONsYRyWdj+LimyECKjwh0iSkApv
52Yj/7IOuq6dOoh67YXPdf75OHLShm4+8q8fuwhBL+nuuO4NhZDJKupYHcnuCkcF88
53LN77HKrrgbpyVmeghUkwJMLeJCewvYVlambgWRi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t5OHvOSrQMfAmFKSwLwxBbZBfXEyuune
89yfusXLtCgajpreoVIa0xWdQ=
90-----END PRIVATE KEY-----
91""", # 0
92"""-----BEGIN CERTIFICATE-----
93MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
94bmd5MB4XDTIwMDEwMjAxNDAzM1oXDTIxMDEwMTAxNDAzM1owFzEVMBMGA1UEAwwM
95bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApDzW
964ZBeK9w4xpRaed6lXzeCO0Xmr3f0ynbueSdiZ89FWoAMgK+SiBIOViYV6hfm0Wah
97lemSNzFGx5LvDSg2uwSqEP23DeM9O/SQPgIAiLeeEsYZJcgg2jz92YfFEaahsGdI
986qSP4XI2/5dgKRpPOYDGyw6R5PQR6w22Xq1WD1jBvImk/k09I9jHRn40pYbaJzbg
99U2aIjvOruo2kqe4f6iDqE0piYimAZJUvemu1UoyV5NG590hGkDuWsMD77+d2FxCj
1009Nzb+iuuG3ksnanHPyXi1hQmzp5OmzVWaevCHinNjWgsuSuLGO9H2SLf3wwp2UCs
101EpKtzoKrnZdEg/anNwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQChxtr67o1aZZMJ
102A6gESPtFjZLw6wG0j50JsrWKLvoXVts1ToJ9u2nx01aFKjBwb4Yg+vdJfDgIIAEm
103jS56h6H2DfJlkTWHmi8Vx1wuusWnrNwYMI53tdlRIpD2+Ne7yeoLQZcVN2wuPmxD
104Mbksg4AI4csmbkU/NPX5DtMy4EzM/pFvIcxNIVRUMVTFzn5zxhKfhyPqrMI4fxw1
105UhUbEKO+QgIqTNp/dZ0lTbFs5HJQn6yirWyyvQKBPmaaK+pKd0RST/T38OU2oJ/J
106LojRs7ugCJ+bxJqegmQrdcVqZZGbpYeK4O/5eIn8KOlgh0nUza1MyjJJemgBBWf7
107HoXB8Fge
108-----END CERTIFICATE-----
109-----BEGIN PRI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rSTnAPI+az6P65q8zodqcTtA8xoxgPOlc/lINOxiTEMxLyeGF
1278GyP+sCM2u8CgYEAvMBR05OJnEky9hJEpBZBqSZrQGL8dCwDh0HtCdi8JovPd/yx
1288JW1aaWywXnx6uhjXoru8hJm54IxWV8rB+d716OKY7MfMfACqWejQDratgW0wY7L
129MjztGGD2hLLJGYXLHjfsBPHBllaKZKRbHe1Er19hWdndQWKVEwPB1X4KjKkCgYEA
130nWHmN3K2djbYtRyLR1CEBtDlVuaSJmCWp23q1BuCJqYeKtEpG69NM1f6IUws5Dyh
131eXtuf4KKMU8V6QueW1D6OomPaJ8CO9c5MWM/F5ObwY/P58Y/ByVhvwQQeToONC5g
132JzKNCF+nodZigKqrIwoKuMvtx/IT4vloKd+1jA5fLYMCgYBoT3HLCyATVdDSt1TZ
133SbEDoLSYt23KRjQV93+INP949dYCagtgh/kTzxBopw5FljISLfdYizIRo2AzhhfP
134WWpILlnt19kD+sNirJVqxJacfEZsu5baWTedI/yrCuVsAs/s3/EEY6q0Qywknxtp
135Fwh1/8y5t14ib5fxOVhi8X1nEA==
136-----END PRIVATE KEY-----
137""", # 1
138"""-----BEGIN CERTIFICATE-----
139MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
140bmd5MB4XDTIwMDEwMjAxNDAzM1oXDTIxMDEwMTAxNDAzM1owFzEVMBMGA1UEAwwM
141bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwMTn
142hXnpKHGAir3WYbOxefVrMA07OZNAsNa29nBwLA+NVIJNUFgquibMj7QYo8+M45oY
1436LKr4yRcBryZVvyxfdr92xp8+kLeVApk2WLjkdBTRagHh9qdrY0hQmagCBN6/hLG
144Xug8VksQUdhX3vu6ZyMvTLfKRkDOMRVkRGRGg/dOcvom7zpqMCGYenMG2FStr6UV
1453s3dlCSZZTdTX5Uoq6yfUUJE3nITGKjpnpJKqIs3PWCIxdj7INIcjJKvIdUcavIV
1462hEhh60A8ltmtdpQAXVBE+U7aZgS1fGAWS2A0a3UwuP2pkQp6OyKCUVHpZatbl9F
147ahDN2QBzegv/rdJ1zwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAl4OQZ+FB9ZSUv
148FL/KwLNt+ONU8Sve/xiX+8vKAvgKm2FrjyK+AZPwibnu+FSt2G4ndZBx4Wvpe5V+
149gCsbzSXlh9cDn2SRXyprt2l/8Fj4eUMaThmLKOK200/N/s2SpmBtnuflBrhNaJpw
150DEi2KEPuXsgvkuVzXN06j75cUHwn5LeWDAh0RalkVuGbEWBoFx9Hq8WECdlCy0YS
151y09+yO01qz70y88C2rPThKw8kP4bX8aFZbvsnRHsLu/8nEQNlrELcfBarPVHjJ/9
152imxOdymJkV152V58voiXP/PwXhynctQbF7e+0UZ+XEGdbAbZA0BMl7z+b09Z+jF2
153afm4mVox
154-----END CERTIFICATE-----
155-----BEGIN PRIVATE KEY-----
156MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDAxOeFeekocYCK
157vdZhs7F59WswDTs5k0Cw1rb2cHAsD41Ugk1QWCq6JsyPtBijz4zjmhjosqvjJFwG
158vJlW/LF92v3bGnz6Qt5UCmTZYuOR0FNFqAeH2p2tjSFCZqAIE3r+EsZe6DxWSxBR
1592Ffe+7pnIy9Mt8pGQM4xFWREZEaD905y+ibvOmowIZh6cwbYVK2vpRXezd2UJJll
160N1NflSirrJ9RQkTechMYqOmekkqoizc9YIjF2Psg0hyMkq8h1Rxq8hXaESGHrQDy
161W2a12lABdUET5TtpmBLV8YBZLYDRrdTC4/amRCno7IoJRUellq1uX0VqEM3ZAHN6
162C/+t0nXPAgMBAAECggEAF+2ZK4lZdsq4AQDVhqUuh4v+NSW/T0NHCWxto6OLWPzJ
163N09BV5LKIvdD9yaM1HCj9XCgXOooyfYuciuhARo20f+H+VWNY+c+/8GWiSFsTCJG
1644+Oao7NwVSWqljp07Ou2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bpCGlUD5jBnsHVRLERvS09QlGhqMeNL
181jpNQbWH9VhutzbvpYquKrhvK
182-----END PRIVATE KEY-----
183""", # 2
184"""-----BEGIN CERTIFICATE-----
185MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
186bmd5MB4XDTIwMDEwMjAxNDAzM1oXDTIxMDEwMTAxNDAzM1owFzEVMBMGA1UEAwwM
187bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAypqi
188YTni3s60Uo8vgGcFvjWWkB5CD9Fx9pW/2KcxRJ/u137Y+BG8qWMA4lgII3ZIuvo4
1896rLDiXnAnDZqUtrvZ90O/gH6RyQqX3AI4EwPvCnRIIe0okRcxnxYBL/LfBY54xuv
19046JRYZP4c9IImqQH9QVo2/egtEzcpbmT/mfhpf6NGQWC3Xps2BqDT2SV/DrX/wPA
1918P1atE1AxNp8ENxK/cjFAteEyDZOsDSa757ZHKAdM7L8rZ1Fd2xAA1Dq7IyYpTNE
192IX72xytWxllcNvSUPLT+oicsSZBadc/p3moc3tR/rNdgrHKybedadru/f9Gwpa+v
1930sllZlEcVPSYddAzWwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCmk60Nj5FPvemx
194DSSQjJPyJoIDpTxQ4luSzIq4hPwlUXw7dqrvHyCWgn2YVe9xZsGrT/+n376ecmgu
195sw4s4qVhR9bzKkTMewjC2wUooTA5v9HYsNWZy3Ah7hHPbDHlMADYobjB5/XolNUP
196bCM9xALEdM9DxpC4vjUZexlRKmjww9QKE22jIM+bqsK0zqDSq+zHpfHNGGcS3vva
197OvI6FPc1fAr3pZpVzevMSN2zufIJwjL4FT5/uzwOCaSCwgR1ztD5CSbQLTLlwIsX
198S7h2WF9078XumeRjKejdjEjyH4abKRq8+5LVLcjKEpg7OvktuRpPoGPCEToaAzuv
199h+RSQwwY
200-----END CERTIFICATE-----
201-----BEGIN PRIVATE KEY-----
202MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDKmqJhOeLezrRS
203jy+AZwW+NZaQHkIP0XH2lb/YpzFEn+7Xftj4EbypYwDiWAgjdki6+jjqssOJecCc
204NmpS2u9n3Q7+AfpHJCpfcAjgTA+8KdEgh7SiRFzGfFgEv8t8FjnjG6/jolFhk/hz
2050giapAf1BWjb96C0TNyluZP+Z+Gl/o0ZBYLdemzYGoNPZJX8Otf/A8Dw/Vq0TUDE
2062nwQ3Er9yMUC14TINk6wNJrvntkcoB0zsvytnUV3bEADUOrsjJilM0QhfvbHK1bG
207WVw29JQ8tP6iJyxJkFp1z+neahze1H+s12CscrJt51p2u79/0bClr6/SyWVmURxU
2089Jh10DNbAgMBAAECggEBALv7Q+Rf+C7wrQDZF6LUc9CrGfq4CGVy2IGJKgqT/jOF
209DO9nI1rv4hNr55sbQNneWtcZaYvht2mrzNlj57zepDjDM7DcFuLBHIuWgLXT/NmC
210FyZOo3vXYBlNr8EgT2XfnXAp9UWJCmc2CtUzsIYC4dsmXMeTd8kyc5tUl4r5ybTf
2111g+RTck/IGgqdfzpuTsNl79FW2rP9z111Py6dbqgQzhuSAune9dnLFvZst8dyL8j
212FStETMxBM6jrCF1UcKXzG7trDHiCdzJ8WUhx6opN/8OasQGndwpXto6FZuBy/AVP
2134kVQNpUXImYcLEpva0MqGRHg+YN+c84C71CMchnF4aECgYEA7J2go4CkCcZNKCy5
214R5XVCqNFYRHjekR+UwH8cnCa7pMKKfP+lTCiBrO2q8zwWwknRMyuycS5g/xbSpg1
215L6hi92CV1YQy1/JhlQedekjejNTTuLOPKf78AFNSfc7axDnes2v4Bvcdp9gsbUIO
21610cXh0tOSLE7P9y+yC86KQkFAPECgYEA2zO0M2nvbPHv2jjtymY3pflYm0HzhM/T
217kPtue3GxOgbEPsHffBGssShBTE3yCOX3aAONXJucMrSAPL9iwUfgfGx6ADdkwBsA
218OjDlkxvTbP/9trE6/lsSPtGpWRdJNHqXN4Hx7gXJizRwG7Ym+oHvIIh53aIjdFoE
219HLQLpxObuQsCgYAuMQ99G83qQpYpc6GwAeYXL4yJyK453kky9z5LMQRt8rKXQhS/
220F0FqQYc1vsplW0IZQkQVC5yT0Z4Yz+ICLcM0O9zEVAyA78ZxC42Io9UedSXn9tXK
221Awc7IQkHmmxGxm1dZYSEB5X4gFEb+zted3h2ZxMfScohS3zLI70c6a/aYQKBgQCU
222phRuxUkrTUpFZ1PCbN0R/ezbpLbaewFTEV7T8b6oxgvxLxI6FdZRcSYO89DNvf2w
223GLCVe6VKMWPBTlxPDEostndpjCcTq3vU+nHE+BrBkTvh14BVGzddSFsaYpMvNm8z
224ojiJHH2XnCDmefkm6lRacJKL/Tcj4SNmv6YjUEXLDwKBgF8WV9lzez3d/X5dphLy
2252S7osRegH99iFanw0v5VK2HqDcYO9A7AD31D9nwX46QVYfgEwa6cHtVCZbpLeJpw
226qXnYXe/hUU3yn5ipdNJ0Dm/ZhJPDD8TeqhnRRhxbZmsXs8EzfwB2tcUbASvjb3qA
227vAaPlOSU1wXqhAsG9aVs8gtL
228-----END PRIVATE KEY-----
229""", # 3
230"""-----BEGIN CERTIFICATE-----
231MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
232bmd5MB4XDTIwMDEwMjAxNDAzNFoXDTIxMDEwMTAxNDAzNFowFzEVMBMGA1UEAwwM
233bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzUqQ
234M08E7F2ZE99bFHvpsR6LmgIJOOoGMXacTcEUhRF63E6+730FjxER2a30synv9GGS
2353G9FstUmfhyimufkbTumri8Novw5CWZQLiE1rmMBI5nPcR2wAzy9z2odR6bfAwms
236yyc3IPYg1BEDBPZl0LCQrQRRU/rVOrbCf7IMq+ATazmBg01gXMzq2M953ieorkQX
237MsHVR/kyW0Q0yzhYF1OtIqbXxrdiZ+laTLWNqivj/FdegiWPCf8OcqpcpbgEjlDW
238gBcC/vre+0E+16nfUV8xHL5jseJMJqfT508OtHxAzp+2D7b54NvYNIvbOAP+F9gj
239aXy5mOvjXclK+hNmDwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAjZzTFKG7uoXxm
240BPHfQvsKHIB/Cx9zMKj6pLwJzCPHQBzKOMoUen09oq+fb77RM7WvdX0pvFgEXaJW
241q/ImooRMo+paf8GOZAuPwdafb2/OGdHZGZ2Cbo/ICGo1wGDCdMvbxTxrDNq1Yae+
242m+2epN2pXAO1rlc7ktRkojM/qi3zXtbLjTs3IoPDXWhYPHdI1ThkneRmvxpzB1rW
2432SBqj2snvyI+/3k3RHmldcdOrTlgWQ9hq05jWR8IVtRUFFVn9A+yQC3gnnLIUhwP
244HJWwTIPuYW25TuxFxYZXIbnAiluZL0UIjd3IAwxaafvB6uhI7v0K789DKj2vRUkY
245E8ptxZH4
246-----END CERTIFICATE-----
247-----BEGIN PRIVATE KEY-----
248MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQDNSpAzTwTsXZkT
24931sUe+mxHouaAgk46gYxdpxNwRSFEXrcTr7vfQWPERHZrfSzKe/0YZLcb0Wy1SZ+
250HKKa5+RtO6auLw2i/DkJZlAuITWuYwEjmc9xHbADPL3Pah1Hpt8DCazLJzcg9iDU
251EQME9mXQsJCtBFFT+tU6tsJ/sgyr4BNrOYGDTWBczOrYz3neJ6iuRBcywdVH+TJb
252RDTLOFgXU60iptfGt2Jn6VpMtY2qK+P8V16CJY8J/w5yqlyluASOUNaAFwL++t77
253QT7Xqd9RXzEcvmOx4kwmp9PnTw60fEDOn7YPtvng29g0i9s4A/4X2CNpfLmY6+Nd
254yUr6E2YPAgMBAAECggEBAIiL6uQl0AmDrBj6vHMghGzp+0MBza6MgngOA6L4JTTp
255ToYQ3pEe4D6rxOq7+QHeiBtNd0ilvn9XpVXGqCVOzrIVNiWvaGubRjjJU9WLA1Ct
256y4kpekAr1fIhScMXOsh45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3OEka1MR/ZREK/d/LQEPmsRJVzY6ABKqmPAMDD
2735CnG6Hz/rP87BiEKd1+3PGp8GCw=
274-----END PRIVATE KEY-----
275""", # 4
276"""-----BEGIN CERTIFICATE-----
277MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
278bmd5MB4XDTIwMDEwMjAxNDAzNFoXDTIxMDEwMTAxNDAzNFowFzEVMBMGA1UEAwwM
279bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0sap
28075YbbkEL85LFava3FrO1jpgVteQ4NGxxy1Nu9w2hPfMMeCPWjB8UfAwFk+LVPyvW
281LAXd1zWL5rGpQ2ytIVQlTraR5EnALA1sMcQYbFz1ISPTYB031bEN/Ch8JWYwCG5A
282X2H4D6BC7NgT6YyWDt8vxQnqAisPHQ/OK4ABD15CwkTyPimek2/ufYN2dapg1xhG
283IUD96gqetJv9bu0r869s688kADIComsYG+8KKfFN67S3rSHMIpZPuGTtoHGnVO89
284XBm0vNe0UxQkJEGJzZPn0tdec0LTC4GNtTaz5JuCjx/VsJBqrnTnHHjx0wFz8pff
285afCimRwA+LCopxPE1QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQBOkAnpBb3nY+dG
286mKCjiLqSsuEPqpNiBYR+ue/8aVDnOKLKqAyQuyRZttQ7bPpKHaw7pwyCZH8iHnt6
287pMCLCftNSlV2Fa8msRmuf5AiGjUvR1M8VtHWNYE8pedWrJqUgBhF/405B99yd8CT
288kQJXKF18LObj7YKNsWRoMkVgqlQzWDMEqbfmy9MhuLx2EZPsTB1L0BHNGGDVBd9o
289cpPLUixcc12u+RPMKq8x3KgwsnUf5vX/pCnoGcCy4JahWdDgcZlf0hUKGT7PUem5
290CWW8SMeqSWQX9XpE5Qlm1+W/QXdDXLbbHqDtvBeUy3iFQe3C9RSkp0qdutxkAlFk
291f5QHXfJ7
292-----END CERTIFICATE-----
293-----B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BYZTTWggalEN4aAkf9bxX/hA+9Bw/dzZcQW2aNV7WrYuCSvp3SDCMina
311anQq/PaSRQKBgHjw23HfnegZI89AENaydQQTFNqolrtiYvGcbgC7vakITMzVEwrr
312/9VP0pYuBKmYKGTgF0RrNnKgVX+HnxibUmOSSpCv9GNrdJQVYfpT6XL1XYqxp91s
313nrs7FuxUMNiUOoWOw1Yuj4W4lH4y3QaCXgnDtbfPFunaOrdRWOIv8HjRAoGAV3NT
314mSitbNIfR69YIAqNky3JIJbb42VRc1tJzCYOd+o+pCF96ZyRCNehnDZpZQDM9n8N
3159GAfWEBHCCpwS69DVFL422TGEnSJPJglCZwt8OgnWXd7CW05cvt1OMgzHyekhxLg
3164Dse7J5pXBxAlAYmVCB5xPGR4xLpISX1EOtcwr0CgYEA5rA2IUfjZYb4mvFHMKyM
317xWZuV9mnl3kg0ULttPeOl3ppwjgRbWpyNgOXl8nVMYzxwT/A+xCPA18P0EcgNAWc
318frJqQYg3NMf+f0K1wSaswUSLEVrQOj25OZJNpb21JEiNfEd5DinVVj4BtVc6KSpS
319kvjbn2WhEUatc3lPL3V0Fkw=
320-----END PRIVATE KEY-----
321""", # 5
322"""-----BEGIN CERTIFICATE-----
323MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
324bmd5MB4XDTIwMDEwMjAxNTExM1oXDTIxMDEwMTAxNTExM1owFzEVMBMGA1UEAwwM
325bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1c5y
326S9IZHF9MIuwdafzhMkgP37I3RVpHEbpnPwnLFqSWelS5m2eDkwWd5SkfGjrmQ5q0
327PEpqLlh3zHGw9yQjnHS3CCS1PwQ1kmwvpIK3HM5y8GM7ry1zkam8ZR4iX6Y7VG9g
3289mhiVVFoVhe1gHeiC/3Mp6XeNuEiD0buM+8qZx9B21I+iwzy4wva7Gw0fJeq9G1c
329lq2rhpD1LlIE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PRcn1gc1t
364TG7db+hivAyUoRkIW3dB8pRj9dDUqO9OohjKsJxJaQCyH5vPkQFSLbTIgWrHhU+3
365oSPiK/YngDV1AOmPDH7i62po
366-----END PRIVATE KEY-----
367""", #6
368"""-----BEGIN CERTIFICATE-----
369MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
370bmd5MB4XDTIwMDEwMjAxNTExMloXDTIxMDEwMTAxNTExMlowFzEVMBMGA1UEAwwM
371bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAojGu
372fQaTVT9DJWJ/zogGfrryEJXYVy9c441O5MrLlRx7nCIWIUs2NEhHDJdqJjYOTdmk
373K98VhdMpDPZwxjgvvZrh43lStBRIW3zZxv747rSl2VtpSqD/6UNWJe5u4SR7oga4
374JfITOKHg/+ASxnOxp/iu6oT6jBL6T7KSPh6Rf2+it2rsjhktRreFDJ2hyroNq1w4
375ZVNCcNPgUIyos8u9RQKAWRNchFh0p0FCS9xNrn3e+yHnt+p6mOOF2gMzfXT/M2hq
376KQNmc5D3yNoH2smWoz7F3XsRjIB1Ie4VWoRRaGEy7RwcwiDfcaemD0rQug6iqH7N
377oomF6f3R4DyvVVLUkQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQB/8SX6qyKsOyex
378v3wubgN3FPyU9PqMfEzrFM6X5sax0VMVbSnekZrrXpdnXYV+3FBu2GLLQc900ojj
379vKD+409JIriTcwdFGdLrQPTCRWkEOae8TlXpTxuNqJfCPVNxFN0znoat1bSRsX1U
380K0mfEETQ3ARwlTkrF9CM+jkU3k/pnc9MoCLif8P7OAF38AmIbuTUG6Gpzy8RytJn
381m5AiA3sds5R0rpGUu8mFeBpT6jIA1QF2g+QNHKOQcfJdCdfqTjKw5y34hjFqbWG9
382RxWGeGNZkhC/jADCt+m+R6+hlyboLuIcVp8NJw6CGbr1+k136z/Dj+Fdhm6FzF7B
383qULe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QTbPo7QAJ1CumJzAI88BZ/8za638xb
402nLueviZApCt0bNMEEdxDffxHFc5TyHE+obMKFfApbCnD0ggO6lrZ8jK9prArLOCp
403mRU9SSRffQKBgAjoBszeqZI4F9SfBdLmMyzU5A89wxBOFFMdfKLsOua1sBn627PZ
40451Hvpg1HaptoosfujWK1NsvkB0wY9UmsYuU/jrGnDaibnO4oUSzN/WaMlsCYszZg
405zYFLIXrQ67tgajlOYcf1Qkw4MujYgPlC4N+njI/EM/rwagGUjcDx5uaNAoGASyqz
406EuYG63eTSGH89SEaohw0+yaNmnHv23aF4EAjZ4wjX3tUtTSPJk0g6ly84Nbb8d1T
407hZJ7kbaAsf2Mfy91jEw4JKYhjkP05c8x0OP6g12p6efmvdRUEmXX/fXjQjgNEtb0
408sz+UedrOPN+9trWLSo4njsyyw+JcTpKTtQj5dokCgYEAg9Y3msg+GvR5t/rPVlKd
409keZkrAp0xBJZgqG7CTPXWS1FjwbAPo7x4ZOwtsgjCuE52lar4j+r2Il+CDYeLfxN
410h/Jfn6S9ThUh+B1PMvKMMnJUahg8cVL8uQuBcbAy8HPRK78WO2BTnje44wFAJwTc
4110liuYqVxZIRlFLRl8nGqog8=
412-----END PRIVATE KEY-----
413""", #7
414"""-----BEGIN CERTIFICATE-----
415MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
416bmd5MB4XDTIwMDEwMjAxNTExMloXDTIxMDEwMTAxNTExMlowFzEVMBMGA1UEAwwM
417bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu9oO
418cFlNukUcLfFrfkEaUiilcHLmn5OokQbj95CGd2ehQCCVwrkunYLBisthRaancFFb
419/yM998B0IUsKTsoLi5DAN3/SkSm6GiQIGO05E4eBPljwJ61QQMxh8+1TwQ9HTun1
420ZE1lhVN1aRmI9VsbyTQLjXh9OFNLSJEKb29mXsgzYwYwNOvo+idzXpy4bMyN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EbgoMt4ulRczP2g7TCfvANw2Sw0H2Q5a6Fj
456cnwVcXJ38DLg0GCPMwzE8dK7d8tKtV6kGiKy+KFvoKChPjE6uxhKKmCJaSwtQEPS
457vsjX3iiIgUQPsSz8RrNFfQ==
458-----END PRIVATE KEY-----
459""", #8
460"""-----BEGIN CERTIFICATE-----
461MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
462bmd5MB4XDTIwMDEwMjAxNTExMloXDTIxMDEwMTAxNTExMlowFzEVMBMGA1UEAwwM
463bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5DNu
464CKhhl6wCbgoCkFemwJh3ATbAjhInHpvQWIFDfSK1USElCKxqosIxiBQCx3Zs2d/U
465GeIA7QAM2atNdXaateacEaKMmGE9LEtO0Dg5lmT43WzmGkG9NmCwK3JjAekc5S9d
466HKNtEQo7o8RKfj81zlDSq2kzliy98cimk24VBBGkS2Cn7Vy/mxMCqWjQazTXbpoS
467lXw6LiY5wFXQmXOB5GTSHvqyCtBQbOSSbJB77z/fm7bufTDObufTbJIq53WPt00Y
468f+JNnzkX1X0MaBCUztoZwoMaExWucMe/7xsQ46hDn6KB4b0lZk+gsK45QHxvPE1R
46972+ZkkIrGS/ljIKahQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQDib1653CneSmy2
470gYzGeMlrI05Jqo3JuHNMQHzAjIrb4ee57VA4PTQa1ygGol/hVv6eTvZr3p2ospDS
4715Kfwj1HLO4jSMX1Bnm1FG0naQogz2CD3xfYjbYOVRhAxpld1MNyRveIOhDRARY7N
472XNAaNPZ1ALrwbENSYArr18xDzgGWe/dgyRCEpCFIsztiA+7jGvrmAZgceIE8K3h3
473fkvNmXBH58ZHAGTiyRriBZqS+DXrBrQOztXSJwFnOZnRt6/efeBupt8j5hxVpBLW
474vtjpBc23uUcbbHOY2AW2Bf+vIr4/LmJ/MheKV+maa2990vmC93tvWlFfc74mgUkW
475HJfXDmR6
476-----END CERTIFICATE-----
477-----BEGIN PRIVATE KEY-----
478MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDkM24IqGGXrAJu
479CgKQV6bAmHcBNsCOEicem9BYgUN9IrVRISUIrGqiwjGIFALHdmzZ39QZ4gDtAAzZ
480q011dpq15pwRooyYYT0sS07QODmWZPjdbOYaQb02YLArcmMB6RzlL10co20RCjuj
481xEp+PzXOUNKraTOWLL3xyKaTbhUEEaRLYKftXL+bEwKpaNBrNNdumhKVfDouJjnA
482VdCZc4HkZNIe+rIK0FBs5JJskHvvP9+btu59MM5u59NskirndY+3TRh/4k2fORfV
483fQxoEJTO2hnCgxoTFa5wx7/vGxDjqEOfooHhvSVmT6CwrjlAfG88TVHvb5mSQisZ
484L+WMgpqFAgMBAAECggEABTdPuo7uvCLIY2+DI319aEWT4sk3mYe8sSxqlLtPqZqT
485fmk9iXc3cMTzkOK0NY71af19waGy17f6kzchLCAr5SCCTLzkbc87MLn/8S530oI4
486VgdZMxxxkL6hCD0zGiYT7QEqJa9unMcZGeMwuLYFKtQaHKTo8vPO26n0dMY9YLxj
487cNUxsKLcKk8dbfKKt4B4fZgB7nU0BG9YbKYZ3iZ7/3mG+6jA6u+VYc/WHYQjTmpL
488oLFN7NOe3R7jIx/kJ1OqNWqsFoLpyiiWd1Mr0l3EdD1kCudptMgD8hd++nx2Yk2w
489K4+CpOVIN/eCxDDaAOJgYjCtOayVwUkDAxRRt9VnAQKBgQD5s1j6RJtBNTlChVxS
490W3WpcG4q8933AiUY/Chx0YTyopOiTi7AGUaA8AOLFBcO2npa+vzC+lvuOyrgOtVW
491sD10H2v5jNKlbeBp+Q9rux2LAyp4TvzdXWKhVyZrdtITF0hn6vEYNp7MtyWRFb1O
4923Ie5HQBPHtzllFOMynacjOdjpQKBgQDp9TrbfOmwGWmwPKmaFKuy8BKxjJM+ct0X
4934Xs1uSy9Z9Y8QlDNbNaooI8DA1NY0jDVHwemiGC4bYsBNKNRcbI0s2nr0hQMft42
494P/NpugHv0YXiVz+5bfim4woTiHHbfREqchlIGo3ryClAiDU9fYZwTOtb9jPIhX3G
4959v+OsoMlYQKBgQDJUQW90S5zJlwh+69xXvfAQjswOimNCpeqSzK4gTn0/YqV4v7i
496Nf6X2eqhaPMmMJNRYuYCtSMFMYLiAc0a9UC2rNa6/gSfB7VU+06phtTMzSKimNxa
497BP6OIduB7Ox2I+Fmlw8GfJMPbeHF1YcpW7e5UV58a9+g4TNzYZC7qwarWQKBgQCA
498FFaCbmHonCD18F/REFvm+/Lf7Ft3pp5PQouXH6bUkhIArzVZIKpramqgdaOdToSZ
499SAGCM8rvbFja8hwurBWpMEdeaIW9SX8RJ/Vz/fateYDYJnemZgPoKQcNJnded5t8
500Jzab+J2VZODgiTDMVvnQZOu8To6OyjXPRM0nK6cMQQKBgQDyX44PHRRhEXDgJFLU
501qp2ODL54Qadc/thp2m+JmAvqmCCLwuYlGpRKVkLLuZW9W6RlVqarOC3VD3wX5PRZ
502IsyCGLi+Jbrv9JIrYUXE80xNeQVNhrrf02OW0KHbqGxRaNOmp1THPw98VUGR2J/q
503YAp6XUXU7LEBUrowye+Ty2o7Lg==
504-----END PRIVATE KEY-----
505""", #9
506"""-----BEGIN CERTIFICATE-----
507MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
508bmd5MB4XDTIwMDEwMjAxNTExMVoXDTIxMDEwMTAxNTExMVowFzEVMBMGA1UEAwwM
509bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1k2R
510PWYihftppo3CoxeseFwgg7guxZVkP7aAur5uBzSeAB7sBG1G2bRrwMX71S4xPwot
511zYiEoxUrTStUqEKjL2aozfHsXnHZ7kwwUgZFDZUg+ve2tZDA3HCUr4tLYKlyFqpx
5122nCouc45MjQ4wAxRl4rQxIUG2uSTzvP+xXtjoJYMIEEyCpcsRXfqfVkEUe9nrPsF
5130Ibzk7Cyt75HDI4uEzBuHux0DYuGy6R02jz/vf/dIZ4WepjSY06xpblTHZgieDRX
514fU2+YOcvb0eDHyA8Q5p8ropK71MNIP5+kffFd90SVr4EkCA8S+cd6FdKQasRr+jF
5159MUhMS4ObvlrYTG+hwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCy62MZ3+59/VpX
516c9Hsmb4/BMWt0irLJit4w4SkuYKGFLCMKZI4LN4pEkXaiE1eqF2DNS1qOvl5luty
517Zz4oggrqilwuFeH98o9Zeg9SYnouuypORVP/3DPbJF/jiQg5J8kJb1sy+BjRiT8I
5185X6/cCBYT+MljFz5tpqWOtWTgA30e1BV8JFj8F4dgUcWsAVT/I4l9zgMLUnhcO6E
519wLtEE0I6aT1RHJB28ndwJzj4La98Oirw7LAEAWbExWYB90ypLaGY+JVJe3f5fijC
520fJpQ2mbs4syXDmb5bU2C2pGPTKZPcyx15iQrq1uHInD0facOw+pmllAFxuG96lA1
521+o2VzKwP
522-----END CERTIFICATE-----
523-----BEGIN PRIVATE KEY-----
524MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDWTZE9ZiKF+2mm
525jcKjF6x4XCCDuC7FlWQ/toC6vm4HNJ4AHuwEbUbZtGvAxfvVLjE/Ci3NiISjFStN
526K1SoQqMvZqjN8execdnuTDBSBkUNlSD697a1kMDccJSvi0tgqXIWqnHacKi5zjky
527NDjADFGXitDEhQba5JPO8/7Fe2OglgwgQTIKlyxFd+p9WQRR72es+wXQhvOTsLK3
528vkcMji4TMG4e7HQNi4bLpHTaPP+9/90hnhZ6mNJjTrGluVMdmCJ4NFd9Tb5g5y9v
529R4MfIDxDmnyuikrvUw0g/n6R98V33RJWvgSQIDxL5x3oV0pBqxGv6MX0xSExLg5u
530+WthMb6HAgMBAAECggEAeCyRSNwQeg/NZD/UqP6qkegft52+ZMBssinWsGH/c3z3
531KVwtwCHDfGvnjPe5TA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zTZS6Ip9ySDMnK3954c4Q4WJ4yQKixQNVq
54878aDfy4hP/8TE/Q9CRddUof2P33PJMhVNqzTRYMpqV+zxifvtw3hoDTLKHTQxCR2
549M1+O4VvokU5pBqUpGXiMDfs=
550-----END PRIVATE KEY-----
551""", #10
552"""-----BEGIN CERTIFICATE-----
553MIICojCCAYoCAQEwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAwwMbmV3cGJfdGhp
554bmd5MB4XDTIwMDEwMjAxNTExMVoXDTIxMDEwMTAxNTExMVowFzEVMBMGA1UEAwwM
555bmV3cGJfdGhpbmd5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnbCU
556M37hG7zrCyyJEI6pZmOomnI+CozbP5KAhWSV5y7R5H6lcAEG2UDV+lCUxHT2ufOa
557i1H16bXyBt7VoMTHIH50S58NUCUEXcuRWVR16tr8CzcTHQAkfIrmhY2XffPilX7h
558aw35UkoVmXcqSDNNJD6jmvWexvmbhzVWW8Vt5Pivet2/leVuqPXB54/alSbkC74m
559x6X5XKQc6eyPsb1xvNBuiSpFzdqbEn7lUwj6jFTkh9tlixgmgx+J0XoQXbawyrAg
560rcIQcse/Ww+KBA1KSccFze+XBTbIull4boYhbJqkb6DW5bY7/me2nNxE9DRGwq+S
561kBsKq3YKeCf8LEhfqQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAD+tWGFhINYsWT
562ibKWlCGgBc5uB7611cLCevx1yAL6SaOECVCQXzaaXIaETSbyY03UO2yBy3Pl10FV
563GYXLrAWTFZsNVJm55XIibTNw1UBPNwdIoCSzAYuOgMF0GHhTTQU0hNYWstOnnE2T
5646lSAZQZFkaW4ZKs6sUp42Em9Bu99PehyIgnw14qb9NPg5qKdi2GAvkImZCrGpMdK
565OF31U7Ob0XQ0lxykcNgG4LlUACd+QxLfNpmLBZUGfikexYa1VqBFm3oAvTt8ybNQ
566qr7AKXDFnW75aCBaMpQWzrstA7yYZ3D9XCd5ZNf6d08lGM/oerDAIGnZOZPJgs5U
567FaWPHdS9
568-----END CERTIFICATE-----
569-----BEGIN PRIVATE KEY-----
570MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCdsJQzfuEbvOsL
571LIkQjqlmY6iacj4KjNs/koCFZJXnLtHkfqVwAQbZQNX6UJTEdPa585qLUfXptfIG
5723tWgxMcgfnRLnw1QJQRdy5FZVHXq2vwLNxMdACR8iuaFjZd98+KVfuFrDflSShWZ
573dypIM00kPqOa9Z7G+ZuHNVZbxW3k+K963b+V5W6o9cHnj9qVJuQLvibHpflcpBzp
5747I+xvXG80G6JKkXN2psSfuVTCPqMVOSH22WLGCaDH4nRehBdtrDKsCCtwhByx79b
575D4oEDUpJxwXN75cFNsi6WXhuhiFsmqRvoNbltjv+Z7ac3ET0NEbCr5KQGwqrdgp4
576J/wsSF+pAgMBAAECggEAPSu1ofBTRN5ZU4FYPlsJLdX1Hsy4coFHv/aF8rkdSYwp
577EflrFfLgBEEZgLvnqfoxh9sPFYKa4amaFL42ouIS2PEVDgzKLk/dzMDeRof0IkIG
578yhb4TCS1ArcjS6WsociNGi8ZJN1L3Xctv9WxSkbUYv4Fm2Qyzr8fbSjssjb5NXwD
579K11fsj6Pfy/mQrI0TSTlzWC7ARIlCMTWQ8G8zEU6bMFIG6DMjt2J4VgYVXUKetZA
580VPuS+pwkH2obQe6FLRuiNxH4GitVAASYPea6foER4AggBMRp8q8F6+WssjoyEORb
5810sJxmnxhznoTRMCuTsUj6XMgmOTOnA3lQXsIB0DYcQKBgQDO6mMRVVFWzgkE9Q5/
58236n06KvGYF9TCRDL9vRC8kCqcGd1Hy6jRj0D8049KUHaN74pfWg6gsQjPkKzwKnC
583vxNl72tVvLqm7Fo531BGfKK/46ZvxeWMMraNW4+9LhwMPu2LN5OEdwwCgyaURpxh
584ktCp+RrGjz08Kn82X1jJPdwxDQKBgQDDGMvZ7ZUDGq5+RJkmHJ58lQtiaMZclmYV
585R9YwOxJV6ino3EYrGOtUkqiemgAACdMWE/JMJlB1/JINawJwUsZ2XDp/9jNLPgLc
586gphCmagaO34U/YMaJbJIK2gkCX7p8EcD+x45qWa0bEMPW38QfN/qQdUPjNmpuIiI
587Zleyl1TqDQKBgQCvIoat0ighsAzETGN0aqzhJdrW8xVcJA06hpFi5MdFPBTldno0
588KqxUXqj3badWe94SIhqJg8teBUHSAZ3uv2o82nRgQnk99km8OD8rGi1q+9YRP1C2
5895OnNJhW4y4FkABNxxZ2v/k+FBNsvn8CXefvyEm3OaMks1s+MBxIQa7KnNQKBgFwX
590HUo+GiN/+bPCf6P8yFa4J8qI+HEF0SPkZ9cWWx5QzP2M1FZNie++1nce7DcYbBo0
591yh9lyn8W/H328AzDFckS2c5DEY1HtSQPRP3S+AWB5Y7U54h1GMV2L88q6ExWzb60
592T10aeE9b9v+NydmniC5UatTPQIMbht8Tp/u18TAVAoGBAJphAfiqWWV2M5aBCSXq
593WxLZ71AJ0PZBmRa/9iwtccwXQpMcW6wHK3YSQxci+sB97TElRa3/onlVSpohrUtg
594VCvCwfSHX1LmrfWNSkoJZwCQt+YYuMqW86K0tzLzI1EMjIH9LgQvB6RR26PZQs+E
595jr1ZvRc+wPTq6sxCF1h9ZAfN
596-----END PRIVATE KEY-----
597""", #11
598]
599
600# To disable the pre-computed tub certs, uncomment this line.
601# SYSTEM_TEST_CERTS = []
602
603
604def flush_but_dont_ignore(res):
605    d = flushEventualQueue()
606    def _done(ignored):
607        return res
608    d.addCallback(_done)
609    return d
610
611
612def _render_config(config):
613    """
614    Convert a ``dict`` of ``dict`` of ``unicode`` to an ini-format string.
615    """
616    return u"\n\n".join(list(
617        _render_config_section(k, v)
618        for (k, v)
619        in config.items()
620    ))
621
622def _render_config_section(heading, values):
623    """
624    Convert a ``unicode`` heading and a ``dict`` of ``unicode`` to an ini-format
625    section as ``unicode``.
626    """
627    return u"[{}]\n{}\n".format(
628        heading, _render_section_values(values)
629    )
630
631def _render_section_values(values):
632    """
633    Convert a ``dict`` of ``unicode`` to the body of an ini-format section as
634    ``unicode``.
635    """
636    return u"\n".join(list(
637        u"{} = {}".format(k, v)
638        for (k, v)
639        in sorted(values.items())
640    ))
641
642
643@async_to_deferred
644async def spin_until_cleanup_done(value=None, timeout=10):
645    """
646    At the end of the test, spin until the reactor has no more DelayedCalls
647    and file descriptors (or equivalents) registered. This prevents dirty
648    reactor errors, while also not hard-coding a fixed amount of time, so it
649    can finish faster on faster computers.
650
651    There is also a timeout: if it takes more than 10 seconds (by default) for
652    the remaining reactor state to clean itself up, the presumption is that it
653    will never get cleaned up and the spinning stops.
654
655    Make sure to run as last thing in tearDown.
656    """
657    def num_fds():
658        if hasattr(reactor, "handles"):
659            # IOCP!
660            return len(reactor.handles)
661        else:
662            # Normal reactor; having internal readers still registered is fine,
663            # that's not our code.
664            return len(
665                set(reactor.getReaders()) - set(reactor._internalReaders)
666            ) + len(reactor.getWriters())
667
668    for i in range(timeout * 1000):
669        # There's a single DelayedCall for AsynchronousDeferredRunTest's
670        # timeout...
671        if (len(reactor.getDelayedCalls()) < 2 and num_fds() == 0):
672            break
673        await deferLater(reactor, 0.001)
674    return value
675
676
677class SystemTestMixin(pollmixin.PollMixin, testutil.StallMixin):
678
679    # If set to True, use Foolscap for storage protocol. If set to False, HTTP
680    # will be used when possible. If set to None, this suggests a bug in the
681    # test code.
682    FORCE_FOOLSCAP_FOR_STORAGE : Optional[bool] = None
683
684    # If True, reduce the timeout on connections:
685    REDUCE_HTTP_CLIENT_TIMEOUT : bool = True
686
687    def setUp(self):
688        if os.getenv("TAHOE_DEBUG_BLOCKING") == "1":
689            from .blocking import catch_blocking_in_event_loop
690            catch_blocking_in_event_loop(self)
691
692        self._http_client_pools = []
693        http_client.StorageClientFactory.start_test_mode(self._got_new_http_connection_pool)
694        self.addCleanup(http_client.StorageClientFactory.stop_test_mode)
695        self.port_assigner = SameProcessStreamEndpointAssigner()
696        self.port_assigner.setUp()
697        self.addCleanup(self.port_assigner.tearDown)
698
699        self.sparent = service.MultiService()
700        self.sparent.startService()
701
702    def _got_new_http_connection_pool(self, pool):
703        # Make sure the pool closes cached connections quickly:
704        pool.cachedConnectionTimeout = 0.1
705        # Register the pool for shutdown later:
706        self._http_client_pools.append(pool)
707        # Disable retries:
708        pool.retryAutomatically = False
709        # Make a much more aggressive timeout for connections, we're connecting
710        # locally after all... and also make sure it's lower than the delay we
711        # add in tearDown, to prevent dirty reactor issues.
712        getConnection = pool.getConnection
713
714        def getConnectionWithTimeout(*args, **kwargs):
715            d = getConnection(*args, **kwargs)
716            d.addTimeout(1, reactor)
717            return d
718
719        if self.REDUCE_HTTP_CLIENT_TIMEOUT:
720            pool.getConnection = getConnectionWithTimeout
721
722    def close_idle_http_connections(self):
723        """Close all HTTP client connections that are just hanging around."""
724        return defer.gatherResults(
725            [pool.closeCachedConnections() for pool in self._http_client_pools]
726        )
727
728    def tearDown(self):
729        log.msg("shutting down SystemTest services")
730        d = self.sparent.stopService()
731        d.addBoth(flush_but_dont_ignore)
732        d.addBoth(lambda x: self.close_idle_http_connections().addCallback(lambda _: x))
733        d.addBoth(spin_until_cleanup_done)
734        return d
735
736    def getdir(self, subdir):
737        return os.path.join(self.basedir, subdir)
738
739    def add_service(self, s):
740        s.setServiceParent(self.sparent)
741        return s
742
743    def _create_introducer(self):
744        """
745        :returns: (via Deferred) an Introducer instance
746        """
747        iv_dir = self.getdir("introducer")
748        if not os.path.isdir(iv_dir):
749            _, web_port_endpoint = self.port_assigner.assign(reactor)
750            main_location_hint, main_port_endpoint = self.port_assigner.assign(reactor)
751            introducer_config = (
752                u"[node]\n"
753                u"nickname = introducer \N{BLACK SMILING FACE}\n" +
754                u"web.port = {}\n".format(web_port_endpoint) +
755                u"tub.port = {}\n".format(main_port_endpoint) +
756                u"tub.location = {}\n".format(main_location_hint)
757            ).encode("utf-8")
758
759            fileutil.make_dirs(iv_dir)
760            fileutil.write(
761                os.path.join(iv_dir, 'tahoe.cfg'),
762                introducer_config,
763            )
764            if SYSTEM_TEST_CERTS:
765                os.mkdir(os.path.join(iv_dir, "private"))
766                f = open(os.path.join(iv_dir, "private", "node.pem"), "w")
767                f.write(SYSTEM_TEST_CERTS[0])
768                f.close()
769        return create_introducer(basedir=iv_dir)
770
771    def _get_introducer_web(self):
772        with open(os.path.join(self.getdir("introducer"), "node.url"), "r") as f:
773            return f.read().strip()
774
775    @inlineCallbacks
776    def set_up_nodes(self, NUMCLIENTS=5):
777        """
778        Create an introducer and ``NUMCLIENTS`` client nodes pointed at it.  All
779        of the nodes are running in this process.
780
781        As a side-effect, set:
782
783        * ``numclients`` to ``NUMCLIENTS``
784        * ``introducer`` to the ``_IntroducerNode`` instance
785        * ``introweb_url`` to the introducer's HTTP API endpoint.
786
787        :param int NUMCLIENTS: The number of client nodes to create.
788
789        :return: A ``Deferred`` that fires when the nodes have connected to
790            each other.
791        """
792        self.assertIn(
793            self.FORCE_FOOLSCAP_FOR_STORAGE, (True, False),
794            "You forgot to set FORCE_FOOLSCAP_FOR_STORAGE on {}".format(self.__class__)
795        )
796        self.numclients = NUMCLIENTS
797
798        self.introducer = yield self._create_introducer()
799        self.add_service(self.introducer)
800        self.introweb_url = self._get_introducer_web()
801        yield self._set_up_client_nodes(self.FORCE_FOOLSCAP_FOR_STORAGE)
802        native_server = next(iter(self.clients[0].storage_broker.get_known_servers()))
803        if self.FORCE_FOOLSCAP_FOR_STORAGE:
804            expected_storage_server_class = NativeStorageServer
805        else:
806            expected_storage_server_class = HTTPNativeStorageServer
807        self.assertIsInstance(native_server, expected_storage_server_class)
808
809    @inlineCallbacks
810    def _set_up_client_nodes(self, force_foolscap):
811        q = self.introducer
812        self.introducer_furl = q.introducer_url
813        self.clients = []
814        basedirs = []
815        for i in range(self.numclients):
816            basedirs.append((yield self._set_up_client_node(i, force_foolscap)))
817
818        # start clients[0], wait for it's tub to be ready (at which point it
819        # will have registered the helper furl).
820        c = yield client.create_client(basedirs[0])
821        c.setServiceParent(self.sparent)
822        self.clients.append(c)
823
824        with open(os.path.join(basedirs[0],"private","helper.furl"), "r") as f:
825            helper_furl = f.read()
826
827        self.helper_furl = helper_furl
828        if self.numclients >= 2:
829            with open(os.path.join(basedirs[1], 'tahoe.cfg'), 'a+') as f:
830                f.write(
831                    "[client]\n"
832                    "helper.furl = {}\n".format(helper_furl)
833                )
834
835        # this starts the rest of the clients
836        for i in range(1, self.numclients):
837            c = yield client.create_client(basedirs[i])
838            c.setServiceParent(self.sparent)
839            self.clients.append(c)
840        log.msg("STARTING")
841        yield self.wait_for_connections()
842        log.msg("CONNECTED")
843        # now find out where the web port was
844        self.webish_url = self.clients[0].getServiceNamed("webish").getURL()
845        if self.numclients >=2:
846            # and the helper-using webport
847            self.helper_webish_url = self.clients[1].getServiceNamed("webish").getURL()
848
849    def _generate_config(self, which, basedir, force_foolscap=False):
850        config = {}
851
852        allclients = set(range(self.numclients))
853        except1 = allclients - {1}
854        feature_matrix = {
855            ("client", "nickname"): except1,
856
857            # Auto-assigning addresses is extremely failure prone and not
858            # amenable to automated testing in _this_ manner.
859            ("node", "tub.port"): allclients,
860            ("node", "tub.location"): allclients,
861
862            # client 0 runs a webserver and a helper
863            # client 1 runs a webserver but no helper
864            ("node", "web.port"): {0, 1},
865            ("node", "timeout.keepalive"): {0},
866            ("node", "timeout.disconnect"): {1},
867
868            ("helper", "enabled"): {0},
869        }
870
871        def setconf(config, which, section, feature, value):
872            if which in feature_matrix.get((section, feature), {which}):
873                config.setdefault(section, {})[feature] = value
874
875        setnode = partial(setconf, config, which, "node")
876        sethelper = partial(setconf, config, which, "helper")
877
878        setnode("nickname", u"client %d \N{BLACK SMILING FACE}" % (which,))
879        setconf(config, which, "storage", "force_foolscap", str(force_foolscap))
880        setconf(config, which, "client", "force_foolscap", str(force_foolscap))
881
882        tub_location_hint, tub_port_endpoint = self.port_assigner.assign(reactor)
883        setnode("tub.port", tub_port_endpoint)
884        setnode("tub.location", tub_location_hint)
885
886        _, web_port_endpoint = self.port_assigner.assign(reactor)
887        setnode("web.port", web_port_endpoint)
888        setnode("timeout.keepalive", "600")
889        setnode("timeout.disconnect", "1800")
890
891        sethelper("enabled", "True")
892
893        iyaml = ("introducers:\n"
894                 " petname2:\n"
895                 "  furl: %s\n") % self.introducer_furl
896        iyaml_fn = os.path.join(basedir, "private", "introducers.yaml")
897        fileutil.write(iyaml_fn, iyaml)
898        return _render_config(config)
899
900    def _set_up_client_node(self, which, force_foolscap):
901        basedir = self.getdir("client%d" % (which,))
902        fileutil.make_dirs(os.path.join(basedir, "private"))
903        if len(SYSTEM_TEST_CERTS) > (which + 1):
904            f = open(os.path.join(basedir, "private", "node.pem"), "w")
905            f.write(SYSTEM_TEST_CERTS[which + 1])
906            f.close()
907        config = self._generate_config(which, basedir, force_foolscap)
908        fileutil.write(os.path.join(basedir, 'tahoe.cfg'), config)
909        return basedir
910
911    def bounce_client(self, num):
912        c = self.clients[num]
913        d = c.disownServiceParent()
914        # I think windows requires a moment to let the connection really stop
915        # and the port number made available for re-use. TODO: examine the
916        # behavior, see if this is really the problem, see if we can do
917        # better than blindly waiting for a second.
918        d.addCallback(self.stall, 1.0)
919
920        @defer.inlineCallbacks
921        def _stopped(res):
922            new_c = yield client.create_client(self.getdir("client%d" % num))
923            self.clients[num] = new_c
924            new_c.setServiceParent(self.sparent)
925        d.addCallback(_stopped)
926        d.addCallback(lambda res: self.wait_for_connections())
927        def _maybe_get_webport(res):
928            if num == 0:
929                # now find out where the web port was
930                self.webish_url = self.clients[0].getServiceNamed("webish").getURL()
931        d.addCallback(_maybe_get_webport)
932        return d
933
934    @defer.inlineCallbacks
935    def add_extra_node(self, client_num, helper_furl=None,
936                       add_to_sparent=False):
937        # usually this node is *not* parented to our self.sparent, so we can
938        # shut it down separately from the rest, to exercise the
939        # connection-lost code
940        basedir = FilePath(self.getdir("client%d" % client_num))
941        basedir.makedirs()
942        config = (
943            "[node]\n"
944            "tub.location = {}\n"
945            "tub.port = {}\n"
946            "[client]\n"
947        ).format(*self.port_assigner.assign(reactor))
948
949        if helper_furl:
950            config += "helper.furl = %s\n" % helper_furl
951        basedir.child("tahoe.cfg").setContent(config.encode("utf-8"))
952        private = basedir.child("private")
953        private.makedirs()
954        write_introducer(
955            basedir,
956            "default",
957            self.introducer_furl,
958        )
959
960        c = yield client.create_client(basedir.path)
961        self.clients.append(c)
962        self.numclients += 1
963        if add_to_sparent:
964            c.setServiceParent(self.sparent)
965        else:
966            c.startService()
967        yield self.wait_for_connections()
968        defer.returnValue(c)
969
970    def _check_connections(self):
971        for i, c in enumerate(self.clients):
972            if not c.connected_to_introducer():
973                log.msg("%s not connected to introducer yet" % (i,))
974                return False
975            sb = c.get_storage_broker()
976            connected_servers = sb.get_connected_servers()
977            connected_names = sorted(list(
978                connected.get_nickname()
979                for connected
980                in sb.get_known_servers()
981                if connected.is_connected()
982            ))
983            if len(connected_servers) != self.numclients:
984                wanted = sorted(list(
985                    client.nickname
986                    for client
987                    in self.clients
988                ))
989                log.msg(
990                    "client %s storage broker connected to %s, missing %s" % (
991                        i,
992                        connected_names,
993                        set(wanted) - set(connected_names),
994                    )
995                )
996                return False
997            log.msg("client %s storage broker connected to %s, happy" % (
998                i, connected_names,
999            ))
1000            up = c.getServiceNamed("uploader")
1001            if up._helper_furl and not up._helper:
1002                log.msg("Helper fURL but no helper")
1003                return False
1004        return True
1005
1006    def wait_for_connections(self, ignored=None):
1007        return self.poll(self._check_connections, timeout=200)
Note: See TracBrowser for help on using the repository browser.