pulp_2_tests.tests.rpm.cli.test_search¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.rpm.cli.test_search
Tests that perform searches.
-
class
pulp_2_tests.tests.rpm.cli.test_search.
SearchReposWithFiltersTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Search for repositories, and use filters to limit matches.
This test case targets Pulp #1784 and Pulp Smash #184. The repository search documentation describes the CLI search syntax.
-
static
gen_commands
(repo_id)¶ Generate the commands used by the test methods.
Commands with the following filters are returned:
--filters {'id':'…'} --filters {'repo_id':'…'} --str-eq id=… --str-eq repo_id=…
-
classmethod
setUpClass
()¶ Create a repository.
-
classmethod
tearDownClass
()¶ Delete the repository created by
setUpClass()
.
-
test_negative_searches
()¶ Search for the repository with a non-matching repository ID.
-
test_positive_searches
()¶ Search for the repository with a matching repository ID.
-
static