Implement the Stream Expansion scenario

This commit is contained in:
Mariana Ulaieva
2020-01-22 13:26:48 +01:00
parent a5f6d8f136
commit fefeafa572
2 changed files with 24 additions and 2 deletions

View File

@@ -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

View 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)