Add time method #111
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-testlib#111
Loading…
Reference in a new issue
No description provided.
Delete branch "d.zayakin/frostfs-testlib:add-time-method"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Dmitriy Zayakin d.zayakin@yadro.com
32b7b895ab
to601a37b694
@ -391,0 +407,4 @@
):
assert (self.get_node_time(node) - in_date) < datetime.timedelta(minutes=1)
@reporter.step_deco(f"Restore time to now")
Restore time
@ -391,0 +396,4 @@
shell.exec("hwclock").stdout.strip(), "%Y-%m-%d %H:%M:%S.%f%z"
)
@reporter.step_deco("Change the time on the node to {in_date}")
Set node time to ...
@ -391,0 +403,4 @@
shell.exec("hwclock --hctosys")
node_time = self.get_node_time(node)
with reporter.step(
f"We check that the difference between {node_time} and {in_date} is no more than a minute"
Verify difference between ... is less than a minute
and we can fit 120 chars on line :)@ -391,0 +397,4 @@
)
@reporter.step_deco("Change the time on the node to {in_date}")
def change_node_time(self, node: ClusterNode, in_date: datetime) -> None:
also, maybe rename to
date
instead oftime
)set node date
,get node date
..etc601a37b694
to37a6d05b9b
37a6d05b9b
to1f50166e78