Commit Graph

12786 Commits

Author SHA1 Message Date
Jean-Paul Calderone
4d8164773c factor helper function out to top-level 2021-09-23 07:43:18 -04:00
Jean-Paul Calderone
f8c07bfd11 add some docstrings 2021-09-23 07:42:59 -04:00
Jean-Paul Calderone
5e26f25b37 It's ported to Python 3! 2021-09-23 07:41:43 -04:00
Florian Sesser
e5e0d71ef5 OpenMetrics test suite: More clean ups
trailing whitespace
2021-09-17 13:20:59 +00:00
Florian Sesser
fb0335cc17 OpenMetrics test suite: More clean up
The Linter complains:
> 'testtools.matchers.Always' imported but unused
2021-09-17 12:17:32 +00:00
Florian Sesser
a2378d0e70 OpenMetrics test suite: Make CI happy: No old style objects 2021-09-17 12:04:12 +00:00
Florian Sesser
5825b8bd42 OpenMetrics: rework test suite with exarkun 2021-09-16 15:58:04 +00:00
Florian Sesser
b0e1cf924d OpenMetrics test: White space only: Format JSON fixture to be easier on the eyes 2021-09-15 15:14:29 +00:00
Florian Sesser
383ab4729a OpenMetrics tests: Tryfix resolve TypeError on CI
Was:
> TypeError: unbound method render_OPENMETRICS() must be called with Statistics instance as first argument (got FakeStats instance instead)
2021-09-15 11:53:48 +00:00
Florian Sesser
6bcff5472b OpenMetrics test suite: Add a check to see whether our stats were parsed at all. 2021-09-15 11:50:20 +00:00
Florian Sesser
21c471ed81 OpenMetrics test: Add hopefully more stable URIs to OpenMetrics spec info 2021-09-15 11:39:32 +00:00
Florian Sesser
cbe5ea1115 OpenMetrics: Add docstring 2021-09-15 11:28:39 +00:00
Florian Sesser
c66ae302c8 OpenMetrics: Extra newline at the end 2021-09-15 11:27:44 +00:00
Florian Sesser
d864cab5b0 OpenMetrics: Add test dep to nix packaging 2021-09-15 11:14:52 +00:00
Florian Sesser
57a3c1168e OpenMetrics: Use list of strings instead of string concatenation 2021-09-15 11:03:31 +00:00
Florian Sesser
88a2e7a4fb OpenMetrics test suite: Get rid of status mock 2021-09-15 10:09:55 +00:00
Florian Sesser
ad84f5df2b newline at the end. 2021-09-10 13:21:06 +00:00
Florian Sesser
339e1747e7 clean up 2021-09-10 13:15:56 +00:00
Florian Sesser
6c18983f7b OpenMetrics test: Use realistic input data 2021-09-10 13:13:13 +00:00
Florian Sesser
d04157d18a OpenMetrics test: Add parser to check against spec 2021-09-10 13:00:15 +00:00
Florian Sesser
fca1482b35 OpenMetrics Tests WIP 2021-09-10 00:10:11 +00:00
Florian Sesser
30771149fc Openmetrics: Add test case scaffold 2021-09-09 23:31:39 +00:00
Florian Sesser
74965b271c typo 2021-09-09 22:36:30 +00:00
Florian Sesser
d05e373d42 OpenMetrics: All strings are unicode. 2021-09-09 13:57:59 +00:00
Florian Sesser
4674bccde7 OpenMetrics: add trailing EOF marker 2021-09-09 13:54:03 +00:00
Florian Sesser
ca865e60db OpenMetrics endpoint 2021-09-08 15:08:25 +00:00
Florian Sesser
2dbb9434b0 OpenMetrics endpoint WIP 2021-09-08 14:54:57 +00:00
Florian Sesser
8a64f50b79 WIP - Could be wronger 2021-09-03 14:40:42 +00:00
Florian Sesser
4000116c24 Newsfragment for OpenMetrics endpoint 2021-09-03 13:42:09 +00:00
Florian Sesser
52cb250701 This is the handler we need to create. 2021-08-27 16:42:23 +00:00
May-Lee Sia
2a7e3b3f09
Merge pull request #1111 from Fenn-CS/3563.allmydata-node-catch-port-configs
Catch all port configurations
2021-08-24 17:21:05 +02:00
fenn-cs
7a88b5ddae removed unnecessary comment in minor newsfragment
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-08-24 13:05:11 +01:00
fenn-cs
398fe537e8 added \n in newfragment file
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-08-23 02:48:24 +01:00
fenn-cs
117befd898 detect all port 0 configs
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-08-23 02:34:32 +01:00
Jean-Paul Calderone
9a5c417df0
Merge pull request #1108 from LeastAuthority/3763.gbs-lease-endpoint-items
Clarify some of the GBS "create lease" endpoint specification

Fixes: ticket:3763
2021-08-19 15:02:59 -04:00
Jean-Paul Calderone
03c633cda0 news fragment 2021-08-19 10:28:17 -04:00
Jean-Paul Calderone
602d4c5a91 improve the "create lease" endpoint
* Simplify some language using terms from our new glossary
* explicitly state the two success-case behaviors
* make the error-case behavior different from the success-case behavior
* link to some tickets about future work in this area
2021-08-19 10:26:45 -04:00
Jean-Paul Calderone
ff6fa4a922
Merge pull request #1106 from LeastAuthority/3765.gbs-glossary
Start a GBS glossary

Fixes: ticket:3765
2021-08-18 16:45:26 -04:00
Jean-Paul Calderone
28758b8181
Merge pull request #1105 from LeastAuthority/3764.gbs-interaction-patterns
Add some GBS interaction examples

Fixes: ticket:3764
2021-08-18 11:05:59 -04:00
Jean-Paul Calderone
c5a03f4116 elaborate on `already-have and allocated` somewhat 2021-08-18 10:17:48 -04:00
Jean-Paul Calderone
0f78d8df25 a glossary 2021-08-17 14:58:34 -04:00
Jean-Paul Calderone
49300fc080 news fragment 2021-08-17 14:58:30 -04:00
Jean-Paul Calderone
47dfe5d4f0 fix typo 2021-08-17 14:11:08 -04:00
Jean-Paul Calderone
65f71135e1 Spell the endpoint correctly 2021-08-17 14:10:50 -04:00
Jean-Paul Calderone
23212fc816 add some example client/server interactions 2021-08-17 14:01:44 -04:00
Jean-Paul Calderone
a591c2c36d news fragment 2021-08-17 10:23:37 -04:00
Jean-Paul Calderone
561429ff5b
Merge pull request #1102 from LeastAuthority/3760.run-codechecks3
Try to run codechecks3 on CI

Fixes: ticket:3760
2021-08-13 09:47:49 -04:00
Jean-Paul Calderone
9a8faae283 Remove PYTHONIOENCODING, set for towncrier, no longer run here 2021-08-13 09:24:00 -04:00
Jean-Paul Calderone
580af66b69
Merge pull request #1100 from Fenn-CS/3757.refactor.web-test-introducer
Refactor allmydata/test/web/test_introducer.py

Fixes: ticket:3757
2021-08-11 17:21:50 -04:00
fenn-cs
b5c329024a Merge branch 'master' of github.com:tahoe-lafs/tahoe-lafs into 3757.refactor.web-test-introducer 2021-08-11 16:33:36 +01:00