pulp_smash.tests.pulp3.file.api_v3.test_unlinking_repo

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.file.api_v3.test_unlinking_repo

Tests that perform action over remotes and publishers.

class pulp_smash.tests.pulp3.file.api_v3.test_unlinking_repo.RemotesPublishersTestCase(methodName='runTest')

Verify publisher and remote can be used with different repos.

test_all()

Verify publisher and remote can be used with different repos.

This test explores the design choice stated in Pulp #3341 that remove the FK from publishers and remotes to repository. Allowing remotes and publishers to be used with different repositories.

Do the following:

  1. Create an remote, and a publisher.
  2. Create 2 repositories.
  3. Sync both repositories using the same remote.
  4. Assert that the two repositories have the same contents.
  5. Publish both repositories using the same publisher.
  6. Assert that each generated publication has the same publisher, but are associated with different repositories.