-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test case] Add test: restart swss service (#483)
* [test case] Add test: restart swss service There was a script to restart swss, it was used as utility by a few other tests. And it didn't wait long enough for swss service to recover, it didn't check if the system recovered eventually. This test also restarts dhcp_relay service to make sure that it will listen on right interfaces. So the system would be left at a healthy state. * [swss restart] change wording
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- name: Restart swss service | ||
become: true | ||
service: | ||
name: swss | ||
state: restarted | ||
|
||
- name: wait for 2 minutes for swss service to recover | ||
pause: | ||
seconds: 120 | ||
|
||
- name: check basic sanity of the device | ||
include: base_sanity.yml | ||
vars: | ||
recover: false | ||
|
||
- name: validate all interfaces are up | ||
include: interface.yml | ||
vars: | ||
recover: false | ||
|
||
- name: Restart dhcp_relay service | ||
become: true | ||
service: | ||
name: dhcp_relay | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters