test/system: Shorten the names of the tests and use consistent wording

Currently, some of the names of the tests were too long, and had
inconsistent and verbose wording.  This made it difficult to look at
them and get a gist of all the scenarios being tested.  The names are
like headings.  They shouldn't be too long, should capture the primary
objective of the test and be consistent in their wording.

https://github.com/containers/toolbox/pull/1265
This commit is contained in:
Debarshi Ray 2023-03-16 17:48:02 +01:00
parent 068d22a199
commit e5bab51bca

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bats
#
# Copyright © 2021 2022 Red Hat, Inc.
# Copyright © 2021 2023 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -49,7 +49,7 @@ teardown() {
assert_equal "$num_of_images" 0
}
@test "rmi: Remove all images with the default image present" {
@test "rmi: '--all' with the default image" {
num_of_images=$(list_images)
assert_equal "$num_of_images" 0
@ -277,7 +277,7 @@ teardown() {
assert_equal "$num_of_images" 0
}
@test "rmi: Try to remove all images with a container present and running" {
@test "rmi: Try '--all' with a running container" {
skip "Bug: Fail in 'toolbox rmi' does not return non-zero value"
num_of_images=$(list_images)
assert_equal "$num_of_images" 0
@ -296,7 +296,7 @@ teardown() {
assert_equal "$new_num_of_images" "$num_of_images"
}
@test "rmi: Force remove all images with a container present and running" {
@test "rmi: '--all --force' with a running container" {
num_of_images=$(list_images)
assert_equal "$num_of_images" 0