-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test (e2e) : Use Scenario outline to test various man pages
Signed-off-by: Rohan Kumar <[email protected]>
- Loading branch information
1 parent
a2f6411
commit 84ed9ef
Showing
2 changed files
with
53 additions
and
34 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 |
---|---|---|
@@ -1,10 +1,57 @@ | ||
@story_manpages | ||
Feature: Check generation and cleanup of manpages | ||
|
||
@linux @darwin @cleanup | ||
Scenario: verify man pages are generated after crc setup and deleted on cleanup | ||
When executing single crc setup command succeeds | ||
Then accessing crc man pages succeeds | ||
@linux @darwin | ||
Scenario Outline: verify man pages are accessible after setup | ||
Given executing single crc setup command succeeds | ||
Then executing "man -P cat 1 <crc-subcommand>" succeeds | ||
|
||
When executing crc cleanup command succeeds | ||
Then accessing crc man pages fails | ||
@linux @darwin | ||
Examples: Man pages to check | ||
| crc-subcommand | | ||
| crc | | ||
| crc-bundle-generate | | ||
| crc-config | | ||
| crc-start | | ||
| crc-bundle | | ||
| crc-console | | ||
| crc-status | | ||
| crc-cleanup | | ||
| crc-delete | | ||
| crc-stop | | ||
| crc-config-get | | ||
| crc-ip | | ||
| crc-version | | ||
| crc-config-set | | ||
| crc-oc-env | | ||
| crc-config-unset | | ||
| crc-podman-env | | ||
| crc-config-view | | ||
| crc-setup | | ||
|
||
Scenario Outline: verify man pages are NOT accessible after cleanup | ||
Given executing crc cleanup command succeeds | ||
Then executing "man -P cat 1 <crc-subcommand>" fails | ||
|
||
@linux @darwin | ||
Examples: Man pages to check | ||
| crc-subcommand | | ||
| crc | | ||
| crc-bundle-generate | | ||
| crc-config | | ||
| crc-start | | ||
| crc-bundle | | ||
| crc-console | | ||
| crc-status | | ||
| crc-cleanup | | ||
| crc-delete | | ||
| crc-stop | | ||
| crc-config-get | | ||
| crc-ip | | ||
| crc-version | | ||
| crc-config-set | | ||
| crc-oc-env | | ||
| crc-config-unset | | ||
| crc-podman-env | | ||
| crc-config-view | | ||
| crc-setup | |
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