Red Hat Bugzilla – Bug 799052
Promoting template with assigned repo should fail if product is not already in the target environment
Last modified: 2014-09-18 11:32:51 EDT
Version-Release number of selected component (if applicable):
Steps to Reproduce (see attached script):
1.create org, env, provider, product, repo
3.add only repo to the template
Repo is being promoted (fails on another error - see https://bugzilla.redhat.com/show_bug.cgi?id=799036)
Refusing to promote template with repo of product, that is not already promoted.
Created attachment 566884 [details]
Script for reproducing the error
Pushed to master:
$ git log|grep 799052 -B4|grep commit
The changes should land in katello-0.2.13
Unittest was added as well
×Failed to promote: Cannot promote the changset 'changeset-1331760780096' because the repo 'mytestrepo-1331760763090' does not belong to any promoted product.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.