Commit Graph

10 Commits

Author SHA1 Message Date
Takashi Kajinami cdb55499f6 Replace CRLF by LF
... 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
2024-02-15 02:28:37 +00:00
Xing Zhang 2abe46ae21 Update json module to jsonutils
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
2022-03-28 09:59:26 +00:00
Andreas Jaeger 1d9a681b83 Update hacking for Python3
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
2020-04-02 10:18:47 +02:00
wanghao 091baa2359 Update the client version in samples
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
2018-09-17 10:50:25 +08:00
changyufei e1c62707d3 Using smtplib for Zaqar mail delivery
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
2018-08-21 01:06:07 +00:00
Doug Hellmann a432e30b87 replace windows line endings with unix format
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>
2018-06-06 18:54:29 -04:00
ritesh.arya 609045ebb2 Replace uuid.uuid4().hex with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.

Change-Id: If31cc81bbf2f386db660a760eb866c7c1abd786a
2017-07-24 05:30:23 +00:00
wanghao 4778f708fa Subscription Confirmation Support-3
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
2017-02-15 18:03:41 +08:00
wangxiyuan 69c799734b Subscription Confirmation Support-1
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
2016-08-16 17:23:45 +08:00
Fernando Ribeiro 0810e1203e Added samples in multiple languages
This patch adds samples in Java, JavaScript and Python.

Change-Id: I70cd618d88bb905d6d71a08730b83015f6aaf009
Closes-Bug: #1559613
2016-04-05 14:46:34 -03:00