mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-04 03:08:21 +08:00
Merge #1546 No components integration test
This commit is contained in:
@@ -61,3 +61,6 @@ testdata:
|
||||
package: acl
|
||||
# Name of the branch which is going to be built for the specified package.
|
||||
component_branch: private-test-reuse-components
|
||||
no_components:
|
||||
module: testmodule
|
||||
branch: test-no-components-branch
|
||||
|
||||
22
tests/integration/test_no_components.py
Normal file
22
tests/integration/test_no_components.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import utils
|
||||
|
||||
|
||||
def test_no_components(test_env, repo, koji):
|
||||
"""
|
||||
Submit the testmodule build with `fedpkg module-build`
|
||||
|
||||
Checks:
|
||||
* Verify that no components were built when no components are defined in modulemd
|
||||
* Verify that the testmodule build succeeds
|
||||
|
||||
"""
|
||||
build = utils.Build(test_env["packaging_utility"], test_env["mbs_api"])
|
||||
repo.bump()
|
||||
build.run(reuse=test_env["testdata"]["no_components"].get("build_id"))
|
||||
build.watch()
|
||||
|
||||
assert build.state_name == "ready"
|
||||
assert not build.data["component_builds"]
|
||||
Reference in New Issue
Block a user