pulp/pulp-smash

Resources should have unique names

nixocio opened this issue · 0 comments

In Pulp 3 resources that have the attribute name should be unique. For instance, if a distribution is created with name foo, it is not allowed to create another distribution with the same name.

resources = 'distributions', 'publishers', 'remotes', 'repositories'

  1. Create a resource.
  2. Use the name of previous create resource to create a new resource.
  3. Assert that an HTTP error was raised.

Related issue: https://pulp.plan.io/issues/3748