Skip to content

Commit

Permalink
feat(test): Adding docstrings to test_version.py (CCT-674)
Browse files Browse the repository at this point in the history
  • Loading branch information
zpetrace committed Oct 1, 2024
1 parent e89f7b5 commit 8382da3
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion integration-tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
"""
:casecomponent: insights-client
:requirement: RHSS-291297
:subsystemteam: sst_csi_client_tools
:caseautomation: Automated
:upstream: Yes
"""


def test_version(insights_client):
"""
:id: 7ec671cb-39ae-4cda-b279-f05d7c835d5d
:title: Test --version outputs client and core versions
:description:
This test verifies that running `insights-client --version` outputs
both the client and core version information
:reference:
:tier: Tier 1
:steps:
1. Run `insights-client --version`
2. Check the output for "Client: " and "Core: "
:expectedresults:
1. Command executes without errors
2. Both "Client: " and "Core: " are present in the output
"""
proc = insights_client.run("--version")
assert "Client: " in proc.stdout
assert "Core: " in proc.stdout
assert "Core: " in proc.stdout

0 comments on commit 8382da3

Please sign in to comment.