Comment 1 for bug 1552866

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.openstack.org/289665
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=3308af985be271245a2b739a1134bb1317e4c7c0
Submitter: Jenkins
Branch: master

commit 3308af985be271245a2b739a1134bb1317e4c7c0
Author: wangxiyuan <email address hidden>
Date: Tue Mar 8 10:29:43 2016 +0800

    Renew subscription on update with TTL

    Now when we update subscription and specify TTL, subscription is not
    renewed. It's life is not extended, and it's expiration date is still
    old.

    Because of that, it's impossible to extend life of subscription without
    recreating it. But during subscription recreation some messages may not
    be sent to subscriber, because there will be a moment when subscription
    does not exist, which is bad.

    This patch makes subscriptions renewable by PATCH method, when TTL is
    specified in the body. In such case PATCH method sets subscription TTL
    to a new value and sets expiration date to a recalculated value: current
    time + TTL.

    This patch also adds two functional tests for testing TTL-related things
    in subscriptions. This increases functional testing time by ~2-4
    minutes.

    APIimpact
    Closes-Bug: #1552866
    Co-Authored-By: wangxiyuan <email address hidden>
    Co-Authored-By: Eva Balycheva <email address hidden>
    Change-Id: I048c37d6485ff27cf18ed27988874e470301fb57