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

Removes use of pulpcore.app.settings from functional tests. #964

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

dkliban
Copy link
Member

@dkliban dkliban commented Oct 13, 2020

@pulpbot
Copy link
Member

pulpbot commented Oct 13, 2020

Attached issue: https://pulp.plan.io/issues/7690

if "bin/python" in line.split()[4]:
bin_dir = line.split()[4].rsplit("/", maxsplit=1)[0]
dynaconf = "{}/dynaconf".format(bin_dir)
stdout = cli_client.run((dynaconf, "list", "-k", setting_name)).stdout
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wrap this in a pulpcore-manager subcommand?

pulpcore-manager list-settings might be handy.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just noticed that there is a pulpcore-manager print_settings command.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that command is only available on our dev boxes and not on production installs.

@@ -60,3 +61,33 @@ def delete_orphans():
"""Delete orphans through bindings."""
response = OrphansApi(core_client).delete()
monitor_task(response.task)


def get_pulp_setting(cli_client, setting_name, python_type="str"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, whether this code should live in pulp-smash.
Other plugins might need it, too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. I'll move this code there and release a new version of pulp-smash.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please!

Copy link
Contributor

@dralley dralley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dkliban dkliban merged commit 346611a into pulp:master Oct 22, 2020
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

Successfully merging this pull request may close these issues.

None yet

6 participants