builder: move ssl arguments to global options

When the builder is used as a command line argument: move the
ssl related options to the global parser so they can be used
with status and wait too.
This commit is contained in:
Christian Kellner 2022-01-25 17:36:06 +00:00
parent 2ca0f3b370
commit 1a5977bad2
2 changed files with 6 additions and 6 deletions

View file

@ -640,6 +640,8 @@ class TestBuilderPlugin(PluginTest):
args = [
"plugins/builder/osbuild.py",
"--cert", ", ".join(certs),
"--ca", "test/data/example-ca.pem",
"compose",
"Fedora-Cloud-Image",
"33",
@ -647,8 +649,6 @@ class TestBuilderPlugin(PluginTest):
"fedora-33",
"x86_64",
"--repo", "http://download.localhost/pub/linux/$arch",
"--cert", ", ".join(certs),
"--ca", "test/data/example-ca.pem"
]
with unittest.mock.patch.object(sys, 'argv', args):