Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions implementation #23

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b68d169
first cut at submit-permission
meejah Jul 22, 2021
adb43ac
refactor: leading_zero_bits()
meejah Jul 28, 2022
5bd4c7e
resource-string -> resource
meejah Jul 28, 2022
c438705
remove debug
meejah Jul 28, 2022
8bbaa80
command-line options, and fix no-permissions
meejah Jul 28, 2022
10094e4
some unit-tests
meejah Jul 28, 2022
1c1836c
fix tests
meejah Jul 28, 2022
5085bd1
happy-path test
meejah Jul 28, 2022
33c7931
test (and fix) claimed bits size
meejah Jul 28, 2022
b9dd7f5
flake8
meejah Aug 22, 2022
cbd79a2
rough tests for server side / websocket server
meejah Aug 22, 2022
b1756fe
more-correct test that doesn't use Mock
meejah Aug 22, 2022
74f9570
py2-friendly check ... :sigh:
meejah Aug 22, 2022
73d6c10
flake8
meejah Aug 22, 2022
7c4062c
actually-appease python2 ...
meejah Aug 22, 2022
4775c15
skip in py2-compatible way :(
meejah Aug 30, 2022
b9f34cd
test permissions config
meejah Aug 31, 2022
a214987
notes
meejah Jan 31, 2023
3da60ab
refactor permissions
meejah Feb 1, 2023
fbfd616
better python versions
meejah Feb 1, 2023
4315f0b
pyflakes
meejah Feb 1, 2023
4068c26
leftover
meejah Feb 1, 2023
b507263
more tests
meejah Feb 1, 2023
da566de
flakes
meejah Feb 1, 2023
6ea0597
add back 3.7, 3.8
meejah Feb 1, 2023
a861009
use codecov plugin instead
meejah Feb 2, 2023
6617587
install hashcash for testing
meejah Feb 2, 2023
9311383
better method name
meejah Feb 2, 2023
0683574
check values
meejah Feb 2, 2023
67c23a8
Merge branch 'master' into permissions-proof-of-concept
meejah May 3, 2023
ee14bae
news
meejah May 3, 2023
d66a02e
WIP: multiple permissions?
meejah Jun 15, 2023
cd29ef9
Merge branch 'master' into permissions-proof-of-concept
meejah Nov 13, 2024
3fb5e72
multiple-permissions fixes
meejah Nov 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
flake8
meejah committed Feb 1, 2023
commit 73d6c1067b1efe2eeee3d5283942ded832eec623
3 changes: 1 addition & 2 deletions src/wormhole_mailbox_server/test/test_server.py
Original file line number Diff line number Diff line change
@@ -8,15 +8,14 @@
from twisted.python import log
from twisted.internet.defer import inlineCallbacks, Deferred
from twisted.internet.address import IPv4Address
from twisted.internet.task import deferLater
import autobahn
from autobahn.twisted.testing import create_pumper, create_memory_agent, MemoryReactorClockResolver
from autobahn.twisted.websocket import WebSocketClientProtocol
from .common import ServerBase, _Util
from ..server import (make_server, Usage,
SidedMessage, CrowdedError, AppNamespace,
HashcashPermission, NoPermission)
from ..server_websocket import WebSocketServer, WebSocketServerFactory
from ..server_websocket import WebSocketServerFactory
from ..util import bytes_to_dict, dict_to_bytes

from ..database import create_channel_db, create_usage_db