mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 10:48:03 +08:00
Implement the Stream Expansion scenario
This commit is contained in:
@@ -65,7 +65,8 @@ testdata:
|
||||
module: testmodule
|
||||
branch: test-no-components-branch
|
||||
stream_expansion:
|
||||
# For this scenario it's necessary to use testmodule2 as a module and it doesn't make sense
|
||||
# reusing a former build
|
||||
# testmodule2 buildrequires and requires 2 streams from testmodule.
|
||||
# These are expected to be built already.
|
||||
# For this scenario reusing former builds doesn't make sense.
|
||||
module: testmodule2
|
||||
branch: test-stream-expans-branch
|
||||
|
||||
21
tests/integration/test_stream_expansion.py
Normal file
21
tests/integration/test_stream_expansion.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
|
||||
def test_stream_expansion(pkg_util, scenario, repo, koji):
|
||||
"""
|
||||
|
||||
Submit the testmodule2 build with `rhpkg-stage module-build`
|
||||
The produced builds can be cancelled after the test cases have been verified to save on
|
||||
resources and time
|
||||
|
||||
Checks:
|
||||
* Verify two module builds were generated from this build submission
|
||||
|
||||
"""
|
||||
repo.bump()
|
||||
builds = pkg_util.run()
|
||||
|
||||
assert len(builds) == 2
|
||||
for build in builds:
|
||||
pkg_util.cancel(build)
|
||||
Reference in New Issue
Block a user