From 1c2582e61417ce80a91740f63c0b0e0e96546139 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Wed, 20 Apr 2016 10:06:31 +0200 Subject: [PATCH] use static timestamps for api samples Building Aodh cannot be done in a reproducible manner, due to the use of timestamps. If you don't know about reproducible builds, please read on: https://wiki.debian.org/ReproducibleBuilds https://wiki.debian.org/ReproducibleBuilds/About This patch is a forward of the Debian bug patch sent here: https://bugs.debian.org/820179 Change-Id: I41550ee36a1d2539fd1d3bd7fc046bff240e9f67 Closes-Bug: #1572432 --- aodh/api/controllers/v2/alarms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aodh/api/controllers/v2/alarms.py b/aodh/api/controllers/v2/alarms.py index 3cf7b03a4..15c5e4beb 100644 --- a/aodh/api/controllers/v2/alarms.py +++ b/aodh/api/controllers/v2/alarms.py @@ -352,10 +352,10 @@ class Alarm(base.Base): user_id="c96c887c216949acbdfbd8b494863567", project_id="c96c887c216949acbdfbd8b494863567", enabled=True, - timestamp=datetime.datetime.utcnow(), + timestamp=datetime.datetime(2015, 1, 1, 12, 0, 0, 0), state="ok", severity="moderate", - state_timestamp=datetime.datetime.utcnow(), + state_timestamp=datetime.datetime(2015, 1, 1, 12, 0, 0, 0), ok_actions=["http://site:8000/ok"], alarm_actions=["http://site:8000/alarm"], insufficient_data_actions=["http://site:8000/nodata"], @@ -474,7 +474,7 @@ class AlarmChange(base.Base): user_id="3e5d11fda79448ac99ccefb20be187ca", project_id="b6f16144010811e387e4de429e99ee8c", on_behalf_of="92159030020611e3b26dde429e99ee8c", - timestamp=datetime.datetime.utcnow(), + timestamp=datetime.datetime(2015, 1, 1, 12, 0, 0, 0), )