-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add more log messages to console 2. Add saving and printing of versions ang journalctl 3. Move version tests to another suite 4. Add checking of port 22 of netvm Signed-off-by: Mariia Azbeleva <mariia.azbeleva@unikie.com>
- Loading branch information
Showing
7 changed files
with
168 additions
and
36 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
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
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,40 @@ | ||
# SPDX-FileCopyrightText: 2022-2023 Technology Innovation Institute (TII) | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
*** Settings *** | ||
#Documentation | ||
#Force Tags | ||
Resource ../../resources/ssh_keywords.resource | ||
Resource ../../config/variables.robot | ||
Suite Setup Common Setup | ||
Suite Teardown Common Teardown | ||
|
||
|
||
*** Keywords *** | ||
|
||
Common Setup | ||
Set Variables ${DEVICE} | ||
Connect | ||
Log versions | ||
Run journalctl recording | ||
|
||
Common Teardown | ||
Connect | ||
Log journctl | ||
Close All Connections | ||
|
||
Run journalctl recording | ||
${output} Execute Command journalctl > jrnl.txt | ||
${output} Execute Command nohup journalctl -f >> jrnl.txt 2>&1 & | ||
|
||
Log journctl | ||
${output} Execute Command cat jrnl.txt | ||
Log ${output} | ||
@{pid} Find pid by name journalctl | ||
Kill process @{pid} | ||
|
||
Log versions | ||
${ghaf_version} Execute Command ghaf-version | ||
Log Ghaf version: ${ghaf_version} | ||
${nixos_version} Execute Command nixos-version | ||
Log Nixos version: ${nixos_version} |
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
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
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,26 @@ | ||
# SPDX-FileCopyrightText: 2022-2023 Technology Innovation Institute (TII) | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
*** Settings *** | ||
Documentation Common system tests | ||
Resource ../../resources/ssh_keywords.resource | ||
|
||
*** Test Cases *** | ||
|
||
Test ghaf version format | ||
[Documentation] Test getting Ghaf version and verify its format: | ||
... Expected format: major.minor.yyyymmdd.commit_hash | ||
[Tags] bat SP-T59 | ||
[Setup] Connect | ||
Verify Ghaf Version Format | ||
[Teardown] Close All Connections | ||
|
||
Test nixos version format | ||
[Documentation] Test getting Nixos version and verify its format: | ||
... Expected format: major.minor.yyyymmdd.commit_hash (name) | ||
[Tags] bat SP-T60 | ||
[Setup] Connect | ||
Verify Nixos Version Format | ||
[Teardown] Close All Connections | ||
|
||
|
Oops, something went wrong.