... because LF is now commonly used as newline code.
Also some files in the samples directory has 755 permission but x bit
is not needed. This removes the unnecessary bit as well.
Change-Id: I6119e508481c9c0f8a5c1c2c40bb2e3a788abd3c
oslo project provide jsonutils, the others project use it
this PS to update the json moudule to oslo jsonutils.
Closes-bug: #1966401
Change-Id: I9cbe9f03c32e4f42822def727aa2871d502641f4
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.
Change-Id: I602e3f3dd3f158799f910d73ac9c759efe15fcc0
Now we have deprecated the v1 api for a while.
The client version in samples shoud be updated too.
Change-Id: Ib7789f3478a68522f44974eece6685ee8ef40614
Closes-Bug: #1792528
Add the new way which using smtplib for Zaqar email subscription
notification.
An example file for configure mail content and SMTP information
is added as well.
Change-Id: I4a1310b54bec38263981792ba0220ae516bea179
Implements: blueprint zaqar-email-delivery
Under python 3 the linter does not like line endings like \r\n so
replace them with \n.
Change-Id: Iaa401a7943a0df29b82482bc92451dca22ebc309
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.
Change-Id: If31cc81bbf2f386db660a760eb866c7c1abd786a
This patch is the third part of subscription confirmation feature.
Support to send email to subscriber if confirmation is needed.
Change-Id: I230f5c7fbc9d19554bbcf34ce9b2f3b14230321b
Implements: blueprint subscription-confirmation-support
The subscription confirmation feature will contain four patches:
1. webhook with mongoDB
2. email with mongoDB
3. webhook with redis
4. email with redis
This patch is the first part of subscription confirmation feature for
webhook with MongoDB. Others will be achieved in follow patches.
This patch did:
1. Add v2/queue/<queue_name>/subscription/<subscription_id>/confirm
endpoint.
2. Add a new config option: "require_confirmation".
3. Add a new property "confirmed" to subscription resource for
MongoDB driver.
4. Add a new policy "subscription: confirm".
5. Add a new property "message type" for notification.
6. Use the pre-signed url in confirm request.
8. Re-use POST subscription to allow re-confirm.
9. Update notification for webhook subscription with mongoDB.
10. Support unsubscrib the subscription
11. Add tests for the feature.
12. Add doc and sample.
Docimpact
APIimpact
Change-Id: Id38d4a5b4f9303b12e22e2b5c248facda4c00143
Implements: blueprint subscription-confirmation-support