Issue #667
closedorphan remove by type does not validate the type provided
Description
Description of problem:
orphan remove --type does not validate the --type
Version-Release number of selected component (if applicable):
[root@rhsm-jenkins ~]# rpm -qa pulp-server
pulp-server-2.5.2-0.3.beta.el6.noarch
[root@rhsm-jenkins ~]#
How reproducible:
Steps to Reproduce:
1. Delete a repo that has some content
2. Try to run orphan remove by --type but provide a random name for the type
3.
Actual results:
[root@rhsm-jenkins ~]# pulp-admin orphan remove --type foo
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Task Succeeded
Expected results:
Additional info:
+ This bug was cloned from Bugzilla Bug #1183072 +
Added by bcourt over 8 years ago
Updated by ipanova@redhat.com over 8 years ago
- Project changed from RPM Support to Pulp
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
- Platform Release set to 2.7.0
Updated by ipanova@redhat.com over 8 years ago
- Status changed from ASSIGNED to POST
Added by ipanova@redhat.com over 8 years ago
Fixing behaviour of individual orphan removal and orphan removal by type
closes #667 closes #1035 https://pulp.plan.io/issues/667 https://pulp.plan.io/issues/1035
Added by ipanova@redhat.com over 8 years ago
Fixing behaviour of individual orphan removal and orphan removal by type
closes #667 closes #1035 https://pulp.plan.io/issues/667 https://pulp.plan.io/issues/1035
Updated by ipanova@redhat.com over 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|81c4a401d67f9181ebb02318c0f3927c5657430e.
Updated by dkliban@redhat.com over 8 years ago
- Status changed from MODIFIED to 5
Updated by pthomas@redhat.com about 8 years ago
- Status changed from 5 to 6
verified
[root@mgmt4 ~]# pulp-admin orphan list
+----------------------------------------------------------------------+
Summary
+----------------------------------------------------------------------+
Distribution: 0
Drpm: 0
Erratum: 4
Iso: 0
Package Category: 1
Package Environment: 0
Package Group: 2
Puppet Module: 0
Rpm: 32
Srpm: 0
Yum Repo Metadata File: 0
Total: 39
[root@mgmt4 ~]# pulp-admin orphan remove --type foo
The following resource(s) could not be found:
foo (content_type_id)
[root@mgmt4 ~]# pulp-admin orphan remove --type rpm
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Task Succeeded
[root@mgmt4 ~]#
Updated by amacdona@redhat.com almost 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Merge pull request #667 from barnabycourt/635
Fix import of scientific linux erratum that don't contain a description ...