Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create more flexible fixtures #60

Open
evgeni opened this issue Nov 20, 2024 · 0 comments
Open

create more flexible fixtures #60

evgeni opened this issue Nov 20, 2024 · 0 comments

Comments

@evgeni
Copy link
Member

evgeni commented Nov 20, 2024

          I don't know how far you want to take this, but I think you can even make the URL a parameter so it can be overridden
def yum_repository(product, organization, foremanapi, url='https://fixtures.pulpproject.org/rpm-no-comps/'):
    repo = foremanapi.create('repositories', {'name': str(uuid.uuid4()), 'product_id': product['id'], 'content_type': 'yum', 'url': url})

Originally posted by @ekohl in #43 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant