Issue #601
closedrepo will be updated if a wrong repo type is specified
Description
Description of problem:
We can specify the wrong type of the updated repo, and it's still will be updated.
Version-Release number of selected component (if applicable):
rpm -qa | grep pulp-server
pulp-server-2.5.0-0.14.beta.el6.noarch
How reproducible:
always
Steps to Reproduce:
pulp-admin docker repo list
--------------------------------------------------------------------
Docker Repositories
--------------------------------------------------------------------
Id: zoo
Display Name: zoo
Description: None
Content Unit Counts:
Id: woo.doo
Display Name: woo.doo
Description: None
Content Unit Counts:
Id: .
Display Name: .
Description: None
Content Unit Counts:
pulp-admin rpm repo list
--------------------------------------------------------------------
RPM Repositories
--------------------------------------------------------------------
Id: gena
Display Name: gena
Description:
Content Unit Counts:
pulp-admin docker repo update --repo-id gena --description='it is not docker repo but rpm repo'
Repository [gena] successfully updated
pulp-admin rpm repo list
--------------------------------------------------------------------
RPM Repositories
--------------------------------------------------------------------
Id: gena
Display Name: gena
Description: it is not docker repo but rpm repo
Content Unit Counts:
Since it's not possible to create repos of different types but with the same repo-id, I think it's OK to have a command line as
pulp-admin repo update --repo-id [repod_id]
Otherwise, maybe it's reasonable to include a test for a repo type.
+ This bug was cloned from Bugzilla Bug #1159075 +