Skip to content

Commit f67f8af

Browse files
committed
fix: move [Teardown] after keywords to satisfy robocop ORD01
Robocop enforces the order: Documentation, Tags, Timeout, Setup, Template, Keyword, Teardown. Move [Teardown] to the end of each test case. USHIFT-6745 pre-commit.check-secrets: ENABLED
1 parent 544426e commit f67f8af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/suites/standard1/etcd.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ${MEMLIMIT0} SEPARATOR=\n
3434
Etcd Database Defragment Manually
3535
[Documentation] Verify that etcd database can be manually defragmented
3636
... using etcdctl and the database size does not grow.
37-
[Teardown] Command Should Work ${ETCDCTL_CMD} alarm disarm
3837
${size_before}= Get Etcd Database Size
3938
Command Should Work ${ETCDCTL_CMD} defrag
4039
${size_after}= Get Etcd Database Size
4140
Should Be True ${size_after} <= ${size_before}
4241
... msg=DB size after defrag (${size_after}) should not exceed size before (${size_before})
42+
[Teardown] Command Should Work ${ETCDCTL_CMD} alarm disarm
4343

4444
Etcd Runs As Transient Systemd Scope Unit
4545
[Documentation] Verify that etcd runs as a transient systemd scope unit
@@ -57,12 +57,12 @@ Etcd Runs As Transient Systemd Scope Unit
5757
Etcd Scope Follows MicroShift Lifecycle
5858
[Documentation] Verify that etcd scope stops with MicroShift and restarts with it.
5959
[Tags] restart slow
60-
[Teardown] Run Keywords Start MicroShift AND Wait For MicroShift
6160
Stop MicroShift
6261
Wait Until Etcd Scope Is Inactive
6362
Start MicroShift
6463
Wait For MicroShift
6564
Systemctl Check Service SubState ${ETCD_SYSTEMD_UNIT} running
65+
[Teardown] Run Keywords Start MicroShift AND Wait For MicroShift
6666

6767
Set MemoryHigh Limit Unlimited
6868
[Documentation] The default configuration should not limit RAM

0 commit comments

Comments
 (0)