Test #4125
closedTest 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 issues
Updated by kersom about 6 years ago
- Related to Issue #3436: Creating duplicate content results in 500 IntegrityError added
Updated by daviddavis about 6 years ago
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.
Added by kersom about 6 years ago
Updated by kersom about 6 years ago
- Subject changed from Test if creating duplicate content results in 500 to Test if creating duplicate content results in 400
Updated by dalley almost 6 years ago
@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?
Added by kersom almost 6 years ago
Revision ce395742 | View on GitHub
Expand duplicate content unit test case
Expand newly added duplicate content unit test case. Add a test case to confirm that content units using the same artifact, but different relative_paths can be create without raise an HTTP exception.
Added by kersom almost 6 years ago
Revision 721966a0 | View on GitHub
Add test to create duplicate content units
Add test to create content duplicate content units.
Updated by dalley almost 6 years ago
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.
Updated by kersom over 5 years ago
- Copied to Test #4975: Docker - Test if creating duplicate content results in 400 added
Updated by kersom over 5 years ago
- Copied to Test #4976: Collection - Test if creating duplicate content results in 400 added
Updated by kersom over 5 years ago
- Status changed from ASSIGNED to CLOSED - COMPLETE
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