Test #4125
closed
Test if creating duplicate content results in 400
Description
- Evaluate if we already have similar tests in place.
- Create duplicate content
- Assert that an HTTP Bad Request - 400 was raised
- Assert that an error (e.g. "There is already a file content unit with relativepath 'foo.tar.gz' and artifact '/pulp/api/v3/artifacts/1/'.") is returned
- Related to Issue #3436: Creating duplicate content results in 500 IntegrityError added
- Description updated (diff)
This needs to be tested against all plugins (not just pulp_file). To reproduce for other plugins, look at their docs for how to create a content unit and send the same request twice. You should receive a nice 400 + error message.
- Subject changed from Test if creating duplicate content results in 500 to Test if creating duplicate content results in 400
- Status changed from NEW to ASSIGNED
@David Would it make sense to add this to the "using plugin" section of the pulpcore functional smash tests instead of for each individual plugin?
Adding a few to the checklist -- you don't have to worry about the plugins QE isn't responsible for, but it would really help us to still track those plugins on the same issue.
Maybe we should add a new status which means that QE has finished with it, but it still needs the non-productized plugin teams to take a look and port the changes to their own codebases.
- Copied to Test #4975: Docker - Test if creating duplicate content results in 400 added
- Copied to Test #4976: Collection - Test if creating duplicate content results in 400 added
- Status changed from ASSIGNED to CLOSED - COMPLETE
Also available in: Atom
PDF
Add test to create duplicate content units
Add test to create duplicate content units. They have to share the same
artifact
andrelative_path
.https://pulp.plan.io/issues/4125 ref: #4125