mirror of
https://github.com/caronc/apprise.git
synced 2024-11-24 17:14:00 +01:00
Bugfix: Update apprise:// token length (#1120)
This commit is contained in:
parent
b8da1334ab
commit
fcd70ff84c
@ -123,7 +123,7 @@ class NotifyAppriseAPI(NotifyBase):
|
||||
'type': 'string',
|
||||
'required': True,
|
||||
'private': True,
|
||||
'regex': (r'^[A-Z0-9_-]{1,32}$', 'i'),
|
||||
'regex': (r'^[A-Z0-9_-]{1,128}$', 'i'),
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -70,6 +70,12 @@ apprise_url_tests = (
|
||||
# Our expected url(privacy=True) startswith() response:
|
||||
'privacy_url': 'apprise://localhost/a...a/',
|
||||
}),
|
||||
# A valid URL with long Token
|
||||
('apprise://localhost/%s' % ('a' * 128), {
|
||||
'instance': NotifyAppriseAPI,
|
||||
# Our expected url(privacy=True) startswith() response:
|
||||
'privacy_url': 'apprise://localhost/a...a/',
|
||||
}),
|
||||
# A valid URL with Token (using port)
|
||||
('apprise://localhost:8080/%s' % ('b' * 32), {
|
||||
'instance': NotifyAppriseAPI,
|
||||
|
Loading…
Reference in New Issue
Block a user