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
This commit is contained in:
parent
fc5357c71f
commit
1c2582e614
@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user